Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227316
b: refs/heads/master
c: b8f85c4
h: refs/heads/master
v: v3
  • Loading branch information
Borislav Petkov committed Jan 7, 2011
1 parent 80f07e6 commit 3e15025
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8259a7e5724c42c89d927b92cda3e0ab15b9ade9
refs/heads/master: b8f85c477bdf1fec98ea7cbe952fdb5f40eb0aa7
44 changes: 44 additions & 0 deletions trunk/drivers/edac/mce_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,46 @@ static void amd_decode_fr_mce(struct mce *m)
pr_emerg(HW_ERR "Corrupted FR MCE info?\n");
}

static void amd_decode_fp_mce(struct mce *m)
{
u8 xec = (m->status >> 16) & xec_mask;

pr_emerg(HW_ERR "Floating Point Unit Error: ");

switch (xec) {
case 0x1:
pr_cont("Free List");
break;

case 0x2:
pr_cont("Physical Register File");
break;

case 0x3:
pr_cont("Retire Queue");
break;

case 0x4:
pr_cont("Scheduler table");
break;

case 0x5:
pr_cont("Status Register File");
break;

default:
goto wrong_fp_mce;
break;
}

pr_cont(" parity error.\n");

return;

wrong_fp_mce:
pr_emerg(HW_ERR "Corrupted FP MCE info?\n");
}

static inline void amd_decode_err_code(u16 ec)
{
if (TLB_ERROR(ec)) {
Expand Down Expand Up @@ -777,6 +817,10 @@ int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data)
amd_decode_fr_mce(m);
break;

case 6:
amd_decode_fp_mce(m);
break;

default:
break;
}
Expand Down

0 comments on commit 3e15025

Please sign in to comment.