drm/amd/ras: report the banks the scrubber logged

A bank carrying the scrub bit was found by the background scrubber
rather than by an access, which is worth telling apart from the rest
when reading a log.

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>
This commit is contained in:
Xiang Liu 2026-08-26 11:13:27 +08:00 committed by Alex Deucher
parent 2e68fceb40
commit 4d3ffc35f1

View File

@ -128,6 +128,11 @@ static void aca_bank_log(struct ras_core_context *ras_core,
"{%llu}" RAS_HW_ERR "ACA[%02d/%02d].%s=0x%016llx\n",
bank->seq_no, idx + 1, total,
aca_regs[i].name, bank->regs[aca_regs[i].reg_idx]);
if (ACA_REG_STATUS_SCRUB(bank->regs[ACA_REG_IDX__STATUS]))
RAS_DEV_INFO(ras_core->dev,
"{%llu}" RAS_HW_ERR "hardware error logged by the scrubber\n",
bank->seq_no);
}
static void aca_log_bank_data(struct ras_core_context *ras_core,