[PATCH 0/2] Improvement on ioapic hotplug

From: Rui Wang
Date: Mon Feb 27 2017 - 09:33:10 EST


The revert of 991de2e59090 ("PCI, x86: Implement pcibios_alloc_irq()
and pcibios_free_irq()") causes a problem for IOAPIC hotplug. If
a device under the IOAPIC doesn't call pci_disable_device(), then
the hot-removal of the IOAPIC causes kernel stack dump.

This patchset can fix the problem. IOAPIC hot-removal works correctly
after applying this patchset.

Rui Wang (2):
x86/PCI: Implement pci_release_device to release IRQ from IOAPIC
x86/ioapic: Split IOAPIC hot-removal into two steps

arch/x86/pci/common.c | 9 +++++++++
drivers/acpi/internal.h | 1 +
drivers/acpi/ioapic.c | 22 ++++++++++++++++------
drivers/acpi/pci_root.c | 4 ++--
4 files changed, 28 insertions(+), 8 deletions(-)

--
1.8.3.1