aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2009-12-14 13:34:35 -0500
committerBorislav Petkov <borislav.petkov@amd.com>2009-12-15 09:52:13 -0500
commit35d8069234bacfab608d2d7571c2cb71a23c3fae (patch)
tree1177769bc492bbd3573010fd6ccbb6d00f63c53c /drivers/edac
parentf40542532e96dda5506eb76badea322f2ae4731c (diff)
edac, mce: correct corenum reporting
Fix core number reporting with NB MCEs. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/edac_mce_amd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/edac/edac_mce_amd.c b/drivers/edac/edac_mce_amd.c
index c693fcc2213c..9965b8daca74 100644
--- a/drivers/edac/edac_mce_amd.c
+++ b/drivers/edac/edac_mce_amd.c
@@ -310,10 +310,9 @@ void amd_decode_nb_mce(int node_id, struct err_regs *regs, int handle_errors)
310 if (regs->nbsh & K8_NBSH_ERR_CPU_VAL) 310 if (regs->nbsh & K8_NBSH_ERR_CPU_VAL)
311 pr_cont(", core: %u\n", (u8)(regs->nbsh & 0xf)); 311 pr_cont(", core: %u\n", (u8)(regs->nbsh & 0xf));
312 } else { 312 } else {
313 pr_cont(", core: %d\n", ilog2((regs->nbsh & 0xf))); 313 pr_cont(", core: %d\n", fls((regs->nbsh & 0xf) - 1));
314 } 314 }
315 315
316
317 pr_emerg("%s.\n", EXT_ERR_MSG(xec)); 316 pr_emerg("%s.\n", EXT_ERR_MSG(xec));
318 317
319 if (BUS_ERROR(ec) && nb_bus_decoder) 318 if (BUS_ERROR(ec) && nb_bus_decoder)