drm/amdgpu: add GFX RAS common function
authorTao Zhou <tao.zhou1@amd.com>
Thu, 2 Feb 2023 10:57:04 +0000 (18:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:37:26 +0000 (10:37 -0400)
commitd78c71321ea963378cd3c5646ac6c6483d8d1a50
tree2e13892a71402bd5c3826adf986d448332e55e1f
parent9a3ce1a7a9e5372d8c275bf3fbef4456c8407145
drm/amdgpu: add GFX RAS common function

The common function can help reduce redundant code.

v2: remove xcp operation, only need to do RAS operations for all
instances.
v3: remove check for GFX RAS support, will be checked in higher level.
    add amdgpu prefix for the function name.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h