diff options
| author | Stanley.Yang <[email protected]> | 2021-11-16 12:44:58 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-11-22 19:45:14 +0000 |
| commit | 8882f90a3fe2457c8b3f86bbbbef8754f704f5ef (patch) | |
| tree | 7a3dbc72ff2a19b811f78de479ac21dec52067c8 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | |
| parent | drm/amd/pm: Update smu driver interface for aldebaran (diff) | |
| download | kernel-8882f90a3fe2457c8b3f86bbbbef8754f704f5ef.tar.gz kernel-8882f90a3fe2457c8b3f86bbbbef8754f704f5ef.zip | |
drm/amdgpu: add new query interface for umc block v2
add message smu to query error information
v2:
rename message_smu to ecc_info
Signed-off-by: Stanley.Yang <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h index e36f4de9fa55..1c708122d492 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h @@ -319,6 +319,19 @@ struct ras_common_if { char name[32]; }; +#define MAX_UMC_CHANNEL_NUM 32 + +struct ecc_info_per_ch { + uint16_t ce_count_lo_chip; + uint16_t ce_count_hi_chip; + uint64_t mca_umc_status; + uint64_t mca_umc_addr; +}; + +struct umc_ecc_info { + struct ecc_info_per_ch ecc[MAX_UMC_CHANNEL_NUM]; +}; + struct amdgpu_ras { /* ras infrastructure */ /* for ras itself. */ @@ -358,6 +371,9 @@ struct amdgpu_ras { struct delayed_work ras_counte_delay_work; atomic_t ras_ue_count; atomic_t ras_ce_count; + + /* record umc error info queried from smu */ + struct umc_ecc_info umc_ecc; }; struct ras_fs_data { |
