x86/mce: Provide boot argument to honour bios-set CMCI threshold
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Thu, 27 Sep 2012 17:08:00 +0000 (10:08 -0700)
committerTony Luck <tony.luck@intel.com>
Thu, 27 Sep 2012 17:08:00 +0000 (10:08 -0700)
commit450cc201038f31bd496e1b3a44a49790b8827a06
tree254dd5a157702dad656ac37815fb346df94f8d8d
parent961ebea4ae68075bb5a0acc19f5852bed82bb877
x86/mce: Provide boot argument to honour bios-set CMCI threshold

The ACPI spec doesn't provide for a way for the bios to pass down
recommended thresholds to the OS on a _per-bank_ basis. This patch adds
a new boot option, which if passed, tells Linux to use CMCI thresholds
set by the bios.

As fail-safe, we initialize threshold to 1 if some banks have not been
initialized by the bios and warn the user.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Documentation/x86/x86_64/boot-options.txt
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mcheck/mce.c
arch/x86/kernel/cpu/mcheck/mce_intel.c