From 0aeedd42eecee0f1d5b658c3441f8efecb0c6473 Mon Sep 17 00:00:00 2001 From: Wonkyu Kim Date: Mon, 22 Mar 2021 20:07:15 -0700 Subject: src/*acpi: create acpi table for x2apic mode Create acpi table for x2apic nmi, apic_ids BUG=None BRANCH=None TEST=boot to OS and check apic mode cat /proc/cpuinfo | grep "apicid" Signed-off-by: Wonkyu Kim Change-Id: I9399d30b686b55d86806f5db4110bf4a80fe459b Reviewed-on: https://review.coreboot.org/c/coreboot/+/51724 Tested-by: build bot (Jenkins) Reviewed-by: Ravishankar Sarawadi Reviewed-by: Jamie Ryu Reviewed-by: Patrick Georgi --- src/soc/intel/common/block/acpi/acpi.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/soc') diff --git a/src/soc/intel/common/block/acpi/acpi.c b/src/soc/intel/common/block/acpi/acpi.c index cf62cccfa7..d7a0e8e5ec 100644 --- a/src/soc/intel/common/block/acpi/acpi.c +++ b/src/soc/intel/common/block/acpi/acpi.c @@ -19,6 +19,7 @@ #include #include #include +#include #define CPUID_6_EAX_ISST (1 << 7) @@ -80,6 +81,10 @@ static unsigned long acpi_madt_irq_overrides(unsigned long current) /* NMI */ current += acpi_create_madt_lapic_nmi((acpi_madt_lapic_nmi_t *)current, 0xff, 5, 1); + if (is_x2apic_mode()) + current += acpi_create_madt_lx2apic_nmi((acpi_madt_lx2apic_nmi_t *)current, + 0xff, 0xd, 1); + return current; } -- cgit v1.2.3