Skip to content

Commit b8f85c4

Browse files
author
Borislav Petkov
committed
EDAC, MCE: Add F15h FP MCE decoder
Add decoder for FP MCEs. Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
1 parent 8259a7e commit b8f85c4

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

‎drivers/edac/mce_amd.c‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,46 @@ static void amd_decode_fr_mce(struct mce *m)
692692
pr_emerg(HW_ERR "Corrupted FR MCE info?\n");
693693
}
694694

695+
static void amd_decode_fp_mce(struct mce *m)
696+
{
697+
u8 xec = (m->status >> 16) & xec_mask;
698+
699+
pr_emerg(HW_ERR "Floating Point Unit Error: ");
700+
701+
switch (xec) {
702+
case 0x1:
703+
pr_cont("Free List");
704+
break;
705+
706+
case 0x2:
707+
pr_cont("Physical Register File");
708+
break;
709+
710+
case 0x3:
711+
pr_cont("Retire Queue");
712+
break;
713+
714+
case 0x4:
715+
pr_cont("Scheduler table");
716+
break;
717+
718+
case 0x5:
719+
pr_cont("Status Register File");
720+
break;
721+
722+
default:
723+
goto wrong_fp_mce;
724+
break;
725+
}
726+
727+
pr_cont(" parity error.\n");
728+
729+
return;
730+
731+
wrong_fp_mce:
732+
pr_emerg(HW_ERR "Corrupted FP MCE info?\n");
733+
}
734+
695735
static inline void amd_decode_err_code(u16 ec)
696736
{
697737
if (TLB_ERROR(ec)) {
@@ -777,6 +817,10 @@ int amd_decode_mce(struct notifier_block *nb, unsigned long val, void *data)
777817
amd_decode_fr_mce(m);
778818
break;
779819

820+
case 6:
821+
amd_decode_fp_mce(m);
822+
break;
823+
780824
default:
781825
break;
782826
}

0 commit comments

Comments
 (0)