The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] x86/mce: add support SRAO reported via CMC check
@ 2017-11-14  5:55 Xie XiuQi
  2017-11-14 18:51 ` Luck, Tony
  0 siblings, 1 reply; 9+ messages in thread
From: Xie XiuQi @ 2017-11-14  5:55 UTC (permalink / raw)
  To: tony.luck, bp; +Cc: tglx, mingo, hpa, x86, linux-edac, linux-kernel, xiexiuqi

In Intel SDM Volume 3B (253669-063US, July 2017), SRAO could be
reported via CMC:

  In cases when SRAO is signaled via CMCI the error signature is
  indicated via UC=1, PCC=0, S=0.

So we add those known AO MCACODs check in mce_severity().

Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>
Tested-by: Chen Wei <chenwei68@huawei.com>
---
 arch/x86/kernel/cpu/mcheck/mce-severity.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/x86/kernel/cpu/mcheck/mce-severity.c b/arch/x86/kernel/cpu/mcheck/mce-severity.c
index 4ca632a..48f239a 100644
--- a/arch/x86/kernel/cpu/mcheck/mce-severity.c
+++ b/arch/x86/kernel/cpu/mcheck/mce-severity.c
@@ -101,6 +101,16 @@
 		NOSER, BITCLR(MCI_STATUS_UC)
 		),
 
+	/* known AO MCACODs reported via CMC: */
+	MCESEV(
+		AO, "Action optional: memory scrubbing error",
+		SER, MASK(MCI_UC_SAR|MCACOD_SCRUBMSK, MCI_STATUS_UC|MCACOD_SCRUB)
+		),
+	MCESEV(
+		AO, "Action optional: last level cache writeback error",
+		SER, MASK(MCI_UC_SAR|MCACOD, MCI_STATUS_UC|MCACOD_L3WB)
+		),
+
 	/* ignore OVER for UCNA */
 	MCESEV(
 		UCNA, "Uncorrected no action required",
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-11-16 21:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-14  5:55 [PATCH] x86/mce: add support SRAO reported via CMC check Xie XiuQi
2017-11-14 18:51 ` Luck, Tony
2017-11-15  1:43   ` Xie XiuQi
2017-11-15  2:13     ` Luck, Tony
2017-11-15  2:39       ` Xie XiuQi
2017-11-15  2:44         ` Luck, Tony
2017-11-15 10:33           ` Borislav Petkov
2017-11-16  3:00             ` Xie XiuQi
2017-11-16 21:15               ` Luck, Tony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox