summaryrefslogtreecommitdiffstats
path: root/src/cpu/x86/Kconfig
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2022-07-12 10:55:21 +0000
committerFelix Held <felix-coreboot@felixheld.de>2022-07-18 15:40:46 +0000
commit2125a17c6a749651945a52ff39cbc8e81c3dcbd8 (patch)
tree5348508282dea5e7c337bb224c135c09bd95ffe1 /src/cpu/x86/Kconfig
parentc7c746c3b2cab52a80719bba39cbdc9ea4babb35 (diff)
downloadcoreboot-2125a17c6a749651945a52ff39cbc8e81c3dcbd8.tar.gz
coreboot-2125a17c6a749651945a52ff39cbc8e81c3dcbd8.tar.bz2
coreboot-2125a17c6a749651945a52ff39cbc8e81c3dcbd8.zip
arch/x86: Add X2APIC_LATE_WORKAROUND
Add option to do AP bringup with LAPICs in XAPIC mode and switch to X2APIC later in CPU init. Change-Id: I94c9daa3bc7173628f84094a3d5ca59e699ad334 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/65766 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/cpu/x86/Kconfig')
-rw-r--r--src/cpu/x86/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cpu/x86/Kconfig b/src/cpu/x86/Kconfig
index 5b9279511df2..1617ad695335 100644
--- a/src/cpu/x86/Kconfig
+++ b/src/cpu/x86/Kconfig
@@ -51,6 +51,17 @@ config X2APIC_RUNTIME
bool
depends on PARALLEL_MP
+config X2APIC_LATE_WORKAROUND
+ prompt "Use XAPIC for AP bringup, then change to X2APIC"
+ bool
+ depends on PARALLEL_MP && MAX_CPUS < 255
+ help
+ Choose this option if the platform supports dynamic switching between
+ XAPIC to X2APIC. The initial Application Processors (APs) are configured
+ in XAPIC mode at reset and later enable X2APIC as a CPU feature.
+ All access mechanisms between XAPIC (mmio) and X2APIC (msr) switches
+ at runtime when this option is enabled.
+
endchoice
config UDELAY_LAPIC