Skip to contentSkip to conversation

Linux on Force Computers CPCI-3750 eth drivers

DISCUSSION luca gambazzi 2 participants 4 messages Apr 9, 2003 – Apr 11, 2003

lore
Share & tools
lore
#0 lore raw

Hi Matt

I'm booting with the pcore kernel.

the pcore_find_bridges function in pcore_pci.c recognize my card as a 6750, but the 3750 uses a 21150 bridge and not a 21154.

Do you know where can i find documentation to solve this problem? and where I have to modify?

here you can find the bios log, maybe you can find an answer.
http://lsa1pc32.epfl.ch/~gamba/robox/

Thanks a lot
luca

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 4 lines · luca gambazzi

I'm booting with the pcore kernel.

the pcore_find_bridges function in pcore_pci.c recognize my card as a 6750, but the 3750 uses a 21150 bridge and not a 21154.

That makes sense. When I did the port I had a 6750 and 680. They are very similar but Force is too stupid to provide a method to uniquely identify a board at runtime. So, you see the kludge where anything booting a pcore kernel that has an MPC106 is a 6750 and if it has a MPC107 then it must be a 680.

Quoted 2 lines

Do you know where can i find documentation to solve this problem? and where I have to modify?

Talk to Force. You need the 3750 manual. I suspect that it has different interrupt routing than the 6750. Right now, you are picking up the pcore_6750_map_irq table which has irq 10 for the on-board tulip. More than likely it's routed to a different input on the 3750. You would create a pcore_3750_map_irq, and provide some way to uniquely identify that you are on a 3750 and have the kernel use that map_irq function.

Quoted 2 lines

here you can find the bios log, maybe you can find an answer.
http://lsa1pc32.epfl.ch/~gamba/robox/

Definitely looks like pci interrupt routing is incorrect. tulip driver isn't getting interrupts. One warning, once you get 3750 docs...don't trust them, they are often incorrect. :)

When you get this working, please post a patch so it can be incorporated. Good luck.

Regards,
--
Matt Porter
[email protected]
This is Linux Country. On a quiet night, you can hear Windows reboot.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
In reply to luca gambazzi
Quoted 9 lines · luca gambazzi

Hi Matt

I'm booting with the pcore kernel.

the pcore_find_bridges function in pcore_pci.c recognize my card as a 6750, but the 3750 uses a 21150 bridge and not a 21154.

Do you know where can i find documentation to solve this problem? and where I have to modify?

Oh, I should have mentioned the shotgun alternative to waiting on docs from Force. Assume that the 3750 uses cascade irqs 9-12 for all pci interrupts just like the 6750. Try changing the 6750 tulip map_irq entry to be 9,11,12 and see if any work.

BTW, saw your list of devices in the /proc/pci dump. Looks like a fun project. :)

Regards,
--
Matt Porter
[email protected]
This is Linux Country. On a quiet night, you can hear Windows reboot.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#3 lore raw

hi matt

as you said the problem was on the eth card irq,... the irq is 9. i prepear a patch and i'll send you in next days.

happy weekend
luca

Quoted 16 lines · Matt Porter
Quoted 9 lines · luca gambazzi

Hi Matt

I'm booting with the pcore kernel.

the pcore_find_bridges function in pcore_pci.c recognize my card as a 6750, but the 3750 uses a 21150 bridge and not a 21154.

Do you know where can i find documentation to solve this problem? and where I have to modify?

Oh, I should have mentioned the shotgun alternative to waiting on docs from Force. Assume that the 3750 uses cascade irqs 9-12 for all pci interrupts just like the 6750. Try changing the 6750 tulip map_irq entry to be 9,11,12 and see if any work.

Quoted 4 lines

BTW, saw your list of devices in the /proc/pci dump. Looks like a fun project. :)

Regards,

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/