]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: Stop over-estimating bridge window size
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 19 Dec 2025 17:40:16 +0000 (19:40 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 27 Jan 2026 22:36:51 +0000 (16:36 -0600)
commit3958bf16e2fe1b1c95467e58694102122c951a31
tree6d7a89c583f4d8f2e43c6ba279b8c2d5d6872ce8
parentbc75c8e5071120e919beb39e69f0979cccfdf219
PCI: Stop over-estimating bridge window size

New way to calculate the bridge window head alignment produces tight-fit,
that is, it does not leave any gaps between the resources.  Similarly,
relaxed tail alignment does not leave extra tail room.

Start to use bridge window calculation that does not over-estimate the size
of the required window.

pbus_upstream_space_available() can be removed.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Malte Schröder <malte+lkml@tnxip.de>
Link: https://patch.msgid.link/20251219174036.16738-4-ilpo.jarvinen@linux.intel.com
drivers/pci/setup-bus.c