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

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

x86, mce: synchronize core after machine check handling



The example code in the IA32 SDM recommends to synchronize the CPU
after machine check handling. So do that here.

[ Impact: Spec compliance ]

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 5706001a
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -328,6 +328,8 @@ void machine_check_poll(enum mcp_flags flags, mce_banks_t *b)
	 * Don't clear MCG_STATUS here because it's only defined for
	 * Don't clear MCG_STATUS here because it's only defined for
	 * exceptions.
	 * exceptions.
	 */
	 */

	sync_core();
}
}
EXPORT_SYMBOL_GPL(machine_check_poll);
EXPORT_SYMBOL_GPL(machine_check_poll);


@@ -501,6 +503,7 @@ void do_machine_check(struct pt_regs *regs, long error_code)
	mce_wrmsrl(MSR_IA32_MCG_STATUS, 0);
	mce_wrmsrl(MSR_IA32_MCG_STATUS, 0);
 out2:
 out2:
	atomic_dec(&mce_entry);
	atomic_dec(&mce_entry);
	sync_core();
}
}
EXPORT_SYMBOL_GPL(do_machine_check);
EXPORT_SYMBOL_GPL(do_machine_check);