diff options
| author | Tao Zhou <[email protected]> | 2024-01-17 08:35:59 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-01-18 20:47:24 +0000 |
| commit | a9e4f61df1cce8ffb3b86b99c12a33c2eeb57c39 (patch) | |
| tree | c3a1f33c1ce54d981baf46b54bb17c0958fefe5a /drivers/gpu/drm/amd/amdgpu | |
| parent | drm/amdgpu: Skip do PCI error slot reset during RAS recovery (diff) | |
| download | kernel-a9e4f61df1cce8ffb3b86b99c12a33c2eeb57c39.tar.gz kernel-a9e4f61df1cce8ffb3b86b99c12a33c2eeb57c39.zip | |
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 <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/umc_v12_0.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/umc_v12_0.c b/drivers/gpu/drm/amd/amdgpu/umc_v12_0.c index 6423dca5b777..f63ca575ad63 100644 --- a/drivers/gpu/drm/amd/amdgpu/umc_v12_0.c +++ b/drivers/gpu/drm/amd/amdgpu/umc_v12_0.c @@ -305,10 +305,7 @@ static int umc_v12_0_query_error_address(struct amdgpu_device *adev, } /* calculate error address if ue error is detected */ - if (REG_GET_FIELD(mc_umc_status, MCA_UMC_UMC0_MCUMC_STATUST0, Val) == 1 && - REG_GET_FIELD(mc_umc_status, MCA_UMC_UMC0_MCUMC_STATUST0, AddrV) == 1 && - REG_GET_FIELD(mc_umc_status, MCA_UMC_UMC0_MCUMC_STATUST0, UC) == 1) { - + if (umc_v12_0_is_uncorrectable_error(adev, mc_umc_status)) { mc_umc_addrt0 = SOC15_REG_OFFSET(UMC, 0, regMCA_UMC_UMC0_MCUMC_ADDRT0); |
