2014-05-16 17:58:42 +02:00
|
|
|
Add F12h decoding support
|
|
|
|
|
|
|
|
Signed-off-by: Borislav Petkov <bp@suse.de>
|
2021-01-27 09:15:07 +01:00
|
|
|
---
|
|
|
|
amd.c | 11 +++++++++++
|
|
|
|
amd.h | 4 +++-
|
|
|
|
mcelog.c | 2 ++
|
|
|
|
mcelog.h | 1 +
|
|
|
|
4 files changed, 17 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
--- a/amd.c
|
|
|
|
+++ b/amd.c
|
|
|
|
@@ -157,6 +157,8 @@
|
2014-05-16 17:58:42 +02:00
|
|
|
return CPU_F10H;
|
|
|
|
case 0x11:
|
|
|
|
return CPU_F11H;
|
|
|
|
+ case 0x12:
|
|
|
|
+ return CPU_F12H;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2021-01-27 09:15:07 +01:00
|
|
|
@@ -648,6 +650,12 @@
|
2014-05-16 17:58:42 +02:00
|
|
|
.mc1_mce = k8_mc1_mce,
|
|
|
|
.mc2_mce = k8_mc2_mce,
|
|
|
|
},
|
|
|
|
+ [AMD_F12H] = {
|
|
|
|
+ .cpu = AMD_F12H,
|
|
|
|
+ .mc0_mce = f12h_mc0_mce,
|
|
|
|
+ .mc1_mce = k8_mc1_mce,
|
|
|
|
+ .mc2_mce = k8_mc2_mce,
|
|
|
|
+ },
|
|
|
|
};
|
|
|
|
|
|
|
|
static void __decode_amd_mc(enum cputype cpu, struct mce *mce)
|
2021-01-27 09:15:07 +01:00
|
|
|
@@ -661,6 +669,9 @@
|
2014-05-16 17:58:42 +02:00
|
|
|
case CPU_F11H:
|
|
|
|
ops = &fam_ops[AMD_F11H];
|
|
|
|
break;
|
|
|
|
+ case CPU_F12H:
|
|
|
|
+ ops = &fam_ops[AMD_F12H];
|
|
|
|
+ break;
|
|
|
|
default:
|
|
|
|
Eprintf("Huh? What family is it: 0x%x?!\n", cpu);
|
|
|
|
return;
|
2021-01-27 09:15:07 +01:00
|
|
|
--- a/amd.h
|
|
|
|
+++ b/amd.h
|
|
|
|
@@ -9,6 +9,7 @@
|
2014-05-16 17:58:42 +02:00
|
|
|
AMD_K8 = 0,
|
|
|
|
AMD_F10H,
|
|
|
|
AMD_F11H,
|
|
|
|
+ AMD_F12H,
|
|
|
|
AMD_F14H,
|
|
|
|
AMD_F15H,
|
|
|
|
AMD_F16H,
|
2021-01-27 09:15:07 +01:00
|
|
|
@@ -94,4 +95,5 @@
|
2014-05-16 17:58:42 +02:00
|
|
|
#define CASE_AMD_CPUS \
|
|
|
|
case CPU_K8: \
|
|
|
|
case CPU_F10H: \
|
|
|
|
- case CPU_F11H
|
|
|
|
+ case CPU_F11H: \
|
|
|
|
+ case CPU_F12H
|
2021-01-27 09:15:07 +01:00
|
|
|
--- a/mcelog.c
|
|
|
|
+++ b/mcelog.c
|
|
|
|
@@ -231,6 +231,7 @@
|
2014-05-16 17:58:42 +02:00
|
|
|
[CPU_K8] = "AMD K8 and derivates",
|
|
|
|
[CPU_F10H] = "AMD Greyhound",
|
|
|
|
[CPU_F11H] = "AMD Griffin",
|
|
|
|
+ [CPU_F12H] = "AMD Llano",
|
|
|
|
[CPU_P4] = "Intel P4",
|
|
|
|
[CPU_NEHALEM] = "Intel Xeon 5500 series / Core i3/5/7 (\"Nehalem/Westmere\")",
|
|
|
|
[CPU_DUNNINGTON] = "Intel Xeon 7400 series",
|
2021-01-27 09:15:07 +01:00
|
|
|
@@ -272,6 +273,7 @@
|
2014-05-16 17:58:42 +02:00
|
|
|
{ "k8", CPU_K8 },
|
|
|
|
{ "f10h", CPU_F10H },
|
|
|
|
{ "f11h", CPU_F11H },
|
|
|
|
+ { "f12h", CPU_F12H },
|
|
|
|
{ "p4", CPU_P4 },
|
|
|
|
{ "dunnington", CPU_DUNNINGTON },
|
|
|
|
{ "xeon74xx", CPU_DUNNINGTON },
|
2021-01-27 09:15:07 +01:00
|
|
|
--- a/mcelog.h
|
|
|
|
+++ b/mcelog.h
|
|
|
|
@@ -121,6 +121,7 @@
|
|
|
|
CPU_K8,
|
|
|
|
CPU_F10H,
|
|
|
|
CPU_F11H,
|
|
|
|
+ CPU_F12H,
|
|
|
|
CPU_P4,
|
|
|
|
CPU_NEHALEM,
|
|
|
|
CPU_DUNNINGTON,
|