Skip to content

PCI, ACPI, x86: Reserve fw allocated resource for hot-add root bus

Yinghai Lu linux-acpi linux-pci lkml 1 version Applied

Status from this message: I applied these to my pci/yinghai-survey-resources branch. I

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 17 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8PCI: Separate out pci_assign_unassigned_bus_resources()drivers/pci/setup-bus.c include/linux/pci.h+19 -140 replies
1/8PCI, x86: Separate out pcibios_allocate_bridge_resources()arch/x86/pci/i386.c+24 -220 replies
2/8PCI: Move pci_rescan_bus() back to probe.cdrivers/pci/probe.c drivers/pci/setup-bus.c+21 -220 replies
2/8PCI, x86: Separate out pcibios_allocate_dev_resources()arch/x86/pci/i386.c+23 -190 replies
3/8PCI: Move out pci_enable_bridges out of assign_unsigned_bus_resdrivers/pci/probe.c drivers/pci/setup-bus.c+1 -22 replies
3/8PCI, x86: Let pcibios_allocate_bus_resources() take bus insteadarch/x86/pci/i386.c+25 -130 replies
4/8PCI, ACPI: assign unassigned resource for hot add root busdrivers/acpi/pci_root.c+7 -00 replies
4/8PCI, x86: Separate out rom resource claimarch/x86/pci/i386.c+35 -170 replies
5/8PCI: Add pci_stop/remove_root_bus()drivers/pci/remove.c include/linux/pci.h+38 -00 replies
5/8PCI, x86: Add pcibios_fw_addr_donearch/x86/pci/i386.c+9 -10 replies
6/8PCI, ACPI: Make acpi_pci_root_remove stop/remove pci root busdrivers/acpi/pci_root.c+6 -00 replies
6/8PCI, x86: Remove __init for hw/fw allocated functionsarch/x86/pci/i386.c+6 -60 replies
7/8PCI, ACPI: delete root bus prt during hot remove pathdrivers/acpi/pci_root.c+6 -00 replies
7/8PCI, x86: Claim FW allocated resources in hot add path.arch/x86/pci/i386.c drivers/pci/bus.c include/linux/pci.h+16 -00 replies
8/8PCI, ACPI: remove acpi_root_driver in reserse orderdrivers/acpi/pci_root.c+1 -10 replies
8/8PCI, ACPI: reserve fw allocated resource for hot added root busdrivers/acpi/pci_root.c+3 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] PCI, ACPI, x86: Reserve fw allocated resource for hot-add root bus

For root bus hot add, fw could assign some resource for the devices for that root bus before notifying os via acpi, we should check and use those resources at first just like we do for booting path.

At first, we need to refactor x86 pci pcibios_allocate related functions for booting path to take bus as parameter.

After that, we could use the survey function for hot add root bus.

based on pci/yinghai-for-pci-root-bus-hotplug

could get from
git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git for-pci-survey-resources

Yinghai Lu (8):
PCI, x86: Separate out pcibios_allocate_bridge_resources() PCI, x86: Separate out pcibios_allocate_dev_resources() PCI, x86: Let pcibios_allocate_bus_resources() take bus instead PCI, x86: Separate out rom resource claim
PCI, x86: Add pcibios_fw_addr_done
PCI, x86: Remove __init for hw/fw allocated functions PCI, x86: Claim FW allocated resources in hot add path. PCI, ACPI: reserve fw allocated resource for hot added root bus

 arch/x86/pci/i386.c     |  185 +++++++++++++++++++++++++++++++----------------
 drivers/acpi/pci_root.c |    4 +-
 drivers/pci/bus.c       |    2 +
 include/linux/pci.h     |    1 +
 4 files changed, 127 insertions(+), 65 deletions(-)
Signature · 1 line
1.7.7