Skip to content

Commit f3f05a0

Browse files
Xiang Liualexdeucher
authored andcommitted
drm/amdgpu: Use correct gfx deferred error count
In the case of parsing GFX deferred error from SMU corrected error channel, the error count should be set to 1 instead of parsing from MISC0 register, which is 0. Signed-off-by: Xiang Liu <xiang.liu@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 704bc36 commit f3f05a0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -872,9 +872,10 @@ static int gfx_v9_4_3_aca_bank_parser(struct aca_handle *handle,
872872
break;
873873
case ACA_SMU_TYPE_CE:
874874
bank->aca_err_type = ACA_BANK_ERR_CE_DE_DECODE(bank);
875-
ret = aca_error_cache_log_bank_error(handle, &info,
876-
bank->aca_err_type,
877-
ACA_REG__MISC0__ERRCNT(misc0));
875+
ret = aca_error_cache_log_bank_error(handle, &info, bank->aca_err_type,
876+
(bank->aca_err_type == ACA_ERROR_TYPE_CE) ?
877+
ACA_REG__MISC0__ERRCNT(misc0) :
878+
1);
878879
break;
879880
default:
880881
return -EINVAL;

0 commit comments

Comments
 (0)