Skip to content

Commit a9e4f61

Browse files
Tao Zhoualexdeucher
authored andcommitted
drm/amdgpu: update error condition check for umc_v12_0_query_error_address
Deferred error is also taken into account. 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 601429c commit a9e4f61

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,7 @@ static int umc_v12_0_query_error_address(struct amdgpu_device *adev,
305305
}
306306

307307
/* calculate error address if ue error is detected */
308-
if (REG_GET_FIELD(mc_umc_status, MCA_UMC_UMC0_MCUMC_STATUST0, Val) == 1 &&
309-
REG_GET_FIELD(mc_umc_status, MCA_UMC_UMC0_MCUMC_STATUST0, AddrV) == 1 &&
310-
REG_GET_FIELD(mc_umc_status, MCA_UMC_UMC0_MCUMC_STATUST0, UC) == 1) {
311-
308+
if (umc_v12_0_is_uncorrectable_error(adev, mc_umc_status)) {
312309
mc_umc_addrt0 =
313310
SOC15_REG_OFFSET(UMC, 0, regMCA_UMC_UMC0_MCUMC_ADDRT0);
314311

0 commit comments

Comments
 (0)