Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227322
b: refs/heads/master
c: 6d5db46
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov committed Jan 7, 2011
1 parent eaad70f commit 0397c78
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 50adbbd8a8e572ad2533eace228c841ec84028a3
refs/heads/master: 6d5db4668796d903dc3bad2852c82073509c37d2
17 changes: 10 additions & 7 deletions trunk/drivers/edac/mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,24 +597,27 @@ void amd_decode_nb_mce(int node_id, struct mce *m, u32 nbcfg)
u16 ec = EC(m->status);
u8 xec = XEC(m->status, 0x1f);
u32 nbsh = (u32)(m->status >> 32);
int core = -1;

pr_emerg(HW_ERR "Northbridge Error, node %d: ", node_id);
pr_emerg(HW_ERR "Northbridge Error (node %d", node_id);

/*
* F10h, revD can disable ErrCpu[3:0] so check that first and also the
* value encoding has changed so interpret those differently
*/
/* F10h, revD can disable ErrCpu[3:0] through ErrCpuVal */
if ((boot_cpu_data.x86 == 0x10) &&
(boot_cpu_data.x86_model > 7)) {
if (nbsh & K8_NBSH_ERR_CPU_VAL)
pr_cont(", core: %u", (u8)(nbsh & nb_err_cpumask));
core = nbsh & nb_err_cpumask;
} else {
u8 assoc_cpus = nbsh & nb_err_cpumask;

if (assoc_cpus > 0)
pr_cont(", core: %d", fls(assoc_cpus) - 1);
core = fls(assoc_cpus) - 1;
}

if (core >= 0)
pr_cont(", core %d): ", core);
else
pr_cont("): ");

switch (xec) {
case 0x2:
pr_cont("Sync error (sync packets on HT link detected).\n");
Expand Down

0 comments on commit 0397c78

Please sign in to comment.