x86/cpufeature: Create a new synthetic cpu capability for machine check recovery
authorTony Luck <tony.luck@intel.com>
Wed, 17 Feb 2016 18:20:13 +0000 (10:20 -0800)
committerIngo Molnar <mingo@kernel.org>
Thu, 18 Feb 2016 08:28:47 +0000 (09:28 +0100)
commit0f68c088c0adb3c3bbeb487c4ebcde91fd5d34be
tree4aa087d9a71e7f27655d43d0a46555efd856ecf6
parent3a2f2ac9b96f9a9f5538396a212d3b9fb543bfc5
x86/cpufeature: Create a new synthetic cpu capability for machine check recovery

The Intel Software Developer Manual describes bit 24 in the MCG_CAP
MSR:

   MCG_SER_P (software error recovery support present) flag,
   bit 24 — Indicates (when set) that the processor supports
   software error recovery

But only some models with this capability bit set will actually
generate recoverable machine checks.

Check the model name and set a synthetic capability bit. Provide
a command line option to set this bit anyway in case the kernel
doesn't recognise the model name.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/2e5bfb23c89800a036fb8a45fa97a74bb16bc362.1455732970.git.tony.luck@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Documentation/x86/x86_64/boot-options.txt
arch/x86/include/asm/cpufeatures.h
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mcheck/mce.c