Skip to content

Commit

Permalink
x86, mce: log corrected errors when panicing
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and H. Peter Anvin committed Jun 3, 2009
1 parent 8ee0834 commit de8a84d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/cpu/mcheck/mce.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit de8a84d

Please sign in to comment.