|
|
ac32bf |
---
|
|
|
ac32bf |
mce-intel.c | 3 +++
|
|
|
ac32bf |
ras-mce-handler.c | 5 +++++
|
|
|
ac32bf |
ras-mce-handler.h | 1 +
|
|
|
ac32bf |
3 files changed, 9 insertions(+)
|
|
|
ac32bf |
|
|
|
ac32bf |
--- rasdaemon-0.4.1.orig/mce-intel.c 2017-05-30 12:04:54.440167730 -0400
|
|
|
ac32bf |
+++ rasdaemon-0.4.1/mce-intel.c 2017-05-30 12:06:51.705755469 -0400
|
|
|
ac32bf |
@@ -399,6 +399,7 @@ if (test_prefix(11, (e->status & 0xffffL
|
|
|
ac32bf |
hsw_decode_model(ras, e);
|
|
|
ac32bf |
break;
|
|
|
ac32bf |
case CPU_KNIGHTS_LANDING:
|
|
|
ac32bf |
+ case CPU_KNIGHTS_MILL:
|
|
|
ac32bf |
knl_decode_model(ras, e);
|
|
|
ac32bf |
break;
|
|
|
ac32bf |
case CPU_BROADWELL_DE:
|
|
|
ac32bf |
@@ -470,6 +471,8 @@ int set_intel_imc_log(enum cputype cputy
|
|
|
ac32bf |
case CPU_SANDY_BRIDGE_EP:
|
|
|
ac32bf |
case CPU_IVY_BRIDGE_EPEX:
|
|
|
ac32bf |
case CPU_HASWELL_EPEX:
|
|
|
ac32bf |
+ case CPU_KNIGHTS_LANDING:
|
|
|
ac32bf |
+ case CPU_KNIGHTS_MILL:
|
|
|
ac32bf |
msr = 0x17f; /* MSR_ERROR_CONTROL */
|
|
|
ac32bf |
bit = 0x2; /* MemError Log Enable */
|
|
|
ac32bf |
break;
|
|
|
ac32bf |
--- rasdaemon-0.4.1.orig/ras-mce-handler.c 2017-05-30 12:04:54.440167730 -0400
|
|
|
ac32bf |
+++ rasdaemon-0.4.1/ras-mce-handler.c 2017-05-30 12:07:59.850934779 -0400
|
|
|
ac32bf |
@@ -53,6 +53,7 @@ [CPU_XEON75XX] = "Intel Xeon 7500 series
|
|
|
ac32bf |
[CPU_BROADWELL_DE] = "Broadwell DE",
|
|
|
ac32bf |
[CPU_BROADWELL_EPEX] = "Broadwell EP/EX",
|
|
|
ac32bf |
[CPU_KNIGHTS_LANDING] = "Knights Landing",
|
|
|
ac32bf |
+ [CPU_KNIGHTS_MILL] = "Knights Mill",
|
|
|
ac32bf |
};
|
|
|
ac32bf |
|
|
|
ac32bf |
static enum cputype select_intel_cputype(struct ras_events *ras)
|
|
|
ac32bf |
@@ -100,6 +101,8 @@ else if (mce->model == 0x3d)
|
|
|
ac32bf |
return CPU_BROADWELL;
|
|
|
ac32bf |
else if (mce->model == 0x57)
|
|
|
ac32bf |
return CPU_KNIGHTS_LANDING;
|
|
|
ac32bf |
+ else if (mce->model == 0x85)
|
|
|
ac32bf |
+ return CPU_KNIGHTS_MILL;
|
|
|
ac32bf |
|
|
|
ac32bf |
if (mce->model > 0x1a) {
|
|
|
ac32bf |
log(ALL, LOG_INFO,
|
|
|
ac32bf |
@@ -228,6 +231,8 @@ int register_mce_handler(struct ras_even
|
|
|
ac32bf |
case CPU_SANDY_BRIDGE_EP:
|
|
|
ac32bf |
case CPU_IVY_BRIDGE_EPEX:
|
|
|
ac32bf |
case CPU_HASWELL_EPEX:
|
|
|
ac32bf |
+ case CPU_KNIGHTS_LANDING:
|
|
|
ac32bf |
+ case CPU_KNIGHTS_MILL:
|
|
|
ac32bf |
set_intel_imc_log(mce->cputype, ncpus);
|
|
|
ac32bf |
default:
|
|
|
ac32bf |
break;
|
|
|
ac32bf |
--- rasdaemon-0.4.1.orig/ras-mce-handler.h 2017-05-30 12:04:54.440167730 -0400
|
|
|
ac32bf |
+++ rasdaemon-0.4.1/ras-mce-handler.h 2017-05-30 12:04:58.976113103 -0400
|
|
|
ac32bf |
@@ -48,6 +48,7 @@ enum cputype {
|
|
|
ac32bf |
CPU_BROADWELL_DE,
|
|
|
ac32bf |
CPU_BROADWELL_EPEX,
|
|
|
ac32bf |
CPU_KNIGHTS_LANDING,
|
|
|
ac32bf |
+ CPU_KNIGHTS_MILL,
|
|
|
ac32bf |
};
|
|
|
ac32bf |
|
|
|
ac32bf |
struct mce_event {
|