MPC5200 fec frame corruption

Asier Llano Palacios a.llano at usyscom.com
Thu Sep 14 02:14:53 EST 2006


Thank you very much for your fast and helpful answer.

I've found a way to solve our issue (or the way to hide it). The
difference between the previous kernel I was using and the current
kernel (from your git repository) is the XLB bus pipelining. Removing
the code that disables the pipelining it works again. (See the attached
patch).

Of course, I don't expect to remove that code from the repository,
because it seems to solve another issue of other configurations (I don't
use ATA), but I would like to know a little more information about it.

The only problem is that I don't see why does it fail when pipelining is
disabled. My only concern is that maybe the pipelining hides the true
issue. Should it work with pipelining disabled? If so, what do you think
about it?

Thank you very much in advance,
Asier Llano

El mar, 12-09-2006 a las 19:26 +0200, Sylvain Munaut escribió:
> Hi Asier,
> > We have been working with the MPC5200 fec and a linux-2.6.10 with some
> > patches extracted from Sylvain's bitkeeper repository. We have 3
> > different boards that worked properly with that kernel.
> >
> > We upgraded to the new MPC5200B and it still worked properly with the
> > 2.6.10 kernel.
> >
> > We upgraded to the new code of the Sylvain's git repository and the FEC
> > transmitted frames are corrupted. This corruption only happens with the
> > current git repository and the MPC5200B.
> >
> >                 MPC5200   MPC5200B
> > linux-2.6.10:     OK         OK
> > Sylvain's git:    OK       CORRUPT
> >   
> I must admit I don't have bitkeeper anymore installed on my machine so I
> don't
> remeber exactly what in there.
> 
> Could you put somewhere on line the diff between 2.6.10 and you tree,
> eventually minus all the irrelevant/confidential stuff ?
> What would be needed woud be the arch/ppc/syslib/bestcomm ,
> drivers/net/fec_mpc52xx
> and the board setup code.
> > The problem is that the lite5200 and the lite5200b work flawlessly, but
> > our architecture is essentialy the same but with different PHYs (Marvell
> > 88E6095F and 88E6060). Our architecture works properly with the
> > linux-2.6.10, so we don't think that it is a hardware related problem.
> > We have been watching the MII bus by osciloscope and the errors are
> > clearly transmitted by the MPC5200B (no noise or distortion).
> >
> > We have inserted traces in the functions of the FEC driver with the
> > buffer information that is sent to the DMA and the frames are correct.
> >
> >
> > [... logs stripped ...]
> > The corrupted bytes are sometimes correct, sometimes overwriten
> > by the byte that is 0x20 bytes before, and sometimes changed
> > by the bytes that is 0x40 bytes before. About 50% of the time
> > the marked bytes are worong.
> >
> > I'd like to know if anything here makes any sense to you, so
> > that I can understand the origin of the problem, or any
> > additional test to perform.
> >   
> Any sense not really. But I would check first the options in the board
> setup.
> Things like cache snooping, comm bus prefetching, xlb priority settings and
> pipelining, ...
> 
> Then the microcode of the task themselves and the options wich are used when
> loading them.
> 
> Finally compare the driver code itself.
> 
> 
>         Sylvain
> 
> 
 
----------------------------------------- PLEASE NOTE -------------------------------------------
This message, along with any attachments, may be confidential or legally privileged. 
It is intended only for the named person(s), who is/are the only authorized recipients.
If this message has reached you in error, kindly destroy it without review and notify the sender immediately.
Thank you for your help.
µSysCom uses virus scanning software but excludes any liability for viruses contained in any attachment.
 
------------------------------------ ROGAMOS LEA ESTE TEXTO -------------------------------
Este mensaje y sus anexos pueden contener información confidencial y/o con derecho legal. 
Está dirigido únicamente a la/s persona/s o entidad/es reseñadas como único destinatario autorizado.
Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente. Gracias por su colaboración.  
µSysCom utiliza software antivirus, pero no se hace responsable de los virus contenidos en los ficheros anexos.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-mp5200-pipeline.patch
Type: text/x-patch
Size: 754 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060913/456a9ad1/attachment.bin 


More information about the Linuxppc-embedded mailing list