Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de8a84d8 authored by Andi Kleen's avatar Andi Kleen Committed by H. Peter Anvin
Browse files

x86, mce: log corrected errors when panicing



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: default avatarAndi Kleen <ak@linux.intel.com>
Signed-off-by: default avatarHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 8ee08347
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -412,9 +412,9 @@ void do_machine_check(struct pt_regs *regs, long error_code)


		/*
		/*
		 * Non uncorrected errors are handled by machine_check_poll
		 * 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;
			continue;


		/*
		/*