Supposed fix for some SandyBridge mobile CPUs hang on AP startup when
authorkib <kib@FreeBSD.org>
Sat, 28 Feb 2015 20:37:38 +0000 (20:37 +0000)
committerkib <kib@FreeBSD.org>
Sat, 28 Feb 2015 20:37:38 +0000 (20:37 +0000)
commit59184505da6e3986b6abaa831f82cf1758e562e3
tree4aae09332a81222208bfe151c133df848753c6bd
parent359d7dfbbb2e410c9e331d28f42af00ba8db6fef
Supposed fix for some SandyBridge mobile CPUs hang on AP startup when
x2APIC mode is detected and enabled.  Current theory is that switching
the APIC mode while an IPI is in flight might be the issue.

Postpone switching to x2APIC mode until we are guaranteed that all
starting IPIs are already send and aknowledged.  Use aps_ready signal
as an indication that the BSP is done with us.

Tested by: adrian
Sponsored by: The FreeBSD Foundation
MFC after: 2 months
sys/amd64/amd64/mp_machdep.c
sys/i386/i386/mp_machdep.c