]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
PCI: Only treat non-pref mmio64 as pref if host bridge has mmio64
authorYinghai Lu <yinghai@kernel.org>
Thu, 8 Oct 2015 21:38:33 +0000 (14:38 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 19 Oct 2015 20:41:14 +0000 (13:41 -0700)
If host bridge does not have mmio64 above 4G, We don't need to
treat device non-pref mmio64 as as pref mmio64.

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

Signed-off-by: Khalid Aziz <khalid.aziz@oracle.com>
(cherry picked from commit 7d9d19e4847c249d5eecd6f6e1316e86e597db24)

drivers/pci/setup-bus.c

index b1e4595ba9348b338ba892bdfd854a50d85683e1..95d18ef267e1063773bcb703d7e5680632396f0c 100644 (file)
@@ -742,7 +742,7 @@ int pci_claim_bridge_resource(struct pci_dev *bridge, int i)
 static bool pci_up_path_over_pref_mem64(struct pci_bus *bus)
 {
        if (pci_is_root_bus(bus))
-               return true;
+               return to_pci_host_bridge(bus->bridge)->has_mem64;
 
        if (bus->self) {
                int i;