summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
diff options
context:
space:
mode:
authorTao Zhou <tao.zhou1@amd.com>2023-10-11 18:36:15 +0800
committerAlex Deucher <alexander.deucher@amd.com>2023-10-20 15:11:26 -0400
commit472c5fb29798695b589fb844f84c6bf4ff07c592 (patch)
treeb747aedc9e2319c2156c1bea11bc944f64296178 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
parentf9caf6cdd5cc1f4006fd7b6b113658c0b0159f23 (diff)
downloadlinux-472c5fb29798695b589fb844f84c6bf4ff07c592.tar.gz
linux-472c5fb29798695b589fb844f84c6bf4ff07c592.tar.bz2
linux-472c5fb29798695b589fb844f84c6bf4ff07c592.zip
drm/amdgpu: define ras_reset_error_count function
Make the code architecture more simple. v2: reuse ras_reset_error_count in ras_reset_error_status. 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_ras.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
index 0a5c8a107fb2..3f9ac0ab67e6 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
@@ -714,6 +714,8 @@ void amdgpu_ras_debugfs_create_all(struct amdgpu_device *adev);
int amdgpu_ras_query_error_status(struct amdgpu_device *adev,
struct ras_query_if *info);
+int amdgpu_ras_reset_error_count(struct amdgpu_device *adev,
+ enum amdgpu_ras_block block);
int amdgpu_ras_reset_error_status(struct amdgpu_device *adev,
enum amdgpu_ras_block block);