x86/mce: Add Skylake quirk for patrol scrub reported errors
authorBorislav Petkov <bp@suse.de>
Wed, 30 Sep 2020 02:13:12 +0000 (19:13 -0700)
committerBorislav Petkov <bp@suse.de>
Wed, 30 Sep 2020 05:43:56 +0000 (07:43 +0200)
commitfd258dc4442c5c1c069c6b5b42bfe7d10cddda95
tree9f38ff8c21c810b2384cda2e1fe158735d3c23bb
parent4bd442e9a8388e8ec4ba7cf23a4774989d93b78e
x86/mce: Add Skylake quirk for patrol scrub reported errors

The patrol scrubber in Skylake and Cascade Lake systems can be configured
to report uncorrected errors using a special signature in the machine
check bank and to signal using CMCI instead of machine check.

Update the severity calculation mechanism to allow specifying the model,
minimum stepping and range of machine check bank numbers.

Add a new rule to detect the special signature (on model 0x55, stepping
>=4 in any of the memory controller banks).

 [ bp: Rewrite it.
   aegl: Productize it. ]

Suggested-by: Youquan Song <youquan.song@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Co-developed-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200930021313.31810-2-tony.luck@intel.com
arch/x86/kernel/cpu/mce/severity.c