Add missing ACPI GICv2 MSI/MSI-X attachment

This lets PCIe MSI-X device interrupts work on the MACCHIATObin
(Marvell Armada 8k), which allows e.g. the Intel igb NIC to fully work.

Submitted by:	Greg V <greg@unrelenting.technology>
Reviewed by:	mw, bcran
Differential Revision:	https://reviews.freebsd.org/D20775
This commit is contained in:
Rebecca Cran 2019-06-28 01:17:33 +00:00
parent e16ea34016
commit b879578268

View File

@ -331,9 +331,21 @@ arm_gicv2m_acpi_probe(device_t dev)
return (BUS_PROBE_DEFAULT);
}
static int
arm_gicv2m_acpi_attach(device_t dev)
{
struct arm_gicv2m_softc *sc;
sc = device_get_softc(dev);
sc->sc_xref = ACPI_MSI_XREF;
return (arm_gicv2m_attach(dev));
}
static device_method_t arm_gicv2m_acpi_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, arm_gicv2m_acpi_probe),
DEVMETHOD(device_attach, arm_gicv2m_acpi_attach),
/* End */
DEVMETHOD_END