Re: [PATCH 08/18] PCI, powerpc: Register busn_res for root buses

2012-04-02 Thread Benjamin Herrenschmidt
On Mon, 2012-04-02 at 05:19 -0500, Milton Miller wrote: > > In the POWER3 era we had several boxes that split the pci bus number > space across domains and RTAS used the bus number to find the correct > PHB. This contineed to the first RS64 boxes. By S80 and RS64-III > it was obvious that we di

Re: [PATCH 08/18] PCI, powerpc: Register busn_res for root buses

2012-04-02 Thread Milton Miller
[Apollogies if I left anyone off cc. I am not subscribed and the archives go to great pains to hide the to and cc lists, and then truncate it for size] {fix a comma in cc} On Tue Feb 28 2012 about 18:42:03 EST, Benjamin Herrenschmidt wrote: > On Tue, 2012-02-28 at 16:31 -0700, Bjorn Helgaas wrot

Re: [PATCH 08/18] PCI, powerpc: Register busn_res for root buses

2012-04-02 Thread Milton Miller
[Apollogies if I left anyone off cc. I am not subscribed and the archives go to great pains to hide the to and cc lists, and then truncate it for size] On Tue Feb 28 2012 about 18:42:03 EST, Benjamin Herrenschmidt wrote: > On Tue, 2012-02-28 at 16:31 -0700, Bjorn Helgaas wrote: > > We may need m

Re: [PATCH 08/18] PCI, powerpc: Register busn_res for root buses

2012-02-28 Thread Benjamin Herrenschmidt
On Tue, 2012-02-28 at 16:31 -0700, Bjorn Helgaas wrote: > We may need mechanism to say "don't trust this info from the > firmware," but we should be able to figure out a way that doesn't > penalize platforms that do everything correctly. The current patch > breaks these scenarios even when the pla

Re: [PATCH 08/18] PCI, powerpc: Register busn_res for root buses

2012-02-28 Thread Bjorn Helgaas
On Mon, Feb 27, 2012 at 10:36 PM, Bjorn Helgaas wrote: > On Mon, Feb 27, 2012 at 7:09 PM, Yinghai Lu wrote: >> Signed-off-by: Yinghai Lu >> Cc: Benjamin Herrenschmidt >> Cc: Paul Mackerras >> Cc: linuxppc-dev@lists.ozlabs.org >> --- >>  arch/powerpc/kernel/pci-common.c |    7 ++- >>  1 fil

Re: [PATCH 08/18] PCI, powerpc: Register busn_res for root buses

2012-02-28 Thread Benjamin Herrenschmidt
On Mon, 2012-02-27 at 22:36 -0700, Bjorn Helgaas wrote: > > There's a lot of powerpc code that does this: > > bus_range = of_get_property(pcictrl, "bus-range", &len); > hose->first_busno = bus_range[0]; > hose->last_busno = bus_range[1]; > > That *looks* like it is discovering the bu

Re: [PATCH 08/18] PCI, powerpc: Register busn_res for root buses

2012-02-27 Thread Bjorn Helgaas
On Mon, Feb 27, 2012 at 7:09 PM, Yinghai Lu wrote: > Signed-off-by: Yinghai Lu > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: linuxppc-dev@lists.ozlabs.org > --- >  arch/powerpc/kernel/pci-common.c |    7 ++- >  1 files changed, 6 insertions(+), 1 deletions(-) > > diff --git a/arch

[PATCH 08/18] PCI, powerpc: Register busn_res for root buses

2012-02-27 Thread Yinghai Lu
Signed-off-by: Yinghai Lu Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/kernel/pci-common.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index