diff options
author | Andi Kleen <andi@firstfloor.org> | 2009-05-27 21:56:55 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-06-03 14:40:39 -0700 |
commit | bd19a5e6b73df276e1ccedf9059e9ee70c372d7d (patch) | |
tree | f5e10b6340cfa416efa7b1d0c82712d8fbb2c94b /arch/x86/kernel/entry_64.S | |
parent | 817f32d02a52dd7f5941534e0699883691e918df (diff) | |
download | linux-bd19a5e6b73df276e1ccedf9059e9ee70c372d7d.tar.gz |
x86, mce: check early in exception handler if panic is needed
The exception handler should behave differently if the exception is
fatal versus one that can be returned from. In the first case it should
never clear any registers because these need to be preserved
for logging after the next boot. Otherwise it should clear them
on each CPU step by step so that other CPUs sharing the same bank don't
see duplicate events. Otherwise we risk reporting events multiple
times on any CPUs which have shared machine check banks, which
is a common problem on Intel Nehalem which has both SMT (two
CPU threads sharing banks) and shared machine check banks in the uncore.
Determine early in a special pass if any event requires a panic.
This uses the mce_severity() function added earlier.
This is needed for the next patch.
Also fixes a problem together with an earlier patch
that corrected events weren't logged on a fatal MCE.
[ Impact: Feature ]
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/entry_64.S')
0 files changed, 0 insertions, 0 deletions