[MPC5200] problem running FEC and ATA

5 messages, 3 authors, 2007-12-18 · open the first message on its own page

[MPC5200] problem running FEC and ATA

From: Arnon Kaufman <hidden>
Date: 2007-12-16 13:24:44

does any one succeed running a functional FEC and ATA (pata) running 
together ?
If so which version (2.6.x...) and with which architecture (powerpc or 
ppc)?.

The machine I'm working on based on v2.6.21-rc6 and another one based on 
v2.6.24-rc1, both configured with ARCH=powerpc.

my FEC introduce itself as: "PHY: f0003000:01", and not as f0003000:00, 
I've fix it by adjusting the dts file, is that ok?

I'm getting the following, when pinging the machine:

64 bytes from xxx.xxx.xxx.xxx: icmp_seq=4401 ttl=64 time=0.249 ms
64 bytes from xxx.xxx.xxx.xxx: icmp_seq=4402 ttl=64 time=0.285 ms
wrong data byte #52 should be 0x34 but was 0xa
#8      8 9 a b c d e f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 
20 21 22 23 24 25 26 27
#40     28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 a 35 36 37
64 bytes from xxx.xxx.xxx.xxx: icmp_seq=4403 ttl=64 time=0.233 ms
wrong data byte #20 should be 0x14 but was 0x0
#8      8 9 a b c d e f 10 11 12 13 0 15 16 17 18 19 1a 1b 1c 1d 1e 1f 
20 21 22 23 24 25 26 27
#40     28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37
64 bytes from xxx.xxx.xxx.xxx: icmp_seq=4404 ttl=64 time=0.232 ms
64 bytes from xxx.xxx.xxx.xxx: icmp_seq=4405 ttl=64 time=0.237 ms

-----

The offsets and values of the corrupted data are constant (can it be the 
  microcode?)

when enabling the PATA driver and doing some Compact flash access 
operation the amount of packets corruption is getting worse.

does the pata driver needs to wait on the TIP indicator? cause it 
doesn't seems to do it.

Re: [MPC5200] problem running FEC and ATA

From: Robert Schwebel <hidden>
Date: 2007-12-16 15:45:14

On Sun, Dec 16, 2007 at 03:24:34PM +0200, Arnon Kaufman wrote:
does any one succeed running a functional FEC and ATA (pata) running
together?
Yes, we do, on the phyCORE-MPC5200B-tiny; you can check our patches here:
http://www.pengutronix.de/oselas/bsp/phytec/download/phyCORE-MPC5200B-tiny/

We've recently made the -6 release which supports ATA; although I'm not
sure if the tests were done with networking & ATA at the same time I
assume yes (at least while doing nfsroot). We'll re-check your scenario.

Note that there has been quite some activity wrt. MPC5200, bestcom and
fec in the mainline recently. You should test the latest 2.6.24-rc
kernel.

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9

Re: [MPC5200] problem running FEC and ATA

From: Arnon Kaufman <hidden>
Date: 2007-12-16 17:28:46

Robert Schwebel wrote:
On Sun, Dec 16, 2007 at 03:24:34PM +0200, Arnon Kaufman wrote:
quoted
does any one succeed running a functional FEC and ATA (pata) running
together?
Yes, we do, on the phyCORE-MPC5200B-tiny; you can check our patches here:
http://www.pengutronix.de/oselas/bsp/phytec/download/phyCORE-MPC5200B-tiny/
thanks, my kernels are already patched and still observing that kind of 
behavior. I'm using Domen's new FEC code and ATA from 2.6.24-rc2.

playing with the XLB Master's enable and priority lead to significant 
changes (good ones) in the rate of corruption appearance. I'm afraid of 
the "new" priority I've set, as that may lead to lockups on the XLB, 
still investigating.

We've recently made the -6 release which supports ATA; although I'm not
sure if the tests were done with networking & ATA at the same time I
assume yes (at least while doing nfsroot). We'll re-check your scenario.

Note that there has been quite some activity wrt. MPC5200, bestcom and
fec in the mainline recently. You should test the latest 2.6.24-rc
kernel.

Robert

Re: [MPC5200] problem running FEC and ATA

From: Robert Schwebel <hidden>
Date: 2007-12-16 17:46:40

On Sun, Dec 16, 2007 at 07:28:40PM +0200, Arnon Kaufman wrote:
Robert Schwebel wrote:
quoted
On Sun, Dec 16, 2007 at 03:24:34PM +0200, Arnon Kaufman wrote:
quoted
does any one succeed running a functional FEC and ATA (pata) running
together?
Yes, we do, on the phyCORE-MPC5200B-tiny; you can check our patches here:
http://www.pengutronix.de/oselas/bsp/phytec/download/phyCORE-MPC5200B-tiny/
thanks, my kernels are already patched and still observing that kind of
behavior. I'm using Domen's new FEC code and ATA from 2.6.24-rc2.

playing with the XLB Master's enable and priority lead to significant
changes (good ones) in the rate of corruption appearance. I'm afraid of
the "new" priority I've set, as that may lead to lockups on the XLB,
still investigating.
Do you have a reproducable test scenario we can try on our hardware?

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9

Re: [MPC5200] problem running FEC and ATA

From: Juergen Beisert <hidden>
Date: 2007-12-18 10:41:15

On Sunday 16 December 2007 18:28, Arnon Kaufman wrote:
Robert Schwebel wrote:
quoted
On Sun, Dec 16, 2007 at 03:24:34PM +0200, Arnon Kaufman wrote:
quoted
does any one succeed running a functional FEC and ATA (pata) running
together?
Yes, we do, on the phyCORE-MPC5200B-tiny; you can check our patches here:
http://www.pengutronix.de/oselas/bsp/phytec/download/phyCORE-MPC5200B-ti=
ny/
thanks, my kernels are already patched and still observing that kind of
behavior. I'm using Domen's new FEC code and ATA from 2.6.24-rc2.
I tried our kernel (see link above) with an external harddisk and NFS. I=20
copied various files from the harddisk to NFS root and vice versa. No data=
=20
corruption.

Can you check our patch stack on your hardware?

Juergen
=2D-=20
Dipl.-Ing. Juergen Beisert | http://www.pengutronix.de
=A0Pengutronix - Linux Solutions for Science and Industry
=A0   Handelsregister: Amtsgericht Hildesheim, HRA 2686
=A0 =A0 =A0    Vertretung Sued/Muenchen, Germany
   Phone: +49-8766-939 228 |  Fax: +49-5121-206917-9
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help