diff options
author | Hawking Zhang <Hawking.Zhang@amd.com> | 2021-03-09 22:18:50 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-04-09 16:50:58 -0400 |
commit | 878b9e944c566d6ef301e6155fc3e299f90f89ce (patch) | |
tree | fdcbdaa0e0c653b213c9a25c14c7b2cfec0c0e3d /drivers/gpu/drm/amd/amdgpu/umc_v6_7.h | |
parent | 3f903560d1f0a42575fc7b14608004291772572a (diff) |
drm/amdgpu: implement umc query error count callback
umc query_ras_error_count will be invoked to query
umc correctable and uncorrectable error. It will
reset the umc ras error counter after the query.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: John Clements <John.Clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/umc_v6_7.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/umc_v6_7.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/umc_v6_7.h b/drivers/gpu/drm/amd/amdgpu/umc_v6_7.h index 6b881226b4f3..e59dbdb6ef9b 100644 --- a/drivers/gpu/drm/amd/amdgpu/umc_v6_7.h +++ b/drivers/gpu/drm/amd/amdgpu/umc_v6_7.h @@ -30,6 +30,8 @@ /* umc ce count initial value */ #define UMC_V6_7_CE_CNT_INIT (UMC_V6_7_CE_CNT_MAX - UMC_V6_7_CE_INT_THRESHOLD) +#define UMC_V6_7_INST_DIST 0x40000 + extern const struct amdgpu_umc_funcs umc_v6_7_funcs; #endif |