diff options
author | Chen Gong <gong.chen@linux.intel.com> | 2012-08-09 11:44:51 -0700 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2012-08-09 11:44:51 -0700 |
commit | 55babd8f41f122f5f4c7cebf520c766c983282c6 (patch) | |
tree | 64c2913c55c5d6018051a638557cefcc48bbead6 /arch/x86/kernel/apic/io_apic.c | |
parent | 4670a300a2169e1e922593c5d35b0cdaee112901 (diff) |
x86/mce: Add CMCI poll mode
On Intel systems corrected machine check interrupts (CMCI) may be sent to
multiple logical processors; possibly to all processors on the affected
socket (SDM Volume 3B "15.5.1 CMCI Local APIC Interface"). This means
that a persistent error (such as a stuck bit in ECC memory) may cause
a storm of interrupts that greatly hinders or prevents forward progress
(probably on many processors).
To solve this we keep track of the rate at which each processor sees
CMCI. If we exceed a threshold, we disable CMCI delivery and switch to
polling the machine check banks. If the storm subsides (none of the
affected processors see any more errors for a complete poll interval) we
re-enable CMCI.
[Tony: Added console messages when storm begins/ends and increased storm
threshold from 5 to 15 so we have a few more logged entries before we
disable interrupts and start dropping reports]
Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Chen Gong <gong.chen@linux.intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/x86/kernel/apic/io_apic.c')
0 files changed, 0 insertions, 0 deletions