On Sep 27, 2012, at 8:14 AM, Davide Viti wrote: > Hi Kumar, > >> ----Messaggio originale---- >> Da: ga...@kernel.crashing.org >> Data: > 27/09/2012 14.27 >> A: "Davide Viti"<zino...@tiscali.it> >> Cc: <linuxppc-dev@lists. > ozlabs.org> >> Ogg: Re: PCI device not working >> > ... >> Can you see what bus_no > actually gets set to in the case we scan 0001:03 ? >> >> If its set to 03, can you > try hack it to 1. > > is this what you mean?
It was, can you figure out in u-boot what exact config read on the bus would return the correct thing. The fact that when we probe the device at 0001:03 we should get back something like cfg_data=0xabba1b65 - k > > --- > a/arch/powerpc/sysdev/indirect_pci.c > +++ b/arch/powerpc/sysdev/indirect_pci.c > > > bus_no = (bus->number == hose->first_busno) ? > > hose->self_busno : bus->number; > > + if (bus_no == 3) { > + printk > ("*** force bus_no 3 -> 1 ***\n"); > + bus_no = 1; > + } > + > > > I've > tested a kernel with the above patch and this is what is printed on the log: > > > pci_bus 0001:03: scanning bus > -> ind_r_config - [/pcie@ffe0a000] devfn=0x0 > offset=0x0 len=0x4 hose->indirect_type=0x16 hose->first_busno=0x2 bus- >> number=0x3 > *** force bus_no 3 -> 1 *** > -> ind_r_config [/pcie@ffe0a000] - > (bus_no=0x1 reg=0x0 cfg_data=0xff7eb004 len=0x4 hose->cfg_addr=0xff7eb000) > val=0xffffffff PCIBIOS_SUCCESSFUL > > the entire log (132Kb) is available in [1] > and [2] > > thanx for your help, > Davide > > [1] http://pastebin.com/3mcbDzwY > [2] http: > //paste2.org/p/2274032 > > > > Invita i tuoi amici e Tiscali ti premia! Il consiglio di un amico vale più di > uno spot in TV. Per ogni nuovo abbonato 30 € di premio per te e per lui! Un > amico al mese e parli e navighi sempre gratis: http://freelosophy.tiscali.it/ _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev