]> 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)
commit1d2d179d14f13b60e0766a8329f1751c7fb76011
tree3fa7f0f9e2f446bbbcc654303ef1de6e10257e62
parentd2f359c0ec44dce2b761ceda5ff02d1b33f21adc
Revert "PCI: Distribute available resources for root buses, too"

This reverts commit 6310d5d68e2bd44ac3b4767502749e0105937710.

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