Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212112
b: refs/heads/master
c: ded5062
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov authored and Borislav Petkov committed Oct 21, 2010
1 parent 6a366e4 commit 764e126
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 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: dd53bce4e8987f6848840d42bbeead5221eff308
refs/heads/master: ded506232865e8e932bc21c87f48170d50db4d97
18 changes: 13 additions & 5 deletions trunk/drivers/edac/mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,19 +339,27 @@ static void amd_decode_bu_mce(struct mce *m)

static void amd_decode_ls_mce(struct mce *m)
{
u32 ec = m->status & 0xffff;
u32 xec = (m->status >> 16) & 0xf;
u16 ec = m->status & 0xffff;
u8 xec = (m->status >> 16) & 0xf;

if (boot_cpu_data.x86 == 0x14) {
pr_emerg("You shouldn't be seeing an LS MCE on this cpu family,"
" please report on LKML.\n");
return;
}

pr_emerg(HW_ERR "Load Store Error");

if (xec == 0x0) {
u8 rrrr = (ec >> 4) & 0xf;
u8 r4 = (ec >> 4) & 0xf;

if (!BUS_ERROR(ec) || (rrrr != 0x3 && rrrr != 0x4))
if (!BUS_ERROR(ec) || (r4 != R4_DRD && r4 != R4_DWR))
goto wrong_ls_mce;

pr_cont(" during %s.\n", RRRR_MSG(ec));
}
} else
goto wrong_ls_mce;

return;

wrong_ls_mce:
Expand Down

0 comments on commit 764e126

Please sign in to comment.