diff options
author | Borislav Petkov <borislav.petkov@amd.com> | 2009-07-28 08:17:30 -0400 |
---|---|---|
committer | Borislav Petkov <borislav.petkov@amd.com> | 2009-09-14 13:01:33 -0400 |
commit | f9350efd6f37ef60d2334739edb76ef1f8ee0183 (patch) | |
tree | f723398c77fe7db29634c5f0767b27f7ad2005e2 /drivers/edac | |
parent | 56cad2d6fb832a876ab8bda4b01e5d0722dc754b (diff) |
EDAC, AMD: decode load store MCEs
See Fam10h BKDG (31116, rev. 3.28), Table 100.
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/edac_mce_amd.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/edac/edac_mce_amd.c b/drivers/edac/edac_mce_amd.c index e1f32c36248d..228482855362 100644 --- a/drivers/edac/edac_mce_amd.c +++ b/drivers/edac/edac_mce_amd.c | |||
@@ -270,6 +270,27 @@ wrong_bu_mce: | |||
270 | pr_warning("Corrupted BU MCE info?\n"); | 270 | pr_warning("Corrupted BU MCE info?\n"); |
271 | } | 271 | } |
272 | 272 | ||
273 | static void amd_decode_ls_mce(u64 mc3_status) | ||
274 | { | ||
275 | u32 ec = mc3_status & 0xffff; | ||
276 | u32 xec = (mc3_status >> 16) & 0xf; | ||
277 | |||
278 | pr_emerg(" Load Store Error"); | ||
279 | |||
280 | if (xec == 0x0) { | ||
281 | u8 rrrr = (ec >> 4) & 0xf; | ||
282 | |||
283 | if (!BUS_ERROR(ec) || (rrrr != 0x3 && rrrr != 0x4)) | ||
284 | goto wrong_ls_mce; | ||
285 | |||
286 | pr_cont(" during %s.\n", RRRR_MSG(ec)); | ||
287 | } | ||
288 | return; | ||
289 | |||
290 | wrong_ls_mce: | ||
291 | pr_warning("Corrupted LS MCE info?\n"); | ||
292 | } | ||
293 | |||
273 | void amd_decode_nb_mce(int node_id, struct err_regs *regs, int handle_errors) | 294 | void amd_decode_nb_mce(int node_id, struct err_regs *regs, int handle_errors) |
274 | { | 295 | { |
275 | u32 ec = ERROR_CODE(regs->nbsl); | 296 | u32 ec = ERROR_CODE(regs->nbsl); |
@@ -366,6 +387,10 @@ void decode_mce(struct mce *m) | |||
366 | amd_decode_bu_mce(m->status); | 387 | amd_decode_bu_mce(m->status); |
367 | break; | 388 | break; |
368 | 389 | ||
390 | case 3: | ||
391 | amd_decode_ls_mce(m->status); | ||
392 | break; | ||
393 | |||
369 | case 4: | 394 | case 4: |
370 | regs.nbsl = (u32) m->status; | 395 | regs.nbsl = (u32) m->status; |
371 | regs.nbsh = (u32)(m->status >> 32); | 396 | regs.nbsh = (u32)(m->status >> 32); |