From d90154c8de06b9cfa1b25b7fc22f08a7d8f1c298 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 2 Dec 2022 13:27:35 +0100 Subject: soc/intel: Set IO APIC DMAR entry based on hw MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids the need to hardcode the IOAPIC ID. Change-Id: I0965b511e71c58f1c31433bc54595a5fabb1c206 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/70268 Reviewed-by: Werner Zeh Reviewed-by: Sean Rhodes Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/soc/intel/apollolake/acpi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/soc/intel/apollolake') diff --git a/src/soc/intel/apollolake/acpi.c b/src/soc/intel/apollolake/acpi.c index a537b0f42b..b71ca64b72 100644 --- a/src/soc/intel/apollolake/acpi.c +++ b/src/soc/intel/apollolake/acpi.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include @@ -142,8 +143,8 @@ static unsigned long soc_fill_dmar(unsigned long current) current += acpi_create_dmar_drhd(current, DRHD_INCLUDE_PCI_ALL, 0, defvtbar); - current += acpi_create_dmar_ds_ioapic(current, - 2, ibdf.bus, ibdf.dev, ibdf.fn); + current += acpi_create_dmar_ds_ioapic_from_hw(current, + IO_APIC_ADDR, ibdf.bus, ibdf.dev, ibdf.fn); current += acpi_create_dmar_ds_msi_hpet(current, 0, hbdf.bus, hbdf.dev, hbdf.fn); acpi_dmar_drhd_fixup(tmp, current); -- cgit v1.2.3