Re: mpc8541 pci1 ioport allocation address space problem

2008-09-23 Thread Benjamin Herrenschmidt
On Tue, 2008-09-23 at 22:24 +0800, Wang Jian wrote: > > I had this patch and 2 fixes on dts applied simultaneously, and the > board > works. I thought this patch was necessary. > > I reverted this patch and tried again, the board still works. Thanks > for > your insight. > > Anyway, the io port

Re: mpc8541 pci1 ioport allocation address space problem

2008-09-23 Thread Wang Jian
Confirmed. I had this patch and 2 fixes on dts applied simultaneously, and the board works. I thought this patch was necessary. I reverted this patch and tried again, the board still works. Thanks for your insight. Anyway, the io port read from /proc/ioports is misleading, so I wish it can be c

Re: mpc8541 pci1 ioport allocation address space problem

2008-09-22 Thread Benjamin Herrenschmidt
On Sun, 2008-09-21 at 09:19 +0800, Wang Jian wrote: > The following patch works fine. And will break platforms that explicitely want IO port 0 to be on the primary bus, though I'm not sure there's many of these left... Ben. > diff --git a/arch/powerpc/kernel/pci-common.c > b/arch/powerpc/kernel

Re: mpc8541 pci1 ioport allocation address space problem

2008-09-21 Thread Benjamin Herrenschmidt
On Sat, 2008-09-20 at 19:16 +0800, Wang Jian wrote: > Hi, > > Here I have a 8541 dev board, with 2 e1000 attached to pci0 and a > homebrewed addon board inserted into pci1. I am trying to make it work > under 2.6.26-rc8 (2.6.26 broken so I am working at rc8). > > The ioports allocation reads > >

Re: mpc8541 pci1 ioport allocation address space problem

2008-09-20 Thread Wang Jian
The following patch works fine. diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 063cdd4..4b913e0 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c @@ -582,9 +582,19 @@ void __devinit pci_process_bridge_OF_ranges(struct pci_

mpc8541 pci1 ioport allocation address space problem

2008-09-20 Thread Wang Jian
Hi, Here I have a 8541 dev board, with 2 e1000 attached to pci0 and a homebrewed addon board inserted into pci1. I am trying to make it work under 2.6.26-rc8 (2.6.26 broken so I am working at rc8). The ioports allocation reads $ cat /proc/ioports -000f : /[EMAIL PROTECTED] 1000