aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/umc_v12_0.h
diff options
context:
space:
mode:
authorGravatar Candice Li <candice.li@amd.com> 2024-01-03 15:19:19 +0800
committerGravatar Alex Deucher <alexander.deucher@amd.com> 2024-01-15 18:35:37 -0500
commit46e2231ce03bc84303fc036562b088849e137a05 (patch)
tree0a5487bc8ece71b69ae407f810428cce127b5bf0 /drivers/gpu/drm/amd/amdgpu/umc_v12_0.h
parentdrm/amdgpu: Do bad page retirement for deferred errors (diff)
downloadlinux-46e2231ce03bc84303fc036562b088849e137a05.tar.gz
linux-46e2231ce03bc84303fc036562b088849e137a05.tar.bz2
linux-46e2231ce03bc84303fc036562b088849e137a05.zip
drm/amdgpu: Log deferred error separately
Separate deferred error from UE and CE and log it individually. Signed-off-by: Candice Li <candice.li@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/umc_v12_0.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/umc_v12_0.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/umc_v12_0.h b/drivers/gpu/drm/amd/amdgpu/umc_v12_0.h
index e8de3a92251a..5973bfb14fce 100644
--- a/drivers/gpu/drm/amd/amdgpu/umc_v12_0.h
+++ b/drivers/gpu/drm/amd/amdgpu/umc_v12_0.h
@@ -121,9 +121,12 @@
(((_ipid_lo) >> 12) & 0xF))
#define MCA_IPID_LO_2_UMC_INST(_ipid_lo) (((_ipid_lo) >> 21) & 0x7)
+bool umc_v12_0_is_deferred_error(struct amdgpu_device *adev, uint64_t mc_umc_status);
bool umc_v12_0_is_uncorrectable_error(struct amdgpu_device *adev, uint64_t mc_umc_status);
bool umc_v12_0_is_correctable_error(struct amdgpu_device *adev, uint64_t mc_umc_status);
+typedef bool (*check_error_type_func)(struct amdgpu_device *adev, uint64_t mc_umc_status);
+
extern const uint32_t
umc_v12_0_channel_idx_tbl[]
[UMC_V12_0_UMC_INSTANCE_NUM]