Skip to content

PCI : bridge resource reallocation patchset

Yinghai Lu linux-pci lkml 1 version Applied

Status from this message: Applied, but I fixed up the comment; please check for accuracy.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 patches 12 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/21PCI : Calculate right add_sizedrivers/pci/setup-bus.c drivers/pci/setup-res.c+5 -41 reply
2/21PCI: Make add_to_list() return statusdrivers/pci/setup-bus.c+4 -20 replies
3/21PCI: Move get_res_add_size() earlydrivers/pci/setup-bus.c+15 -140 replies
4/21PCI: Try to assign required+option size at firstdrivers/pci/setup-bus.c+82 -10 replies
5/21PCI: Using add_list in pcie hotplug path.drivers/pci/setup-bus.c+12 -60 replies
6/21PCI: Make rescan bus could increase bridge resource size if neededdrivers/pci/pci-sysfs.c drivers/pci/probe.c include/linux/pci.h+29 -11 reply
7/21PCI: Make pci_rescan_bus handle add_listdrivers/pci/probe.c drivers/pci/setup-bus.c+39 -320 replies
8/21PCI: Fixing multiple retrying with pci resource optional resources allocation under multi bridgesdrivers/pci/setup-bus.c+28 -180 replies
9/21PCI: Move pdev_sort_resources() to setup-bus.cdrivers/pci/setup-bus.c drivers/pci/setup-res.c include/linux/pci.h+46 -480 replies
10/21PCI: Move struct resource_list to setup-bus.cdrivers/pci/setup-bus.c include/linux/ioport.h+6 -60 replies
11/21PCI: Replace resource_list with generic listdrivers/pci/setup-bus.c+181 -1910 replies
12/21PCI: Merge pci_dev_resource_x and pci_dev_resourcedrivers/pci/setup-bus.c+15 -210 replies
13/21PCI: Rename dev_res_x to add_res or fail_resdrivers/pci/setup-bus.c+55 -550 replies
14/21PCI: Change free_list() to functiondrivers/pci/setup-bus.c+19 -170 replies
15/21PCI: add debug print out for add_sizedrivers/pci/setup-bus.c+18 -60 replies
16/21PCI: remove add_to_failed_list()drivers/pci/setup-bus.c+4 -101 reply
17/21PCI: Disable cardbus bridge MEM1 pref CTLdrivers/pci/setup-bus.c+8 -02 replies
18/21PCI: Fix cardbus bridge resources as optional size handlingdrivers/pci/setup-bus.c+36 -276 replies
19/21PCI: Retry on type IORESOURCE_IO allocation.drivers/pci/setup-bus.c+1 -110 replies
20/21PCI: Make pci bridge reallocating enabled/disabledDocumentation/kernel-parameters.txt drivers/pci/pci.c drivers/pci/pci.h +1 more+26 -120 replies
21/21PCI: only enable pci realloc when SRIOV bar is not assigneddrivers/pci/setup-bus.c+26 -01 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/21] PCI : bridge resource reallocation patchset

a181193: PCI: only enable pci realloc when SRIOV bar is not assigned
6662c73: PCI: Make pci bridge reallocating enabled/disabled
1a60212: PCI: Retry on type IORESOURCE_IO allocation.
59e4fd4: PCI: Fix cardbus bridge resources as optional size handling
daa08ff: PCI: Disable cardbus bridge MEM1 pref CTL
e11dc0e: PCI: remove add_to_failed_list()
11af29c: PCI: add debug print out for add_size
6a30c7b: PCI: Change free_list() to function
e5aa050: PCI: Rename dev_res_x to add_res or fail_res
ff503cf: PCI: Merge pci_dev_resource_x and pci_dev_resource
2874630: PCI: Replace resource_list with generic list
8eedd1e: PCI: Move struct resource_list to setup-bus.c
23a6d3e: PCI: Move pdev_sort_resources() to setup-bus.c
93acbd6: PCI: Fixing multiple retrying with pci resource optional resources allocation under multi bridges 7f5dac3: PCI: Make pci_rescan_bus handle add_list
18dd9be: PCI: Make rescan bus could increase bridge resource size if needed
52e0afc: PCI: Using add_list in pcie hotplug path.
2b6542d: PCI: Try to assign required+option size at first
4beb962: PCI: Move get_res_add_size() early
8cb9020: PCI: Make add_to_list() return status
8535f21: PCI : Calculate right add_size

those patches will fix optional resource size pass over parent bus problem.

and try allocate request + optional resource at first, and then if failed will fall back to get requested at first then try to expand to optional one.

at last will try auto detect if we need to realloc bridge resource.

Also replace local resource_list and resource_list_x with generic list.

or get from

git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git for-pci2

Thanks

Yinghai

 Documentation/kernel-parameters.txt |    7 +-
 drivers/pci/pci-sysfs.c             |    5 +-
 drivers/pci/pci.c                   |    4 +-
 drivers/pci/pci.h                   |    2 +-
 drivers/pci/probe.c                 |   22 +-
 drivers/pci/setup-bus.c             |  629 ++++++++++++++++++++++++-----------
 drivers/pci/setup-res.c             |   52 +---
 include/linux/ioport.h              |    6 -
 include/linux/pci.h                 |    2 +-
 9 files changed, 451 insertions(+), 278 deletions(-)