x86, mce: Add boot options for corrected errors
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Thu, 11 Jun 2009 07:06:07 +0000 (16:06 +0900)
committerIngo Molnar <mingo@elte.hu>
Thu, 11 Jun 2009 09:42:18 +0000 (11:42 +0200)
commit62fdac5913f71f8f200bd2c9bd59a02e9a1498e9
tree9ba4cce91bf53198a295ca7909b027ca17b637fa
parent77e26cca20013e9352a8df86a54640543304a23a
x86, mce: Add boot options for corrected errors

This patch introduces three boot options (no_cmci, dont_log_ce
and ignore_ce) to control handling for corrected errors.

The "mce=no_cmci" boot option disables the CMCI feature.

Since CMCI is a new feature so having boot controls to disable
it will be a help if the hardware is misbehaving.

The "mce=dont_log_ce" boot option disables logging for corrected
errors. All reported corrected errors will be cleared silently.
This option will be useful if you never care about corrected
errors.

The "mce=ignore_ce" boot option disables features for corrected
errors, i.e. polling timer and cmci.  All corrected events are
not cleared and kept in bank MSRs.

Usually this disablement is not recommended, however it will be
a help if there are some conflict with the BIOS or hardware
monitoring applications etc., that clears corrected events in
banks instead of OS.

[ And trivial cleanup (space -> tab) for doc is included. ]

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
LKML-Reference: <4A30ACDF.5030408@jp.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
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_64.c