Skip to content

PCI: allocate pci bus num range for unassigned bridge busn

Yinghai Lu linux-arch linux-ia64 linux-parisc linux-pci linuxppc-dev lkml sparclinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18x86, PCI: Merge pcibios_scan_root and pci_scan_bus_on_nodearch/x86/pci/common.c+4 -230 replies
2/18PCI: Add busn_res into struct pci_bus.include/linux/pci.h+1 -00 replies
3/18PCI: Add busn_res operation functionsdrivers/pci/probe.c include/linux/pci.h+50 -00 replies
4/18PCI: Add busn_res tracking in coredrivers/pci/probe.c drivers/pci/remove.c+10 -20 replies
5/18PCI, x86: Register busn_res for root busesarch/x86/include/asm/topology.h arch/x86/pci/acpi.c arch/x86/pci/bus_numa.c +1 more+24 -80 replies
6/18PCI, ia64: Register busn_res for root busesarch/ia64/pci/pci.c+2 -00 replies
7/18PCI, sparc: Register busn_res for root busesarch/sparc/kernel/pci.c+1 -00 replies
8/18PCI, powerpc: Register busn_res for root busesarch/powerpc/kernel/pci-common.c+6 -17 replies
9/18PCI, parisc: Register busn_res for root busesdrivers/parisc/dino.c drivers/parisc/lba_pci.c+5 -00 replies
10/18PCI: Add pci_bus_extend/shrink_top()drivers/pci/probe.c+36 -00 replies
11/18PCI: Probe safe range that we can use for unassigned bridge.drivers/pci/probe.c+110 -00 replies
12/18PCI: Strict checking of valid range for bridgedrivers/pci/probe.c+24 -00 replies
13/18PCI: Allocate bus range instead of use max blindlydrivers/pci/probe.c+59 -410 replies
14/18PCI: kill pci_fixup_parent_subordinate_busnr()drivers/pci/probe.c+0 -320 replies
15/18PCI: Seperate child bus scanning to two passes overalldrivers/pci/probe.c+34 -160 replies
16/18pcmcia: remove workaround for fixing pci parent bus subordinatedrivers/pcmcia/yenta_socket.c+0 -750 replies
17/18PCI: Double checking setting for bus register and bus struct.drivers/pci/probe.c+40 -00 replies
18/18PCI, pciehp: Remove not needed bus number range checkingdrivers/pci/hotplug/pciehp_pci.c+1 -110 replies

Reviews trailers per patch

None of the 18 patches has a Reviewed-by or Acked-by.

PatchDominik Brodowski
1/18
2/18
3/18
4/18
5/18
6/18
7/18
8/18
9/18
10/18
11/18
12/18
13/18
14/18
15/18
16/18T-b
17/18
18/18

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH -v8 0/18] PCI: allocate pci bus num range for unassigned bridge busn

be1ba9d: PCI, pciehp: Remove not needed bus number range checking 131d47a: PCI: Double checking setting for bus register and bus struct. 5932e47: pcmcia: remove workaround for fixing pci parent bus subordinate
ea33b11: PCI: Seperate child bus scanning to two passes overall 00ca2e7: PCI: kill pci_fixup_parent_subordinate_busnr() 596d4a6: PCI: Allocate bus range instead of use max blindly 64bfcda: PCI: Strict checking of valid range for bridge
d4ed872: PCI: Probe safe range that we can use for unassigned bridge. 31e4760: PCI: Add pci_bus_extend/shrink_top()
74b8f25: PCI, parisc: Register busn_res for root buses
de71ada: PCI, powerpc: Register busn_res for root buses
e810285: PCI, sparc: Register busn_res for root buses 8912504: PCI, ia64: Register busn_res for root buses 82de8a8: PCI, x86: Register busn_res for root buses
2e8d3bf: PCI: Add busn_res tracking in core
a9a5832: PCI: Add busn_res operation functions
6122ad8: PCI: Add busn_res into struct pci_bus.
b362780: x86, PCI: Merge pcibios_scan_root and pci_scan_bus_on_node

Set up iobusn_resource tree, and register bus number range to it. Later when need to find bus range, will try to allocate from the tree

Need to test on arches other than x86. esp for ia64 and powerpc that support
more than on peer root buses.

could be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git for-pci-busn-alloc

need to apply to top of pci/for-linus plus pci/linux-next plus
[PATCH -v2] PCI: pci_host_bridge related cleanup

-v2: according to Jesse, split to more small patches.
-v3: address some request from Bjorn. like make use %pR for busn_res debug print
out, and move the comment change with code change.
-v4: fixes the problem about rescan that Bjorn found.
-v5: add /proc/iobusn that is requested by Bjorn.
remove old workaround from pciehp.
add rescan_bridge for pci bridge in /sys
-v6: remove global iobusn_resource, and every root bus's busn_res will be root
of children buses' busn_res.
pc cardbus change is tested by pcmcia maintainter.
-v7: remove pci_scan_root_bus_max requested by Bjorn and Jesse. -v8: rebase on top other patches with arch/x86/pci/bus_numa.c changes
also only include busn_res related changes.

Thanks

Yinghai

 arch/ia64/pci/pci.c              |    2 +
 arch/powerpc/kernel/pci-common.c |    7 +-
 arch/sparc/kernel/pci.c          |    1 +
 arch/x86/include/asm/topology.h  |    3 +-
 arch/x86/pci/acpi.c              |    8 +-
 arch/x86/pci/bus_numa.c          |    9 +-
 arch/x86/pci/common.c            |   37 +---
 drivers/parisc/dino.c            |    2 +
 drivers/parisc/lba_pci.c         |    3 +
 drivers/pci/hotplug/pciehp_pci.c |   12 +-
 drivers/pci/probe.c              |  430 +++++++++++++++++++++++++++++++-------
 drivers/pci/remove.c             |    1 +
 drivers/pcmcia/yenta_socket.c    |   75 -------
 include/linux/pci.h              |    4 +
 14 files changed, 396 insertions(+), 198 deletions(-)