Blame SOURCES/0056-x86-rasdaemon-Add-support-to-log-Local-Machine-Check.patch

d9e469
From fa6260eb1304c6c829af177ab4aa1937db36fab1 Mon Sep 17 00:00:00 2001
d9e469
From: Ashok Raj <ashok.raj@intel.com>
d9e469
Date: Fri, 5 Jun 2015 13:32:47 -0300
d9e469
Subject: [PATCH 1/5] x86, rasdaemon: Add support to log Local Machine Check
d9e469
 Exception (LMCE)
d9e469
d9e469
Local Machine Check Exception allows certain errors to be signaled to
d9e469
only the affected logical processor. This change captures them for
d9e469
rasdaemon.
d9e469
d9e469
log:Changes to rasdaemon to support new architectural changes to MCE
d9e469
d9e469
Changet to rasdaemon to support new architectural extentions in Intel
d9e469
CPUs.
d9e469
d9e469
Signed-off-by: Ashok Raj <ashok.raj@intel.com>
d9e469
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
d9e469
---
d9e469
 mce-intel.c       | 2 ++
d9e469
 ras-mce-handler.h | 1 +
d9e469
 2 files changed, 3 insertions(+)
d9e469
d9e469
diff --git a/mce-intel.c b/mce-intel.c
d9e469
index 3684602..3503c6a 100644
d9e469
--- a/mce-intel.c
d9e469
+++ b/mce-intel.c
d9e469
@@ -185,6 +185,8 @@ static void decode_mcg(struct mce_event *e)
d9e469
 		mce_snprintf(e->mcgstatus_msg, "EIPV");
d9e469
 	if (mcgstatus & MCG_STATUS_MCIP)
d9e469
 		mce_snprintf(e->mcgstatus_msg, "MCIP");
d9e469
+	if (mcgstatus & MCG_STATUS_LMCE)
d9e469
+		mce_snprintf(e->mcgstatus_msg, "LMCE");
d9e469
 }
d9e469
 
d9e469
 static void bank_name(struct mce_event *e)
d9e469
diff --git a/ras-mce-handler.h b/ras-mce-handler.h
d9e469
index 28aad00..13b8f52 100644
d9e469
--- a/ras-mce-handler.h
d9e469
+++ b/ras-mce-handler.h
d9e469
@@ -139,6 +139,7 @@ void tulsa_decode_model(struct mce_event *e);
d9e469
 #define MCG_STATUS_RIPV  (1ULL<<0)   /* restart ip valid */
d9e469
 #define MCG_STATUS_EIPV  (1ULL<<1)   /* eip points to correct instruction */
d9e469
 #define MCG_STATUS_MCIP  (1ULL<<2)   /* machine check in progress */
d9e469
+#define MCG_STATUS_LMCE  (1ULL<<3)   /* local machine check signaled */
d9e469
 
d9e469
 /* Those functions are defined on per-cpu vendor C files */
d9e469
 int parse_intel_event(struct ras_events *ras, struct mce_event *e);
d9e469
-- 
d9e469
1.8.3.1
d9e469