aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp/nb_acpi.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2020-11-06 12:53:33 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-11-16 11:07:16 +0000
commita1cc557d614c8ea6822c8dada5aeb049cf685826 (patch)
treee34be00ba12ffe474ee740ee9ea5c663220e1979 /src/soc/intel/xeon_sp/nb_acpi.c
parentc8e86de3feff539e863562f3d4d896815aff2e70 (diff)
soc/intel/xeon_sp: Synchronize DMAR and MADT IOAPIC id's
Add a soc specific callback for getting the IIO IOAPIC enumeration ID. Tested on ocp/deltalake. Change-Id: Id504c2159066e6cddd01d30649921447bef17b12 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47302 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Diffstat (limited to 'src/soc/intel/xeon_sp/nb_acpi.c')
-rw-r--r--src/soc/intel/xeon_sp/nb_acpi.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/soc/intel/xeon_sp/nb_acpi.c b/src/soc/intel/xeon_sp/nb_acpi.c
index 55c3d820ca..4a4498080a 100644
--- a/src/soc/intel/xeon_sp/nb_acpi.c
+++ b/src/soc/intel/xeon_sp/nb_acpi.c
@@ -184,15 +184,6 @@ static unsigned long acpi_create_dmar_ds_pci_br_for_port(unsigned long current,
static unsigned long acpi_create_drhd(unsigned long current, int socket,
int stack, const IIO_UDS *hob)
{
- int IoApicID[] = {
- // socket 0
- PC00_IOAPIC_ID, PC01_IOAPIC_ID, PC02_IOAPIC_ID, PC03_IOAPIC_ID,
- PC04_IOAPIC_ID, PC05_IOAPIC_ID,
- // socket 1
- PC06_IOAPIC_ID, PC07_IOAPIC_ID, PC08_IOAPIC_ID, PC09_IOAPIC_ID,
- PC10_IOAPIC_ID, PC11_IOAPIC_ID,
- };
-
uint32_t enum_id;
unsigned long tmp = current;
@@ -231,7 +222,7 @@ static unsigned long acpi_create_drhd(unsigned long current, int socket,
}
// Add IOAPIC entry
- enum_id = IoApicID[(socket*MAX_IIO_STACK)+stack];
+ enum_id = soc_get_iio_ioapicid(socket, stack);
printk(BIOS_DEBUG, " [IOAPIC Device] Enumeration ID: 0x%x, PCI Bus Number: 0x%x, "
"PCI Path: 0x%x, 0x%x\n", enum_id, bus, APIC_DEV_NUM, APIC_FUNC_NUM);
current += acpi_create_dmar_ds_ioapic(current, enum_id, bus,