aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorLuben Tuikov <[email protected]>2021-07-02 18:35:14 -0400
committerAlex Deucher <[email protected]>2021-07-13 11:48:10 -0400
commit43a44c5322d1030d8f36ad679307c61f5b4e3716 (patch)
tree408f484af00b23b816f6fdaf3788d7b0f4fabd11 /tools/perf/scripts/python/export-to-sqlite.py
parent798c511548b946ae9ec123b0dfe197a5f29e63ec (diff)
drm/amdgpu: Return error if no RAS
In amdgpu_ras_query_error_count() return an error if the device doesn't support RAS. This prevents that function from having to always set the values of the integer pointers (if set), and thus prevents function side effects--always to have to set values of integers if integer pointers set, regardless of whether RAS is supported or not--with this change this side effect is mitigated. Also, if no pointers are set, don't count, since we've no way of reporting the counts. Also, give this function a kernel-doc. Cc: Alexander Deucher <[email protected]> Cc: John Clements <[email protected]> Cc: Hawking Zhang <[email protected]> Reported-by: Tom Rix <[email protected]> Fixes: a46751fbcde505 ("drm/amdgpu: Fix RAS function interface") Signed-off-by: Luben Tuikov <[email protected]> Reviewed-by: Alexander Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions