R: Re: PCI device not working
Hi,
Quoted 1 line
So its odd that scanning of the second bus didn't report any devices. Do=
=20
you have code that implements ppc_md.pci_exclude_device ?
not that I'm aware=20
of
Quoted 1 line
You might also want to put some code in the indirect PCI ops (indirect.c)=
=20
to see what actual values you are getting from various indirect_read_config= ()=20
calls.
To make sure that ppc_md.pci_exclude_device is not implemented, I've=20 put some printouts inside indirect_read_config(): I print various paramete= rs=20
when the function is called, and when it returns and note that:
1.=20indirect_read_config() is called 422 times:=20
174 times for=20
[/pcie@ffe0a000] (controller where the device is not detected)
248 times=20for [/pcie@ffe09000]=20
2. ppc_md.pci_exclude_device is always NULL
3. the=20
function always returns with PCIBIOS_SUCCESSFUL
4. the only call to =20indirect_read_config() inside which bus_no=3D0x3, returns with the followi= ng=20
log:
pci_bus 0001:03: scanning bus
-> ind_r_config - [/pcie@ffe0a000]=20
devfn=3D0x0 len=3D0x4 hose->indirect_type=3D0x16 hose->first_busno=3D0x2 bu= s-
Quoted 1 line
number=3D0x3
-> ind_r_config [/pcie@ffe0a000] - (bus_no=3D0x3 reg=3D0x0=20
cfg_data=3D0xffffffff len=3D0xff7eb004) val=3D0x4 PCIBIOS_SUCCESSFUL =20
the entire=20
log is about 116Kb and is available in [1] or [2] (didn't feel like pasting=
so=20
much data on the ML)
thanx alot,
Davide
[1] http://pastebin.com/JaPGmmfs
[2]=20
http://paste2.org/p/2273728
Invita i tuoi amici e Tiscali ti premia! Il consiglio di un amico vale pi= =C3=B9 di uno spot in TV. Per ogni nuovo abbonato 30 =E2=82=AC di premio pe= r te e per lui! Un amico al mese e parli e navighi sempre gratis: http://fr=
eelosophy.tiscali.it/
Re: PCI device not working
Quoted 3 lines · Davide Viti
Hi,
=20Quoted 1 line
So its odd that scanning of the second bus didn't report any devices. =
Do=20
Quoted 6 lines
you have code that implements ppc_md.pci_exclude_device ? =20
not that I'm aware=20
of
=20Quoted 1 line
You might also want to put some code in the indirect PCI ops =
(indirect.c)=20
Quoted 1 line
to see what actual values you are getting from various =
indirect_read_config()=20
Quoted 5 lines
calls.
=20
To make sure that ppc_md.pci_exclude_device is not implemented, I've=20=put some printouts inside
indirect_read_config(): I print various =
parameters=20
Quoted 7 lines
when the function is called, and when it returns and note that:
=20
1.=20indirect_read_config()is called 422 times:=20174 times for=20 [/pcie@ffe0a000] (controller where the device is not detected) 248 times=20
Quoted 6 lines
for [/pcie@ffe09000]=20
2. ppc_md.pci_exclude_device is always NULL
3. the=20
function always returns withPCIBIOS_SUCCESSFUL
4. the only call to =20indirect_read_config()inside which bus_no=3D0x3, returns with the =
following=20
Quoted 5 lines
log:
=20pci_bus0001:03: scanning bus
->ind_r_config- [/pcie@ffe0a000]=20
devfn=3D0x0 len=3D0x4 hose->indirect_type=3D0x16 hose->first_busno=3D0x2=
bus-
Quoted 3 lines
Quoted 1 line
number=3D0x3
->
ind_r_config[/pcie@ffe0a000] - (bus_no=3D0x3 reg=3D0x0=20 cfg_data=3D0xffffffff len=3D0xff7eb004) val=3D0x4PCIBIOS_SUCCESSFUL=20=
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.
- k
Quoted 3 lines
=20
the entire=20
log is about 116Kb and is available in [1] or [2] (didn't feel like =
pasting so=20
Quoted 11 lines
much data on the ML)
thanx alot,
=20
Davide
=20
[1] http://pastebin.com/JaPGmmfs
[2]=20
http://paste2.org/p/2273728
=20
=20
Invita i tuoi amici e Tiscali ti premia! Il consiglio di un amico vale =
pi=F9 di uno spot in TV. Per ogni nuovo abbonato 30 =80 di premio per te = e per lui! Un amico al mese e parli e navighi sempre gratis: =
http://freelosophy.tiscali.it/