x86/mce: Check for alternate indication of machine check recovery on Skylake
authorTony Luck <tony.luck@intel.com>
Fri, 25 May 2018 21:42:09 +0000 (14:42 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 7 Jun 2018 20:22:12 +0000 (22:22 +0200)
commit4c5717da1d021cf368eabb3cb1adcaead56c0d1e
tree40e4abcc6dec6cca1cb8034cfdf0eaf4f67605c3
parentc7d606f560e4c698884697fef503e4abacdd8c25
x86/mce: Check for alternate indication of machine check recovery on Skylake

Currently we just check the "CAPID0" register to see whether the CPU
can recover from machine checks.

But there are also some special SKUs which do not have all advanced
RAS features, but do enable machine check recovery for use with NVDIMMs.

Add a check for any of bits {8:5} in the "CAPID5" register (each
reports some NVDIMM mode available, if any of them are set, then
the system supports memory machine check recovery).

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: Ashok Raj <ashok.raj@intel.com>
Cc: stable@vger.kernel.org # 4.9
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/03cbed6e99ddafb51c2eadf9a3b7c8d7a0cc204e.1527283897.git.tony.luck@intel.com
arch/x86/kernel/quirks.c