PCI lookup issue: 3c905C-TX not found by RTEMS.

Karel Gardas kgardas at objectsecurity.com
Tue Jan 18 21:11:08 UTC 2005


On Tue, 18 Jan 2005 gregory.menke at gsfc.nasa.gov wrote:

>
>
> It looks as if the find device function is not testing any busses
> other than bus 0.  Please print the value returned from
>
> BusCountPCI()
>
> Presumably it is == 1.  If so, then you're likely the first to
> discover a problem with the hacked BusCountPCI function thats just
> above the find device function in pcibios.c.  I think the next thing
> to do in this case is to instrument the function with printk's and see
> how the nested loops work.

Hmm, strange, now BusCountPCI starts to printk even original messages
which I have not added there... anyway, printing looks.

Heck, it seems that for the first device tested, BusCountPCI prints:

`BusCountPCI() found 0 busses, assuming 1
 BusCountPCI: retval: 1'

while for all other devices it just prints:
`BusCountPCI: retval: 1'

also I don't see it in the code but it seems BusCountPCI is invoked twice
per BSP_pciFindDevice function run:

BSP_pciFindDevice: vendor(10B7)/device(9200)

BusCountPCI: retval: 1
BSP_pciFindDevice: found 0x00497E68 at 0/0/0
BSP_pciFindDevice: found 0x00497E68 at 0/1/0
BSP_pciFindDevice: found 0x00497E68 at 0/2/0
BSP_pciFindDevice: found 0x00497E68 at 0/3/0
BSP_pciFindDevice: found 0x00497E68 at 0/4/0
BSP_pciFindDevice: found 0x00497E68 at 0/5/0
BSP_pciFindDevice: found 0x00497E68 at 0/6/0
BSP_pciFindDevice: found 0x00497E68 at 0/7/0
BSP_pciFindDevice: found 0x00497E68 at 0/8/0
BSP_pciFindDevice: found 0x00497E68 at 0/9/0
BSP_pciFindDevice: found 0x00497E68 at 0/10/0
BSP_pciFindDevice: found 0x00497E68 at 0/11/0
BSP_pciFindDevice: found 0x00497E68 at 0/12/0
BSP_pciFindDevice: found 0x00497E68 at 0/13/0
BSP_pciFindDevice: found 0x00497E68 at 0/14/0
BSP_pciFindDevice: found 0x00497E68 at 0/15/0
BusCountPCI: retval: 1
not found...

By your `I think the next thing to do in this case is to instrument the
function with printk's and see how the nested loops work.' -- do you mean
BusCountPCI function?

Thanks,
Karel
--
Karel Gardas                  kgardas at objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com




More information about the users mailing list