summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dmub/src
diff options
context:
space:
mode:
authorLuben Tuikov <luben.tuikov@amd.com>2021-07-02 18:35:14 -0400
committerAlex Deucher <alexander.deucher@amd.com>2021-07-08 15:13:07 -0400
commit4d9f771e111ee0144338c1012a90f1762220141a (patch)
tree4684bf4a40d603eba2573dcd7ccacb4feb10e02c /drivers/gpu/drm/amd/display/dmub/src
parentb5840166dcb8bb03daa420f6c84eb78d46b713e7 (diff)
downloadlinux-4d9f771e111ee0144338c1012a90f1762220141a.tar.gz
linux-4d9f771e111ee0144338c1012a90f1762220141a.tar.bz2
linux-4d9f771e111ee0144338c1012a90f1762220141a.zip
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 <Alexander.Deucher@amd.com> Cc: John Clements <john.clements@amd.com> Cc: Hawking Zhang <Hawking.Zhang@amd.com> Reported-by: Tom Rix <trix@redhat.com> Fixes: a46751fbcde505 ("drm/amdgpu: Fix RAS function interface") Signed-off-by: Luben Tuikov <luben.tuikov@amd.com> Reviewed-by: Alexander Deucher <Alexander.Deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dmub/src')
0 files changed, 0 insertions, 0 deletions