PCI, ACPI, x86: pci root bus hotplug support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest40 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/40 | PCI: fix default vga ref_countdrivers/ | +9 | 3 replies | |
| 2/40 | PCI, x86: clear initial value for root info resourcesarch/ | +1 | 0 replies | |
| 3/40 | PCI, ia64: clear initial value for root info resourcesarch/ | +1 | 0 replies | |
| 4/40 | PCI, acpiphp: Add is_hotplug_bridge detectiondrivers/ | +26 | 0 replies | |
| 5/40 | PCI: Add root bus children dev's res to fail listdrivers/ | +1 | 0 replies | |
| 6/40 | PCI: Split out stop_bus_device and remove_bus_dev again.drivers/ | +35 | 0 replies | |
| 7/40 | x86, PCI: Separate pcibios_allocate_bridge_resources()arch/ | +24 | 0 replies | |
| 8/40 | x86, PCI: Separate pcibios_allocate_dev_resources()arch/ | +23 | 0 replies | |
| 9/40 | x86, PCI: Let pcibios_allocate_bus_resources() take bus insteadarch/ | +25 | 0 replies | |
| 10/40 | x86, PCI: Separate rom resource claim outarch/ | +35 | 0 replies | |
| 11/40 | PCI, x86: Add pcibios_fw_addr_donearch/ | +9 | 0 replies | |
| 12/40 | PCI, x86: Remove __init for hw/fw allocated functionsarch/ | +6 | 0 replies | |
| 13/40 | PCI: Claim hw/fw allocated resources in hot add path.arch/ drivers/ include/ | +16 | 0 replies | |
| 14/40 | PCI: Separate out pci_assign_unassigned_bus_resources()drivers/ include/ | +19 | 0 replies | |
| 15/40 | PCI: Move back pci_rescan_bus() to probe.cdrivers/ drivers/ | +21 | 0 replies | |
| 16/40 | PCI: pci_bus_size_bridges() should not size own bridgedrivers/ drivers/ include/ | +18 | 0 replies | |
| 17/40 | PCI: Use __pci_bus_size_bridges() directly in pci_assign_unassigned_bus_resources()drivers/ | +1 | 0 replies | |
| 18/40 | PCI: Rescan bus using callback method toodrivers/ | +19 | 0 replies | |
| 19/40 | PCI, sysfs: Clean up rescan/remove with schedule_callbackdrivers/ | +14 | 0 replies | |
| 20/40 | PCI: Fix a device reference count leakage issue in pci_dev_present()drivers/ | +5 | 0 replies | |
| 21/40 | PCI: Add pci_stop_and_remove_root_bus()drivers/ drivers/ include/ | +40 | 0 replies | |
| 22/40 | PCI, acpiphp: Separate out hot-add support of pci host bridgedrivers/ drivers/ drivers/ | +254 | 1 reply | |
| 23/40 | PCI, ACPI: Pass device instead of handle when config root bridgedrivers/ | +3 | 0 replies | |
| 24/40 | PCI, acpi: Update acpi_pci_driver add/remove interfacedrivers/ drivers/ drivers/ +1 more | +18 | 0 replies | |
| 25/40 | PCI, ACPI: Make acpi_pci_root_remove remove pci root bus toodrivers/ | +16 | 0 replies | |
| 26/40 | PCI, ACPI: del root bus prtdrivers/ | +6 | 0 replies | |
| 27/40 | ACPI: acpi_bus_trim to support two steps.drivers/ | +1 | 0 replies | |
| 28/40 | PCI, ACPI: Add pci_root_hp hot removal notification support.drivers/ | +67 | 0 replies | |
| 29/40 | PCI, ACPI: Add alloc_acpi_hp_work()drivers/ include/ | +30 | 0 replies | |
| 30/40 | PCI, acpiphp: Use acpi_hp_workdrivers/ | +6 | 0 replies | |
| 31/40 | PCI, pci_root_hp: Use acpi_hp_workdrivers/ | +3 | 0 replies | |
| 32/40 | PCI, ACPI: Make kacpi_hotplug_wq staticdrivers/ include/ | +1 | 0 replies | |
| 33/40 | ACPI, PCI: Use normal list for struct acpi_pci_driverdrivers/ include/ | +4 | 0 replies | |
| 34/40 | ACPI, PCI: Notify acpi_pci_drivers when hot-plugging PCI root bridgesdrivers/ | +11 | 0 replies | |
| 35/40 | ACPI, PCI: Protect global lists in drivers/acpi/pci_root.cdrivers/ | +40 | 0 replies | |
| 36/40 | PCI: Set dev_node early for pci_devdrivers/ | +1 | 0 replies | |
| 37/40 | PCI, x86: Move pci_enable_bridges() downdrivers/ drivers/ drivers/ | +4 | 0 replies | |
| 38/40 | ACPI, PCI: Skip extra pci_enable_bridges for non hot-add rootdrivers/ drivers/ include/ | +4 | 0 replies | |
| 39/40 | PCI, acpiphp: Don't ailout even no slots found yet.drivers/ drivers/ drivers/ | +2 | 0 replies | |
| 40/40 | ACPI: Enable SCI_EMULATE to manually simulate physical hotplug testing.drivers/ drivers/ drivers/ | +156 | 0 replies |
Reviews trailers per patch
1 of 40 patches has a Reviewed-by or Acked-by.
| Patch | Jason Baron |
|---|---|
| 1/40 | |
| 2/40 | |
| 3/40 | |
| 4/40 | Reported-and-tested-by A-b |
| 5/40 | |
| 6/40 | |
| 7/40 | |
| 8/40 | |
| 9/40 | |
| 10/40 | |
| 11/40 | |
| 12/40 | |
| 13/40 | |
| 14/40 | |
| 15/40 | |
| 16/40 | |
| 17/40 | |
| 18/40 | |
| 19/40 | |
| 20/40 | |
| 21/40 | |
| 22/40 | |
| 23/40 | |
| 24/40 | |
| 25/40 | |
| 26/40 | |
| 27/40 | |
| 28/40 | |
| 29/40 | |
| 30/40 | |
| 31/40 | |
| 32/40 | |
| 33/40 | |
| 34/40 | |
| 35/40 | |
| 36/40 | |
| 37/40 | |
| 38/40 | |
| 39/40 | |
| 40/40 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/40] PCI, ACPI, x86: pci root bus hotplug support
It supports pci root bus removal with
echo "PCI0 3" > /sys/kernel/debug/acpi/sci_notify
add with
echo "PCI0 0" > /sys/kernel/debug/acpi/sci_notify
based on pci/next
We need to separate pci root bus add from acpiphp. so user could only root bus hotplug and pciehp that will make system fw simple.
Also later CONFIG_HOTPLUG will be removed, so pci root bus hotplug will be enabled by default and user still need select acpiphp and pciehp for normal pci device hotplug support.
could get from
git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git for-pci-root-bus-hotplug
-v6: do not depend on busn-alloc anymore.
part1: cleanup for pci/next
[PATCH 01/40] PCI: fix default vga ref_count
[PATCH 02/40] PCI, x86: clear initial value for root info resources [PATCH 03/40] PCI, ia64: clear initial value for root info resources [PATCH 04/40] PCI, acpiphp: Add is_hotplug_bridge detection [PATCH 05/40] PCI: Add root bus children dev's res to fail list [PATCH 06/40] PCI: Split out stop_bus_device and remove_bus_dev
part2: reserve BIOS allocated resource for hotadd root bus [PATCH 07/40] x86, PCI: Separate pcibios_allocate_bridge_resources() [PATCH 08/40] x86, PCI: Separate pcibios_allocate_dev_resources() [PATCH 09/40] x86, PCI: Let pcibios_allocate_bus_resources() take us instead [PATCH 10/40] x86, PCI: Separate rom resource claim out
[PATCH 11/40] PCI, x86: Add pcibios_fw_addr_done
[PATCH 12/40] PCI, x86: Remove __init for hw/fw allocated functions [PATCH 13/40] PCI: Claim hw/fw allocated resources in hot add path.
part3: pci_assign_unsissigned_bus_resources() for root bus add.
[PATCH 14/40] PCI: Separate out pci_assign_unassigned_bus_resources()
[PATCH 15/40] PCI: Move back pci_rescan_bus() to probe.c
[PATCH 16/40] PCI: pci_bus_size_bridges() should not size own bridge
[PATCH 17/40] PCI: Use __pci_bus_size_bridges() directly in pci_assign_unassigned_bus_resources() [PATCH 18/40] PCI: Rescan bus using callback method too
[PATCH 19/40] PCI, sysfs: Clean up rescan/remove with schedule_callback
part4: Separate root bus add from acpiphp and add removal support. [PATCH 20/40] PCI: Fix a device reference count leakage issue in [PATCH 21/40] PCI: Add pci_stop_and_remove_root_bus() [PATCH 22/40] PCI, acpiphp: Separate out hot-add support of pci host [PATCH 23/40] PCI, ACPI: Pass device instead of handle when config [PATCH 24/40] PCI, acpi: Update acpi_pci_driver add/remove interface [PATCH 25/40] PCI, ACPI: Make acpi_pci_root_remove remove pci root [PATCH 26/40] PCI, ACPI: del root bus prt
[PATCH 27/40] ACPI: acpi_bus_trim to support two steps. [PATCH 28/40] PCI, ACPI: Add pci_root_hp hot removal notification [PATCH 29/40] PCI, ACPI: Add alloc_acpi_hp_work()
[PATCH 30/40] PCI, acpiphp: Use acpi_hp_work
[PATCH 31/40] PCI, pci_root_hp: Use acpi_hp_work
[PATCH 32/40] PCI, ACPI: Make kacpi_hotplug_wq static
part5: add/remove calling for acpi_pci_drivers.
[PATCH 33/40] ACPI, PCI: Use normal list for struct acpi_pci_driver [PATCH 34/40] ACPI, PCI: Notify acpi_pci_drivers when hot-plugging [PATCH 35/40] ACPI, PCI: Protect global lists in
[PATCH 36/40] PCI: Set dev_node early for pci_dev
[PATCH 37/40] PCI, x86: Move pci_enable_bridges() down [PATCH 38/40] ACPI, PCI: Skip extra pci_enable_bridges for non [PATCH 39/40] PCI, acpiphp: Don't ailout even no slots found yet.
part6: acpi add/remove simulation
[PATCH 40/40] ACPI: Enable SCI_EMULATE to manually simulate physical
arch/ia64/pci/pci.c | 3 +- arch/x86/pci/acpi.c | 3 +- arch/x86/pci/i386.c | 185 ++++++++++++++++-------- drivers/acpi/Kconfig | 10 ++ drivers/acpi/Makefile | 2 + drivers/acpi/osl.c | 24 +++- drivers/acpi/pci_root.c | 123 ++++++++++------ drivers/acpi/pci_root_hp.c | 278 ++++++++++++++++++++++++++++++++++++ drivers/acpi/pci_slot.c | 12 +- drivers/acpi/scan.c | 5 +- drivers/acpi/sci_emu.c | 145 +++++++++++++++++++ drivers/gpu/vga/vgaarb.c | 14 ++- drivers/pci/bus.c | 2 + drivers/pci/hotplug/acpiphp.h | 1 - drivers/pci/hotplug/acpiphp_core.c | 23 +--- drivers/pci/hotplug/acpiphp_glue.c | 165 +++++++-------------- drivers/pci/pci-sysfs.c | 41 ++++-- drivers/pci/probe.c | 26 ++++- drivers/pci/remove.c | 87 +++++++++-- drivers/pci/search.c | 10 +- drivers/pci/setup-bus.c | 54 +++----- include/acpi/acpi_bus.h | 1 + include/acpi/acpiosxf.h | 9 +- include/linux/acpi.h | 6 +- include/linux/pci.h | 5 + 25 files changed, 899 insertions(+), 335 deletions(-) create mode 100644 drivers/acpi/pci_root_hp.c create mode 100644 drivers/acpi/sci_emu.c
Signature · 1 line
1.7.7