|
@@ -59,6 +59,7 @@ static struct severity {
|
|
|
#define MCGMASK(x, y) .mcgmask = x, .mcgres = y
|
|
|
#define MASK(x, y) .mask = x, .result = y
|
|
|
#define MCI_UC_S (MCI_STATUS_UC|MCI_STATUS_S)
|
|
|
+#define MCI_UC_AR (MCI_STATUS_UC|MCI_STATUS_AR)
|
|
|
#define MCI_UC_SAR (MCI_STATUS_UC|MCI_STATUS_S|MCI_STATUS_AR)
|
|
|
#define MCI_ADDR (MCI_STATUS_ADDRV|MCI_STATUS_MISCV)
|
|
|
|
|
@@ -101,6 +102,22 @@ static struct severity {
|
|
|
NOSER, BITCLR(MCI_STATUS_UC)
|
|
|
),
|
|
|
|
|
|
+ /*
|
|
|
+ * known AO MCACODs reported via MCE or CMC:
|
|
|
+ *
|
|
|
+ * SRAO could be signaled either via a machine check exception or
|
|
|
+ * CMCI with the corresponding bit S 1 or 0. So we don't need to
|
|
|
+ * check bit S for SRAO.
|
|
|
+ */
|
|
|
+ MCESEV(
|
|
|
+ AO, "Action optional: memory scrubbing error",
|
|
|
+ SER, MASK(MCI_STATUS_OVER|MCI_UC_AR|MCACOD_SCRUBMSK, MCI_STATUS_UC|MCACOD_SCRUB)
|
|
|
+ ),
|
|
|
+ MCESEV(
|
|
|
+ AO, "Action optional: last level cache writeback error",
|
|
|
+ SER, MASK(MCI_STATUS_OVER|MCI_UC_AR|MCACOD, MCI_STATUS_UC|MCACOD_L3WB)
|
|
|
+ ),
|
|
|
+
|
|
|
/* ignore OVER for UCNA */
|
|
|
MCESEV(
|
|
|
UCNA, "Uncorrected no action required",
|
|
@@ -149,15 +166,6 @@ static struct severity {
|
|
|
SER, MASK(MCI_STATUS_OVER|MCI_UC_SAR, MCI_UC_SAR)
|
|
|
),
|
|
|
|
|
|
- /* known AO MCACODs: */
|
|
|
- MCESEV(
|
|
|
- AO, "Action optional: memory scrubbing error",
|
|
|
- SER, MASK(MCI_STATUS_OVER|MCI_UC_SAR|MCACOD_SCRUBMSK, MCI_UC_S|MCACOD_SCRUB)
|
|
|
- ),
|
|
|
- MCESEV(
|
|
|
- AO, "Action optional: last level cache writeback error",
|
|
|
- SER, MASK(MCI_STATUS_OVER|MCI_UC_SAR|MCACOD, MCI_UC_S|MCACOD_L3WB)
|
|
|
- ),
|
|
|
MCESEV(
|
|
|
SOME, "Action optional: unknown MCACOD",
|
|
|
SER, MASK(MCI_STATUS_OVER|MCI_UC_SAR, MCI_UC_S)
|