Networkinterface on MPC5200b

Bjoern Slotkowski bjoern.slotkowski at imc-berlin.de
Wed Aug 17 21:31:49 EST 2011


Hello,

We have two problems when using the fec of the MPC5200b.
The occurence of both problems is very seldom.

1.
Sometimes the first two octets of the MAC-Adress are wrong.
Removing/inserting the driver does not help.

2.
Sometimes the communication stops.
When Removing the driver following message occurs:

net eth0: queues didn't drain
net eth0: tx: index: 9, outdex: 23
net eth0: rx: index: 81, outdex: 82

Is there any known issue about this ?


For the second point I was able to create a situation to reproduce the
behavior:
For this only a wrong checksum has to be appended to the ethernet-frame
transmitted to the fec.
When sending normal frames afterward nothing happens, the comunication is
dead.
It seems as if the part of the bestcom dma which handles the fec stops.

So we modified the driver code:
Normallly when a checksum error occurs, an error interrupt is generated for
the fec-driver and nothing will be done
beside error counting.
We modified the interrupt routine: The bestcom dma for the fec is setup
again.
This modification helps sometimes but not always.
Sometimes receiving frames does not work.
Sometimes sending frames does not work after the handling of the error.

So we tried to modify the microcode of the dma to find out what wents wrong.
But here we run into trouble:
Every modifiaction especially inserting a NOP at the end leads to a non
working dma
(We also modified the size in the setup-header).

Does anyone has experience with the microcode of the bestcom dma ?
We found some documentation of the dma and how it could be possible to do
something like a debugging
and we were roughly able to read what is happening in the mirocode.
But probably we do not understand all.

Thanks a million,

Björn Slotkowski


--
imc Messsysteme GmbH
Bereich Entwicklung / Dept. Development
Voltastraße 5
D-13355 Berlin
Germany
Tel:   +49 30 46 70 90 23
Fax:   +49 30 46 31 57 6
mailto:Bjoern.Slotkowski at imc-berlin.de
Homepage: http://www.imc-berlin.de

Sitz der Gesellschaft : Berlin
Handelsregister       : Berlin-Charlottenburg HRB 28778
Geschäftsführer       : Dr.-Ing. Dietmar Sprenger





More information about the Linuxppc-dev mailing list