Depending on the Kconfig, LAPIC may be in either xAPIC or x2APIC mode. However, coreboot generates MADT LAPIC entries based on APIC ID rather than currently enabled LAPIC mode. This resulted in LAPICs enabled in x2APIC mode being described as xAPICs in MADT. Create appropriate MADT LAPIC entries based on currently enabled mode by calling is_x2apic_mode. TEST=MADT describes LAPICs in x2APIC mode on Gigabyte MZ33-AR1, matching the actually enabled LAPIC mode. Change-Id: Iebbbca415f0b775339cbfab5c24848940d92878d Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/89475 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-by: Alicja Michalska <ahplka19@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> |
||
|---|---|---|
| .. | ||
| acpi.c | ||
| acpi_apic.c | ||
| acpi_dmar.c | ||
| acpi_gic.c | ||
| acpi_hpet.c | ||
| acpi_iort.c | ||
| acpi_pm.c | ||
| acpi_pptt.c | ||
| acpigen.c | ||
| acpigen_dptf.c | ||
| acpigen_dsm.c | ||
| acpigen_extern.asl | ||
| acpigen_pci.c | ||
| acpigen_pci_root_resource_producer.c | ||
| acpigen_ps2_keybd.c | ||
| acpigen_usb.c | ||
| device.c | ||
| dsdt_top.asl | ||
| fadt_filler.c | ||
| gnvs.c | ||
| Kconfig | ||
| Makefile.mk | ||
| pld.c | ||
| sata.c | ||
| soundwire.c | ||