Skip to content

Commit bff7b81

Browse files
author
Borislav Petkov
committed
EDAC, MCE, AMD: Print CPU number when reporting the error
Currently, correctable ECCs go through mcelog and do not print the scary MCE banner. In that case, however, reporting the core where the CECC happened is important information so dump it along with the decoded string albeit at risk of having a minor redundancy. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
1 parent 976d167 commit bff7b81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/edac/mce_amd.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,8 +769,8 @@ int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data)
769769
if (amd_filter_mce(m))
770770
return NOTIFY_STOP;
771771

772-
pr_emerg(HW_ERR "MC%d_STATUS[%s|%s|%s|%s|%s",
773-
m->bank,
772+
pr_emerg(HW_ERR "CPU:%d MC%d_STATUS[%s|%s|%s|%s|%s",
773+
m->extcpu, m->bank,
774774
((m->status & MCI_STATUS_OVER) ? "Over" : "-"),
775775
((m->status & MCI_STATUS_UC) ? "UE" : "CE"),
776776
((m->status & MCI_STATUS_MISCV) ? "MiscV" : "-"),

0 commit comments

Comments
 (0)