On Sun, May 5, 2013 at 7:08 PM, Gavin Shan <shangw@xxxxxxxxxxxxxxxxxx> wrote: > On Sun, May 05, 2013 at 05:52:16PM +1000, Benjamin Herrenschmidt wrote: >>On Sun, 2013-05-05 at 00:09 -0700, Yinghai Lu wrote: >>> Yes, there is something wrong >>> >>> pci 0001:01:00.0: BAR 8: can't assign mem (size 0x800000) >>> >>> as bridge only can support 32bit mmio non-pref. >> >>Right, that looks wrong, why can't it assign it ? That's what I haven't >>figured out yet. There should be plenty of space still available. >> >>> There is one bug for arch other than x86, but it should not be related. >>> >>> in pci_bus_alloc_resource() >>> >>> | /* don't allocate too high if the pref mem doesn't support 64bit*/ >>> | if (!(res->flags & IORESOURCE_MEM_64)) >>> | max = PCIBIOS_MAX_MEM_32; >>> >>> we should call pcibios_resource_to_bus ... to make >>> sure that actual bus addr is still 32bit >> >>Or the other way around but yes, I see your point however ... >> >>> But i'm confused, Did you happen to define your own >>> PCIBIOS_MAX_MEM_32 ? >>> as default one should be -1 other than x86. >> >>Right, it is -1. Oh well, I'll sprinkle some printk's around tomorrow (or >>ask Gavin to do it :-) >> > > Ben, I'll trace it down since we can see the same problem on simulator > as well. I'll update with any findings :-) root cause could be: ioport retry cause it fail. please try to revert:to see it works. commit 0c5be0cb0edfe3b5c4b62eac68aa2aa15ec681af Author: Yinghai Lu <yinghai@xxxxxxxxxx> Date: Thu Feb 23 19:23:29 2012 -0800 PCI: Retry on IORESOURCE_IO type allocations Thanks Yinghai -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html