linux_dsm_epyc7002/arch/x86/kernel/cpu/mcheck
Hidetoshi Seto 680b6cfd3c x86, mce: CE in last bank prevents panic by unknown MCE
If MCE handler is called but none of mces_seen have machine
check event which might signal the MCE (i.e. event higher than
MCE_KEEP_SEVERITY), panic with "Machine check from unknown
source" will be taken since the MCE is assumed to be signaled
from external agent or so.

Usually mces_seen never point MCE_KEEP_SEVERITY event such as
CE. But it can happen because initial value of mces_seen is
accidentally modified by mce_no_way_out() - in case if
mce_no_way_out() run through all banks and the last bank has
the CE, mces_seen points the CE and the "panic by unknown" will
not be taken.

This patch fixes this undesired behavior, and clarifies the logic.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jin Dongming <jin.dongming@np.css.fujitsu.com>
LKML-Reference: <4A94E244.3020301@jp.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Reported-by: Jin Dongming <jin.dongming@np.css.fujitsu.com>
2009-08-26 20:21:11 +02:00
..
Makefile x86: mce: Rename CONFIG_X86_NEW_MCE to CONFIG_X86_MCE 2009-07-09 18:39:47 -07:00
mce_amd.c x86, mce: rename _64.c files which are no longer 64-bit-specific 2009-06-16 16:56:11 -07:00
mce_intel.c x86: mce: macros to compute banks MSRs 2009-07-09 18:39:47 -07:00
mce-inject.c x86, mce: Support specifying raise mode for software MCE injection 2009-08-10 13:58:41 -07:00
mce-internal.h x86, mce: Move debugfs mce dir creating to mce.c 2009-08-10 13:58:53 -07:00
mce-severity.c x86, mce: Move debugfs mce dir creating to mce.c 2009-08-10 13:58:53 -07:00
mce.c x86, mce: CE in last bank prevents panic by unknown MCE 2009-08-26 20:21:11 +02:00
p5.c x86, mce: make mce_disabled boolean 2009-06-16 16:56:07 -07:00
therm_throt.c x86, mce: fix reporting of Thermal Monitoring mechanism enabled 2009-07-29 15:45:13 -07:00
threshold.c x86, mce: enable MCE_INTEL for 32bit new MCE 2009-05-28 09:24:13 -07:00
winchip.c x86, mce: unify mce.h 2009-06-16 16:56:07 -07:00