]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit345048df20282033188caf4682b009f96d7d109f
tree40e4abcc6dec6cca1cb8034cfdf0eaf4f67605c3
parentb9c43d92b348c12d69387d112c552804de6dc438
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