]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "PCI: Distribute available resources for root buses, too"
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 14 Oct 2022 18:45:45 +0000 (13:45 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 14 Oct 2022 19:27:58 +0000 (14:27 -0500)
commita2050f1891619b75087127fb091065e46b33bb27
tree3fa7f0f9e2f446bbbcc654303ef1de6e10257e62
parent1e6f6368fd78312e4ae0a643fb067203e7ec1a32
Revert "PCI: Distribute available resources for root buses, too"

This reverts commit d71c0354f3d8edd991c1cfb3245153deebd1afcd.

Jonathan reported that this commit broke this topology, where all the space
available on bus 02 was assigned to the 02:00.0 bridge window, leaving none
for the e1000 device at 02:00.1:

  pci 0000:00:04.0: bridge window [mem 0x10200000-0x103fffff] to [bus 02-04]
  pci 0000:02:00.0: bridge window [mem 0x10200000-0x103fffff] to [bus 03-04]
  pci 0000:02:00.1: BAR 0: failed to assign [mem size 0x00020000]
  e1000 0000:02:00.1: can't ioremap BAR 0: [??? 0x00000000 flags 0x0]

Link: https://lore.kernel.org/r/20221014124553.0000696f@huawei.com
Reported-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/setup-bus.c