PCI: Bridge window head alignment fix/rework
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | PCI: Fix bridge window alignment with optional resourcesdrivers/ | +6 | 0 replies | |
| 2/4 | PCI: Rewrite bridge window head alignment functiondrivers/ | +44 | 0 replies | |
| 3/4 | PCI: Stop over-estimating bridge window sizedrivers/ | +5 | 0 replies | |
| 4/4 | resource: Increase MAX_IORES_LEVEL to 8kernel/ | +1 | 0 replies |
Reviews trailers per patch
None of the 4 patches has a Reviewed-by or Acked-by.
| Patch | Malte Schröder |
|---|---|
| 1/4 | T-b |
| 2/4 | T-b |
| 3/4 | T-b |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] PCI: Bridge window head alignment fix/rework
First fix one alignment difference bug when handling realloc_head.
Rework bridge window head alignment calculation as the decades old approach seems to leave gaps in between resources (please don't ask me how the old approach works, I don't understand the logic behind it). The old bridge window alignment approach was mostly okay with the gaps because of gross over-estimation it applies to the tail alignment (though I'm not entirely convinced there couldn't be corner cases where things break due to those gaps).
With relaxed tail alignment, no tail alignment overestimation occurs so gaps in between resources translate immediately to resource assignment failures.
Apply the new head alignment first only to cases with the relaxed tail alignment. Then, in a follow-up change, make the new alignment approach the only one as it has higher regression risk and them being in different commits allow bisect to differentiate which change is the culprit in case of a problem.
I was first thinking of changing head alignment only for the relaxed tail alignment cases. After extensive testing (admittedly, x86 centric) indicated there are hardly any changes to the bridge window sizes at all, I thought it might work out to just replace the old approach that has clearly shown to be subject to resource gap problems with the new one.
Ilpo Järvinen (4):
PCI: Fix bridge window alignment with optional resources
PCI: Rewrite bridge window head alignment function
PCI: Stop over-estimating bridge window size
resource: Increase MAX_IORES_LEVEL to 8
drivers/pci/setup-bus.c | 130 +++++++++++++--------------------------- kernel/resource.c | 2 +- 2 files changed, 41 insertions(+), 91 deletions(-)
base-commit: 3a8660878839faadb4f1a6dd72c3179c1df56787
Signature · 1 line
2.39.5