]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Distribute available resources for root buses, too
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 5 Sep 2022 08:02:30 +0000 (11:02 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 21 Sep 2022 19:47:07 +0000 (14:47 -0500)
commitd71c0354f3d8edd991c1cfb3245153deebd1afcd
tree6ed1b4d9528356e4511206cba56b4eb9cf8e8765
parentdeb8c6e5890060d67378a2cd0f2d660498921c9f
PCI: Distribute available resources for root buses, too

Previously we distributed spare resources only upon hot-add, so if the
initial root bus scan found devices that had not been fully configured by
the BIOS, we allocated only enough resources to cover what was then
present. If some of those devices were hotplug bridges, we did not leave
any additional resource space for future expansion.

Distribute the available resources for root buses, too, to make this work
the same way as the normal hotplug case.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=216000
Link: https://lore.kernel.org/r/20220905080232.36087-5-mika.westerberg@linux.intel.com
Reported-by: Chris Chiu <chris.chiu@canonical.com>
Tested-by: Chris Chiu <chris.chiu@canonical.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pci/setup-bus.c