On Sat, 02 Dec 2006 08:53:49 +1100 Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> wrote: > In fact, the driver doesn't actually use that BAR 5... Only 0 to 4 > afaik. > > I think the libata code shouldn't request the BARs it doesn't need or > that problem will hit us in other circumstances. It should only request > 0 to 4 and let the drivers request 5 themselves if they need it. I don't think that is the problem. pci_request_regions() handles all this internally. It is incorrect for me to not request BAR 5 if present as nobody else should use that resource with my driver loaded. The underlying problem appears to be that PPC64 isn't setting up the resources properly (at least as viewed by the pci core code). If a resource is not set up then pci_request_resource() correctly handles it .. except on PPC64. You have a resource at zero with a length and type. PPC64 is not reporting to the upper layers that the resource was not allocated. It is reporting that the resource *was* allocated, and at a bogus address of zero. If you trust the firmware that is fine, but you need to report the truth, at which point pci_request_resources() will work correctly. Alan - To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html