On Sun, Mar 8, 2020 at 8:30 AM Ivan Kokshaysky <ink@xxxxxxxxxxxxxxxxxxxx> wrote: > Wholeheartedly agree. In fact, changes to generic PCI code required > for proper root bus sizing are quite minimal now since we have > struct pci_host_bridge. It's mostly additional checks for bus->self > being NULL (as it normally is on the root bus) in the > __pci_bus_size_bridges() path, plus new bridge->size_windows flag. > See patch below (tested on UP1500). Note that on irongate we're > only interested in calculation of non-prefetchable PCI memory aperture, > but one can do the same for io and prefetchable memory as well. Thanks Ivan! The patch works for me as well.