diff options
author | Hawking Zhang <Hawking.Zhang@amd.com> | 2021-03-08 20:43:15 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-04-09 16:50:56 -0400 |
commit | 3f903560d1f0a42575fc7b14608004291772572a (patch) | |
tree | 16263bca2e69d58dc424b1a75e49cedd5b60fbcc /drivers/gpu/drm/amd/amdgpu/umc_v6_7.h | |
parent | 1696bf35896b7805499c3dfe32e94ecd6a2ae08b (diff) |
drm/amdgpu: add helper funtion to query umc ras error
Add helper functions to query correctable and
uncorrectable umc ras error.
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 | 7 |
1 files changed, 7 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 8c2ce694ec89..6b881226b4f3 100644 --- a/drivers/gpu/drm/amd/amdgpu/umc_v6_7.h +++ b/drivers/gpu/drm/amd/amdgpu/umc_v6_7.h @@ -23,6 +23,13 @@ #ifndef __UMC_V6_7_H__ #define __UMC_V6_7_H__ +/* EccErrCnt max value */ +#define UMC_V6_7_CE_CNT_MAX 0xffff +/* umc ce interrupt threshold */ +#define UMC_V6_7_CE_INT_THRESHOLD 0xffff +/* umc ce count initial value */ +#define UMC_V6_7_CE_CNT_INIT (UMC_V6_7_CE_CNT_MAX - UMC_V6_7_CE_INT_THRESHOLD) + extern const struct amdgpu_umc_funcs umc_v6_7_funcs; #endif |