]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r304459,r305527:
authormmel <mmel@FreeBSD.org>
Sat, 5 Nov 2016 10:23:02 +0000 (10:23 +0000)
committermmel <mmel@FreeBSD.org>
Sat, 5 Nov 2016 10:23:02 +0000 (10:23 +0000)
commitd1f0ae412e88d33d772dc85e773b70abc6655138
treeb7719411d4e219e9a77ced65f4142e548c1d7dfa
parent8ea6fbf0386cb1189783921c01ace283164b1b93
MFC r304459,r305527:

  r304459:
    INTRNG: Rework handling with resources. Partially revert r301453.
     - Read interrupt properties at bus enumeration time and store
       it into global mapping table.
     - At bus_activate_resource() time, given mapping entry is resolved and
       connected to real interrupt source. A copy of mapping entry is attached
       to given resource.
     - At bus_setup_intr() time, mapping entry stored in resource is used
       for delivery of requested interrupt configuration.
     - For MSI/MSIX interrupts, mapping entry is created within
       pci_alloc_msi()/pci_alloc_msix() call.
     - For legacy PCI interrupts, mapping entry must be created within
       pcib_route_interrupt() by pcib driver itself.
  r305527:
    Fix MIPS INTRNG (both FDT and non-FDT) behaviour broken by r304459
24 files changed:
sys/arm/arm/nexus.c
sys/arm/nvidia/tegra_lic.c
sys/arm/ti/omap4/omap4_wugen.c
sys/arm64/arm64/nexus.c
sys/dev/fdt/simplebus.c
sys/dev/gpio/gpiobus.c
sys/dev/gpio/gpiobusvar.h
sys/dev/gpio/ofw_gpiobus.c
sys/dev/iicbus/ofw_iicbus.c
sys/dev/ofw/ofw_bus_subr.c
sys/dev/ofw/ofw_bus_subr.h
sys/dev/ofw/ofwbus.c
sys/dev/pci/pci_host_generic.c
sys/dev/vnic/mrml_bridge.c
sys/dev/vnic/thunder_mdio_fdt.c
sys/kern/bus_if.m
sys/kern/pic_if.m
sys/kern/subr_bus.c
sys/kern/subr_intr.c
sys/mips/include/intr.h
sys/mips/mips/mips_pic.c
sys/mips/mips/nexus.c
sys/sys/bus.h
sys/sys/intr.h