summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
diff options
context:
space:
mode:
authorTao Zhou <tao.zhou1@amd.com>2023-02-02 18:57:04 +0800
committerAlex Deucher <alexander.deucher@amd.com>2023-06-09 10:37:26 -0400
commitd78c71321ea963378cd3c5646ac6c6483d8d1a50 (patch)
tree2e13892a71402bd5c3826adf986d448332e55e1f /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
parent9a3ce1a7a9e5372d8c275bf3fbef4456c8407145 (diff)
downloadlinux-stable-d78c71321ea963378cd3c5646ac6c6483d8d1a50.tar.gz
linux-stable-d78c71321ea963378cd3c5646ac6c6483d8d1a50.tar.bz2
linux-stable-d78c71321ea963378cd3c5646ac6c6483d8d1a50.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
index 3d11b7a0bd75..0df53fe7b199 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
@@ -494,6 +494,10 @@ int amdgpu_gfx_poison_consumption_handler(struct amdgpu_device *adev,
bool amdgpu_gfx_is_master_xcc(struct amdgpu_device *adev, int xcc_id);
int amdgpu_gfx_sysfs_init(struct amdgpu_device *adev);
void amdgpu_gfx_sysfs_fini(struct amdgpu_device *adev);
+void amdgpu_gfx_ras_error_func(struct amdgpu_device *adev,
+ void *ras_error_status,
+ void (*func)(struct amdgpu_device *adev, void *ras_error_status,
+ int xcc_id));
static inline const char *amdgpu_gfx_compute_mode_desc(int mode)
{