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 <rrangel@chromium.org> Change-Id: Ia391ec5a015d909462ff8aaf3cb047c6fd45fe0a Reviewed-on: https://review.coreboot.org/c/coreboot/+/50562 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Mathew King <mathewk@chromium.org>
This commit is contained in:
parent
332da01c89
commit
9bce1fe727
1 changed files with 8 additions and 0 deletions
|
@ -33,6 +33,14 @@ unsigned long acpi_fill_madt(unsigned long current)
|
||||||
(acpi_madt_irqoverride_t *)current,
|
(acpi_madt_irqoverride_t *)current,
|
||||||
MP_BUS_ISA, ACPI_SCI_IRQ, ACPI_SCI_IRQ,
|
MP_BUS_ISA, ACPI_SCI_IRQ, ACPI_SCI_IRQ,
|
||||||
MP_IRQ_TRIGGER_LEVEL | MP_IRQ_POLARITY_LOW);
|
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;
|
return current;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue