From 9bce1fe7276d2f600f7af2e09952011ef5366ae8 Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Thu, 11 Feb 2021 11:28:52 -0700 Subject: soc/amd/cezanne/acpi: Generate MADT LAPIC NMI settings With this change NMI works in the kernel: ---------------- | NMI testsuite: -------------------- remote IPI: ok | local IPI: ok | -------------------- Good, all 2 testcases passed! | --------------------------------- See setup_lapic() for where this gets configured. Signed-off-by: Raul E Rangel Change-Id: Ia391ec5a015d909462ff8aaf3cb047c6fd45fe0a Reviewed-on: https://review.coreboot.org/c/coreboot/+/50562 Tested-by: build bot (Jenkins) Reviewed-by: Mathew King --- src/soc/amd/cezanne/acpi.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/soc') diff --git a/src/soc/amd/cezanne/acpi.c b/src/soc/amd/cezanne/acpi.c index 3d9ac98e6d..45cf1bcd67 100644 --- a/src/soc/amd/cezanne/acpi.c +++ b/src/soc/amd/cezanne/acpi.c @@ -33,6 +33,14 @@ unsigned long acpi_fill_madt(unsigned long current) (acpi_madt_irqoverride_t *)current, MP_BUS_ISA, ACPI_SCI_IRQ, ACPI_SCI_IRQ, MP_IRQ_TRIGGER_LEVEL | MP_IRQ_POLARITY_LOW); + current = acpi_fill_madt_irqoverride(current); + + /* create all subtables for processors */ + current += acpi_create_madt_lapic_nmi( + (acpi_madt_lapic_nmi_t *)current, + ACPI_MADT_LAPIC_NMI_ALL_PROCESSORS, + MP_IRQ_TRIGGER_EDGE | MP_IRQ_POLARITY_HIGH, + 1 /* 1: LINT1 connect to NMI */); return current; } -- cgit v1.2.3