linux_dsm_epyc7002/drivers/pci
Amos Kong ce29ca3ea4 PCI: acpiphp: remove all functions in slot, even without ACPI _EJx
When we add a device with acpiphp, we enumerate all functions in the
slot with pci_scan_slot(), regardless of whether they have associated
ACPI methods such as _EJ0.

When removing the device, we previously removed only the functions
with those ACPI methods.  This patch makes the remove symmetric with the
add: we remove all functions in the slot, whether they have associated
ACPI methods or not.

With qemu-kvm and SeaBIOS, we can build a multi-function device where
only function 0 has _EJ0 and _ADR (see bugzilla below).  Removing and
re-adding that slot (including all functions of the device) works correctly
with Windows guests.  This patch makes it also work in Linux guests.

[bhelgaas: restructure loop iteration, pull out of slot->funcs loop]
Reference: https://bugzilla.kernel.org/show_bug.cgi?id=43219
Signed-off-by: Amos Kong <kongjianjun@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2012-06-13 16:38:10 -06:00
..
hotplug PCI: acpiphp: remove all functions in slot, even without ACPI _EJx 2012-06-13 16:38:10 -06:00
pcie PCI: fix uninitialized variable 'cap_mask' 2012-05-07 09:27:26 -06:00
.gitignore
access.c
ats.c
bus.c
host-bridge.c
hotplug-pci.c PCI: hotplug: remove pci_do_scan_bus() 2012-06-13 15:42:27 -06:00
hotplug.c
htirq.c
ioapic.c
iov.c PCI: register busn_res for iov bus 2012-06-13 15:42:25 -06:00
irq.c
Kconfig
Makefile PCI changes for the 3.5 merge window: 2012-05-21 16:24:54 -07:00
msi.c
msi.h
of.c
pci-acpi.c ACPI / PCI / PM: Fix device PM regression related to D3hot/D3cold 2012-05-17 16:16:16 -07:00
pci-driver.c PCI: disable Bus Master on PCI device shutdown 2012-05-04 11:07:18 -06:00
pci-label.c
pci-stub.c
pci-sysfs.c
pci.c PCI: replace struct pci_bus secondary/subordinate with busn_res 2012-06-13 15:42:22 -06:00
pci.h PCI: hotplug: remove pci_do_scan_bus() 2012-06-13 15:42:27 -06:00
probe.c PCI: insert busn_res for child bus 2012-06-13 15:42:25 -06:00
proc.c
quirks.c PCI changes for the 3.5 merge window: 2012-05-21 16:24:54 -07:00
remove.c PCI: release busn_res when removing bus 2012-06-13 15:42:22 -06:00
rom.c
search.c PCI: acpiphp: remove all functions in slot, even without ACPI _EJx 2012-06-13 16:38:10 -06:00
setup-bus.c PCI: replace struct pci_bus secondary/subordinate with busn_res 2012-06-13 15:42:22 -06:00
setup-irq.c
setup-res.c
slot.c
syscall.c
vpd.c
xen-pcifront.c