]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
x86, rasdaemon: Add support to log Local Machine Check Exception (LMCE)
authorAshok Raj <ashok.raj@intel.com>
Fri, 5 Jun 2015 16:32:47 +0000 (13:32 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 3 Jul 2015 10:23:14 +0000 (07:23 -0300)
Local Machine Check Exception allows certain errors to be signaled to
only the affected logical processor. This change captures them for
rasdaemon.

log:Changes to rasdaemon to support new architectural changes to MCE

Changet to rasdaemon to support new architectural extentions in Intel
CPUs.

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
mce-intel.c
ras-mce-handler.h

index 368460227eebafd18875e77565c1d6272cd358b8..3503c6ac3442de9f99c06aa0cac20ee84f049ea5 100644 (file)
@@ -185,6 +185,8 @@ static void decode_mcg(struct mce_event *e)
                mce_snprintf(e->mcgstatus_msg, "EIPV");
        if (mcgstatus & MCG_STATUS_MCIP)
                mce_snprintf(e->mcgstatus_msg, "MCIP");
+       if (mcgstatus & MCG_STATUS_LMCE)
+               mce_snprintf(e->mcgstatus_msg, "LMCE");
 }
 
 static void bank_name(struct mce_event *e)
index 28aad0083f9c07011d78b48ff987f8ba0af1ace0..13b8f521b0dc02248bc62f167befb52c7e856555 100644 (file)
@@ -139,6 +139,7 @@ void tulsa_decode_model(struct mce_event *e);
 #define MCG_STATUS_RIPV  (1ULL<<0)   /* restart ip valid */
 #define MCG_STATUS_EIPV  (1ULL<<1)   /* eip points to correct instruction */
 #define MCG_STATUS_MCIP  (1ULL<<2)   /* machine check in progress */
+#define MCG_STATUS_LMCE  (1ULL<<3)   /* local machine check signaled */
 
 /* Those functions are defined on per-cpu vendor C files */
 int parse_intel_event(struct ras_events *ras, struct mce_event *e);