Skip to content

Commit

Permalink
EDAC, MCE: Add F15h FP MCE decoder
Browse files Browse the repository at this point in the history
Add decoder for FP MCEs.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
  • Loading branch information
Borislav Petkov committed Jan 7, 2011
1 parent 8259a7e commit b8f85c4
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions 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 b8f85c4

Please sign in to comment.