]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Only treat non-pref mmio64 as pref if all bridges have MEM_64
authorYinghai Lu <yinghai@kernel.org>
Thu, 8 Oct 2015 21:38:31 +0000 (14:38 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 19 Oct 2015 20:41:12 +0000 (13:41 -0700)
commit18d135012bbc70a30df2a664c4470ce94430c9ea
treecc6e87e379e0328aa9c2d9255c9408b8d61311aa
parent40990901003330e03db71f9f7b8966a6b5c6e5ba
PCI: Only treat non-pref mmio64 as pref if all bridges have MEM_64

If any bridge up to root only have 32bit pref mmio, We don't need to
treat device non-pref mmio64 as as pref mmio64.

We need to move pci_bridge_check_ranges calling early.
for parent bridges pref mmio BAR may not allocated by BIOS, res flags
is still 0, we need to have it correct set before we check them for
child device resources.

-v2: check all bus resources instead of just res[15].

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Orabug: 21826746

Signed-off-by: Khalid Aziz <khalid.aziz@oracle.com>
(cherry picked from commit 3aa4594c75c6d3a9e72d54320705859f87ff8f7f)
drivers/pci/setup-bus.c