Skip to content

Commit 2c684b9

Browse files
Tao Zhoualexdeucher
authored andcommitted
drm/amdgpu: add deferred error check for UMC v12 address query
Both RAS UE and deferred errors need page retirement. 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>
1 parent f53dedd commit 2c684b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/amdgpu/umc_v12_0.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ static int umc_v12_0_query_error_address(struct amdgpu_device *adev,
348348
}
349349

350350
/* calculate error address if ue error is detected */
351-
if (umc_v12_0_is_uncorrectable_error(adev, mc_umc_status)) {
351+
if (umc_v12_0_is_uncorrectable_error(adev, mc_umc_status) ||
352+
umc_v12_0_is_deferred_error(adev, mc_umc_status)) {
352353
mc_umc_addrt0 =
353354
SOC15_REG_OFFSET(UMC, 0, regMCA_UMC_UMC0_MCUMC_ADDRT0);
354355

0 commit comments

Comments
 (0)