Skip to content

PCI: allocate pci bus num range for unassigned bridge busn + pci rescan cleanup

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest22 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22PCI: Add busn_res into struct pci_bus.include/linux/pci.h+1 -00 replies
2/22PCI: Add busn_res operation functionsdrivers/pci/probe.c include/linux/pci.h+50 -00 replies
3/22PCI: Add busn_res tracking in coredrivers/pci/probe.c drivers/pci/remove.c include/linux/pci.h+31 -40 replies
4/22PCI, 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+21 -90 replies
5/22PCI, ia64: Register busn_res for root busesarch/ia64/pci/pci.c+2 -00 replies
6/22PCI, sparc: Register busn_res for root busesarch/sparc/kernel/pci.c+1 -00 replies
7/22PCI, powerpc: Register busn_res for root busesarch/powerpc/kernel/pci-common.c+6 -10 replies
8/22PCI, parisc: Register busn_res for root busesdrivers/parisc/dino.c drivers/parisc/lba_pci.c+5 -00 replies
9/22PCI: Add pci_bus_extend/shrink_top()drivers/pci/probe.c+36 -00 replies
10/22PCI: Probe safe range that we can use for unassigned bridge.drivers/pci/probe.c+110 -00 replies
11/22PCI: Strict checking of valid range for bridgedrivers/pci/probe.c+24 -00 replies
12/22PCI: Allocate bus range instead of use max blindlydrivers/pci/probe.c+59 -410 replies
13/22PCI: kill pci_fixup_parent_subordinate_busnr()drivers/pci/probe.c+0 -320 replies
14/22PCI: Seperate child bus scanning to two passes overalldrivers/pci/probe.c+34 -160 replies
15/22pcmcia: remove workaround for fixing pci parent bus subordinatedrivers/pcmcia/yenta_socket.c+0 -750 replies
16/22PCI: Double checking setting for bus register and bus struct.drivers/pci/probe.c+40 -00 replies
17/22PCI, pciehp: Remove not needed bus number range checkingdrivers/pci/hotplug/pciehp_pci.c+1 -110 replies
18/22PCI, sys: Use device_type and attr_groups with pci devdrivers/pci/pci-sysfs.c drivers/pci/pci.h drivers/pci/probe.c+32 -00 replies
19/22PCI, sysfs: create rescan_bridge under /sys/.../pci/devices/... for pci bridgesDocumentation/ABI/testing/sysfs-bus-pci drivers/pci/pci-sysfs.c+34 -00 replies
20/22PCI: Add pci_bus_add_single_device()drivers/pci/bus.c include/linux/pci.h+41 -00 replies
21/22PCI: make pci_rescan_bus_bridge_resize use pci_scan_bridge insteaddrivers/pci/probe.c+6 -40 replies
22/22PCI: clean up rescan_bus_bridge_resizedrivers/pci/pci-sysfs.c+2 -50 replies

Reviews trailers per patch

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

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

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 -v6 0/22] PCI: allocate pci bus num range for unassigned bridge busn + pci rescan cleanup

c363f32: PCI: clean up rescan_bus_bridge_resize
6aa2709: PCI: make pci_rescan_bus_bridge_resize use pci_scan_bridge instead 37cde7d: PCI: Add pci_bus_add_single_device()
2491eb4: PCI, sysfs: create rescan_bridge under /sys/.../pci/devices/... for pci bridges 2e8ccf8: PCI, sys: Use device_type and attr_groups with pci dev
523106b: PCI, pciehp: Remove not needed bus number range checking
b93a078: PCI: Double checking setting for bus register and bus struct.
d7f3672: pcmcia: remove workaround for fixing pci parent bus subordinate 7fc60fb: PCI: Seperate child bus scanning to two passes overall
c180042: PCI: kill pci_fixup_parent_subordinate_busnr()
e6832b3: PCI: Allocate bus range instead of use max blindly
f4c45ff: PCI: Strict checking of valid range for bridge
d933847: PCI: Probe safe range that we can use for unassigned bridge. 00ca3b1: PCI: Add pci_bus_extend/shrink_top()
81f70bb: PCI, parisc: Register busn_res for root buses
a1e4606: PCI, powerpc: Register busn_res for root buses
c3fbb20: PCI, sparc: Register busn_res for root buses
56f1bb0: PCI, ia64: Register busn_res for root buses
25502fb: PCI, x86: Register busn_res for root buses
311e8e2: PCI: Add busn_res tracking in core
48bf7b6: PCI: Add busn_res operation functions
1431674: PCI: Add busn_res into struct pci_bus.

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.

last five patches are rescan cleanup that make use busn alloc.

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

-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.

Thanks

Yinghai

 Documentation/ABI/testing/sysfs-bus-pci |   10 +
 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                 |    8 +-
 arch/x86/pci/common.c                   |   11 +-
 drivers/parisc/dino.c                   |    2 +
 drivers/parisc/lba_pci.c                |    3 +
 drivers/pci/bus.c                       |   40 +++
 drivers/pci/hotplug/pciehp_pci.c        |   12 +-
 drivers/pci/pci-sysfs.c                 |   59 ++++-
 drivers/pci/pci.h                       |    1 +
 drivers/pci/probe.c                     |  460 +++++++++++++++++++++++++------
 drivers/pci/remove.c                    |    1 +
 drivers/pcmcia/yenta_socket.c           |   75 -----
 include/linux/pci.h                     |    9 +
 18 files changed, 525 insertions(+), 187 deletions(-)