]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86, mce, cmci: recheck CMCI banks after APIC has been enabled on CPU #0
authorAndi Kleen <andi@firstfloor.org>
Thu, 12 Feb 2009 12:49:38 +0000 (13:49 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 24 Feb 2009 21:41:01 +0000 (13:41 -0800)
commitbe71b8553d0522aba535a815baaebb1f0bb9a9ec
treebbf5093333405249fa360a1dbf5dcc42be514a98
parent5ca8681ca10f671427710f4954644359856581a3
x86, mce, cmci: recheck CMCI banks after APIC has been enabled on CPU #0

Impact: Fix marginal race condition

One the first CPU the machine checks are enabled early before
the local APIC is enabled. This could in theory lead
to some lost CMCI events very early during boot because
CMCIs cannot be delivered with disabled LAPIC.

The poller also doesn't recover from this because it doesn't
check CMCI banks.

Add an explicit CMCI banks check after the LAPIC is enabled.
This is only done for CPU #0, the other CPUs only initialize
machine checks after the LAPIC is on.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/apic.c