PCI: Allow for future resource expansion on initial root bus scan
Status from this message: Applied to pci/resource for v6.1, thanks, Mika!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 14 repliesApplied
- v16 patches 5 repliesSuperseded
Changes from the previous version from the cover letter
* Split patch 3 into two: move and then the actual fix as suggested by Andy.
* Fold the two whitespace fixes into one patch.
* Added tags from Chris and Andy.
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | PCI: Fix used_buses calculation in pci_scan_child_bus_extend()drivers/ | +2 | 0 replies | |
| 2/6 | PCI: Pass available buses also when the bridge is already configureddrivers/ | +3 | 0 replies | |
| 3/6 | PCI: Move pci_assign_unassigned_root_bus_resources()drivers/ | +113 | 0 replies | |
| 4/6 | PCI: Distribute available resources for root buses toodrivers/ | +61 | 13 replies | |
| 5/6 | PCI: Fix whitespace and indentationdrivers/ drivers/ | +1 | 0 replies | |
| 6/6 | PCI: Fix typo in pci_scan_child_bus_extend()drivers/ | +1 | 0 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Chris Chiu | Andy Shevchenko |
|---|---|---|
| 1/6 | T-b | R-b |
| 2/6 | T-b | R-b |
| 3/6 | R-b | |
| 4/6 | T-b | R-b |
| 5/6 | R-b | |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/6] PCI: Allow for future resource expansion on initial root bus scan
Hi,
The series works around an issue found on some Dell systems where booting with Thunderbolt/USB4 devices connected the BIOS leaves some of the PCIe devices unconfigured. If the connected devices that are not configured have PCIe hotplug ports as well the initial root bus scan only reserves the minimum amount of resources to them making any expansion happening later impossible.
We do already distribute the "spare" resources between hotplug ports on hot-add but we have not done that upon the initial scan. The first four patches make the initial root bus scan path to do the same.
The additional patches are just a small cleanups that can be applied separately too.
The related bug: https://bugzilla.kernel.org/show_bug.cgi?id=216000.
The previous version of the patch series can be found here:
https://lore.kernel.org/linux-pci/[email protected]/
Changes from the previous version:
* Split patch 3 into two: move and then the actual fix as suggested by Andy.
* Fold the two whitespace fixes into one patch.
* Added tags from Chris and Andy.
Mika Westerberg (6):
PCI: Fix used_buses calculation in pci_scan_child_bus_extend()
PCI: Pass available buses also when the bridge is already configured
PCI: Move pci_assign_unassigned_root_bus_resources()
PCI: Distribute available resources for root buses too
PCI: Fix whitespace and indentation
PCI: Fix typo in pci_scan_child_bus_extend()
drivers/pci/probe.c | 13 +- drivers/pci/setup-bus.c | 290 ++++++++++++++++++++++++---------------- 2 files changed, 181 insertions(+), 122 deletions(-)
Signature · 1 line
2.35.1