diff options
| author | Yang Wang <[email protected]> | 2024-02-22 02:11:46 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-03-20 17:38:15 +0000 |
| commit | 69bf42fbb2270441674b38f1c29fe5c59afd06b8 (patch) | |
| tree | c198a9f0d1f5262ca9eb2083a7986a08f8248a86 /drivers/gpu/drm/amd/amdgpu | |
| parent | drm/amdgpu: refine aca error cache for sdma v4.4.2 (diff) | |
| download | kernel-69bf42fbb2270441674b38f1c29fe5c59afd06b8.tar.gz kernel-69bf42fbb2270441674b38f1c29fe5c59afd06b8.zip | |
drm/amdgpu: refine aca error cache for umc v12.0
refine aca error cache for umc v12.0
Signed-off-by: Yang Wang <[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 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/umc_v12_0.c b/drivers/gpu/drm/amd/amdgpu/umc_v12_0.c index 7b841431344f..b512a4b38067 100644 --- a/drivers/gpu/drm/amd/amdgpu/umc_v12_0.c +++ b/drivers/gpu/drm/amd/amdgpu/umc_v12_0.c @@ -508,10 +508,11 @@ static int umc_v12_0_aca_bank_generate_report(struct aca_handle *handle, struct struct aca_bank_report *report, void *data) { struct amdgpu_device *adev = handle->adev; + struct aca_bank_info info; u64 status; int ret; - ret = aca_bank_info_decode(bank, &report->info); + ret = aca_bank_info_decode(bank, &info); if (ret) return ret; @@ -519,12 +520,18 @@ static int umc_v12_0_aca_bank_generate_report(struct aca_handle *handle, struct switch (type) { case ACA_SMU_TYPE_UE: if (umc_v12_0_is_uncorrectable_error(adev, status)) { - report->count[ACA_ERROR_TYPE_UE] = 1; + ret = aca_error_cache_log_bank_error(handle, &info, ACA_ERROR_TYPE_UE, + 1ULL); + if (ret) + return ret; } break; case ACA_SMU_TYPE_CE: if (umc_v12_0_is_correctable_error(adev, status)) { - report->count[ACA_ERROR_TYPE_CE] = 1; + ret = aca_error_cache_log_bank_error(handle, &info, ACA_ERROR_TYPE_UE, + 1ULL); + if (ret) + return ret; } break; default: |
