Blame SOURCES/0045-rasdaemon-add-support-for-Broadwell.patch

ac32bf
From a9810094cf838e03102f95333db7ddfe810ccabd Mon Sep 17 00:00:00 2001
ac32bf
From: Aristeu Rozanski <arozansk@redhat.com>
ac32bf
Date: Mon, 18 May 2015 14:19:32 -0300
ac32bf
Subject: [PATCH 05/13] rasdaemon: add support for Broadwell
ac32bf
ac32bf
Only basic support for now.
ac32bf
ac32bf
Based on mcelog code.
ac32bf
ac32bf
Signed-off-by: Aristeu Rozanski <arozansk@redhat.com>
ac32bf
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
ac32bf
---
ac32bf
 ras-mce-handler.c | 3 +++
ac32bf
 ras-mce-handler.h | 1 +
ac32bf
 2 files changed, 4 insertions(+)
ac32bf
ac32bf
diff --git a/ras-mce-handler.c b/ras-mce-handler.c
ac32bf
index 07e298f..e059b92 100644
ac32bf
--- a/ras-mce-handler.c
ac32bf
+++ b/ras-mce-handler.c
ac32bf
@@ -49,6 +49,7 @@ static char *cputype_name[] = {
ac32bf
 	[CPU_IVY_BRIDGE_EPEX] = "Ivy Bridge EP/EX",	/* Fill in better name */
ac32bf
 	[CPU_HASWELL] = "Haswell",
ac32bf
 	[CPU_HASWELL_EPEX] = "Intel Xeon v3 (Haswell) EP/EX",
ac32bf
+	[CPU_BROADWELL] = "Broadwell",
ac32bf
 };
ac32bf
 
ac32bf
 static enum cputype select_intel_cputype(struct ras_events *ras)
ac32bf
@@ -88,6 +89,8 @@ static enum cputype select_intel_cputype(struct ras_events *ras)
ac32bf
 			return CPU_HASWELL;
ac32bf
 		else if (mce->model == 0x3f)
ac32bf
 			return CPU_HASWELL_EPEX;
ac32bf
+		else if (mce->model == 0x3d)
ac32bf
+			return CPU_BROADWELL;
ac32bf
 
ac32bf
 		if (mce->model > 0x1a) {
ac32bf
 			log(ALL, LOG_INFO,
ac32bf
diff --git a/ras-mce-handler.h b/ras-mce-handler.h
ac32bf
index b8b3d4f..ba01f55 100644
ac32bf
--- a/ras-mce-handler.h
ac32bf
+++ b/ras-mce-handler.h
ac32bf
@@ -44,6 +44,7 @@ enum cputype {
ac32bf
 	CPU_IVY_BRIDGE_EPEX,
ac32bf
 	CPU_HASWELL,
ac32bf
 	CPU_HASWELL_EPEX,
ac32bf
+	CPU_BROADWELL,
ac32bf
 };
ac32bf
 
ac32bf
 struct mce_event {
ac32bf
-- 
ac32bf
1.8.3.1
ac32bf