Skip to content

Commit 295d8cd

Browse files
author
Borislav Petkov
committed
EDAC, MCE, AMD: Drop local coreid reporting
MCE decoding code is reporting the core which encountered the error unconditionally now so drop this piece. Besides, it reported the coreid in the local processor package which is not that valuable as a datapoint. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
1 parent 086be78 commit 295d8cd

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

‎drivers/edac/mce_amd.c‎

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -597,26 +597,8 @@ void amd_decode_nb_mce(int node_id, struct mce *m, u32 nbcfg)
597597
struct cpuinfo_x86 *c = &boot_cpu_data;
598598
u16 ec = EC(m->status);
599599
u8 xec = XEC(m->status, 0x1f);
600-
u32 nbsh = (u32)(m->status >> 32);
601-
int core = -1;
602600

603-
pr_emerg(HW_ERR "Northbridge Error (node %d", node_id);
604-
605-
/* F10h, revD can disable ErrCpu[3:0] through ErrCpuVal */
606-
if (c->x86 == 0x10 && c->x86_model > 7) {
607-
if (nbsh & NBSH_ERR_CPU_VAL)
608-
core = nbsh & nb_err_cpumask;
609-
} else {
610-
u8 assoc_cpus = nbsh & nb_err_cpumask;
611-
612-
if (assoc_cpus > 0)
613-
core = fls(assoc_cpus) - 1;
614-
}
615-
616-
if (core >= 0)
617-
pr_cont(", core %d): ", core);
618-
else
619-
pr_cont("): ");
601+
pr_emerg(HW_ERR "Northbridge Error (node %d): ", node_id);
620602

621603
switch (xec) {
622604
case 0x2:

0 commit comments

Comments
 (0)