[patch 4/4] RFC: PCI: consolidate several pcibios_enable_resources() implementations

Benjamin Herrenschmidt benh at kernel.crashing.org
Wed Feb 20 07:21:43 EST 2008


> > That is, whatever the arch code decides to use to decide whether
> > resources are assigned by firmware or by the first pass assignment code
> > or not and collide or not, once that phase is finished (which is the
> > case when calling pcibios_enable_device(), having the resource in the
> > resource-tree or not is, I believe, the proper way to test whether it's
> > a useable resource.
> 
> So should x86 adopt that collision check?  I don't hear anything about
> actual architecture differences that are behind this implementation
> difference.

Well, on powerpc we do allow under some circumstances a 0 start value
in BARs, which is why I wanted to use a different check.

Ben.





More information about the Linuxppc-dev mailing list