Message ID | 1444340359-8011-15-git-send-email-yinghai@kernel.org |
---|---|
State | Superseded |
Headers | show |
On Thu, 2015-10-08 at 14:38 -0700, Yinghai Lu wrote: > 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> Tested on sparc platforms Tested-by: Khalid Aziz <khalid.aziz@oracle.com> -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index b1e4595..95d18ef 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -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;
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> --- drivers/pci/setup-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)