]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
x86, mce: log corrected errors when panicing
authorAndi Kleen <andi@firstfloor.org>
Wed, 27 May 2009 19:56:53 +0000 (21:56 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 3 Jun 2009 21:40:39 +0000 (14:40 -0700)
Normally the machine check handler ignores corrected errors and leaves
them to machine_check_poll(). But when panicing mcp won't run, so
log all errors.

Note: this can still miss some cases until the "early no way out"
patch later is applied too.

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>
arch/x86/kernel/cpu/mcheck/mce.c

index ba68449c22a1ff9496a2d87f5fbcd9da0e5d3280..86806e52fc4042708db42f321e60c0a3b597d75a 100644 (file)
@@ -412,9 +412,9 @@ void do_machine_check(struct pt_regs *regs, long error_code)
 
                /*
                 * Non uncorrected errors are handled by machine_check_poll
-                * Leave them alone.
+                * Leave them alone, unless this panics.
                 */
-               if ((m.status & MCI_STATUS_UC) == 0)
+               if ((m.status & MCI_STATUS_UC) == 0 && !no_way_out)
                        continue;
 
                /*