Re: Virtex 4 Avnet Mini-Module Networking.

From: <hidden>
Date: 2007-06-22 19:02:18

Has anybody or know of anybody that has got the ethernet to work on the=

Avnet V4 Mini-Module with Linux?

My closest came with EDK 8.2iSP3 and Linux 2.6.19.  I was able to ping =
the
computers on the network, but I could not fully trasnfer data.  Capturn=
ing
the packets using Ethereal showed the TCP checksum was incorrect while =
the
IP checksum was correct.  I has a lot of trouble get the DMA to attempt=
 to
run with thei statement.

I have now tried upgrading to EDK 9.1iSP2 and Linux-2.6.21 from Grant's=
 git
server.  Now I do not see any packets using thernet evrything else seem=
s
the same.  When I try to ping another computer, I see activity on the
switch, but no packets are transmitted.  Samething happens using FIFO o=
r
DMA Below is the kernel output when booting.

[    4.186714] XTemac: using sgDMA mode.
[    4.230800] XTemac: using TxDRE mode
[    4.273829] XTemac: using RxDRE mode
[    4.316805] XTemac: buffer descriptor size: 32768 (0x8000)
[    4.383980] XTemac: (buffer_descriptor_init) phy: 0x5c8000, virt:
0xff100000, size: 0x8000
[    4.494600] eth%d: XTemac: PHY detected at address 4.
[    4.557994] eth0: Xilinx TEMAC #0 at 0x81200000 mapped to 0xC5000000=
,
irq=3D0
[    4.641808] eth0: XTemac id 1.0f, block id 5, type 8
[    4.703065] mice: PS/2 mouse device common for all mice
[    4.766425] TCP cubic registered
[    4.805581] NET: Registered protocol family 1
[    4.858089] NET: Registered protocol family 17
[    4.914484] RAMDISK: Compressed image found at block 0
[    7.190462] VFS: Mounted root (ext2 filesystem).
[    7.246742] Freeing unused kernel memory: 92k init
[    7.445413] eth0: XTemac: Options: 0xb8f2
[   12.986126] eth0: XTemac: We renegotiated the speed to: 1000
[   13.054001] eth0: XTemac: speed set to 1000Mb/s
[   13.120469] eth0: XTemac: Send Threshold =3D 16, Receive Threshold =3D=
 2
[   13.212064] eth0: XTemac: Send Wait bound =3D 1, Receive Wait bound =
=3D 1

Any ideas/comments.  It would be great to hear from somebody that this =
has
a chance of working because you got it wokrking.

Thanks,
Glenn


Mohammad Sadegh Sadri wrote:
very interesting

the provided xps project from xapp941 results 230Mbits but your custo=
me
system is 83.0Mbits, yes?

yes
just, are you sure the ppc core has the same core clock frequency in =
both
designs? I mean may be the xapp941 is running at 300MHz but yours at
100MHz.

both run at 300MHz
And what about a custom system with 9.1SP2? does that gives the same
performance?

haven't tried this yet
Finally If possible please release the test results for TCP streams. =
(
9.1 no SP and 9.1 SP2 )

The TEMAC driver is from EDK 9.1.02 (IOW, SP2).

bitstream made by myself with EDK 9.1.00:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

root@192.168.119.11:~/netperf-2.4.1/src# ./netperf -l 30 -H 192.168.119=
.1
-i 10, 2 -I 99,10 -t TCP_STREAM -- -m 32768 -s 262144
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.119.1
(192.168.119.1) port 0 AF_INET : =B15.0% @ 99% conf.
Recv   Send    Send
Socket Socket  Message  Elapsed
Size   Size    Size     Time     Throughput
bytes  bytes   bytes    secs.    10^6bits/sec

  87380 217088  32768    30.00      41.66

bitstream from XAPP941:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

root@192.168.119.11:~/netperf-2.4.1/src# ./netperf -l 30 -H 192.168.119=
.1
-i 10, 2 -I 99,10 -t TCP_STREAM -- -m 32768 -s 262144
TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.119.1
(192.168.119.1) port 0 AF_INET : =B15.0% @ 99% conf.
Recv   Send    Send
Socket Socket  Message  Elapsed
Size   Size    Size     Time     Throughput
bytes  bytes   bytes    secs.    10^6bits/sec

  87380 217088  32768    30.00     111.86

And I didn't test ML405 receive performance.

Thanks,
Andrei
thanks



----------------------------------------
quoted
Date: Thu, 21 Jun 2007 18:53:49 +0400
From: <redacted>
To: <redacted>
CC: <redacted>; <redacted>;
glenn.g.hart@us.westinghouse.com
quoted
Subject: Re: Virtex 4 Avnet Mini-Module Networking.

Mohammad Sadegh Sadri wrote:
quoted
I'm wondering where are the original developers of TEMAC driver the=
se
days, I have not seen any posts from any of andrei
quoted
quoted
nor grant in the recent weeks. may be they are involved in other
projects.
quoted
As for me - no, not until the end of this week..

I am puzzled with the following:

I've got ML405 recently. There is a prebuilt bitstream with TEMAC in=
SGDMA mode for this board made by Xilinx (XAPP941).
quoted
With the TEMAC driver from EDK 9.1SP2 and the XAPP941 bitstream I've=
 got
(no jumbo frames):
quoted
   XTemac: using sgDMA mode.
   XTemac: using TxDRE mode
   XTemac: using RxDRE mode
   XTemac: buffer descriptor size: 32768 (0x8000)
   XTemac: (buffer_descriptor_init) phy: 0x3cf8000, virt: 0xff100000=
,
size: 0x8000
quoted
   eth%d: XTemac: PHY detected at address 7.
   eth0: Xilinx TEMAC #0 at 0x80000000 mapped to 0xC5060000, irq=3D0=
quoted
   eth0: XTemac id 1.0f, block id 5, type 8

   eth0: XTemac: Options: 0xb8f2
   eth0: XTemac: We renegotiated the speed to: 1000
   eth0: XTemac: speed set to 1000Mb/s
   eth0: XTemac: Send Threshold =3D 16, Receive Threshold =3D 2
   eth0: XTemac: Send Wait bound =3D 1, Receive Wait bound =3D 1

   root@192.168.119.11:~/netperf-2.4.1/src# ./netperf -l 30 -H
192.168.119.1 -i 10,
quoted
   2 -I 99,10 -t UDP_STREAM -- -m 32768 -s 262144
   UDP UNIDIRECTIONAL SEND TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INE=
T to
192.168.11
quoted
   9.1 (192.168.119.1) port 0 AF_INET : =B15.0% @ 99% conf.
   Socket  Message  Elapsed      Messages
   Size    Size     Time         Okay Errors   Throughput
   bytes   bytes    secs            #      #   10^6bits/sec

   217088   32768   30.00       26391      0     230.60
   107520           30.00       26377            230.48

Not that bad for this setup.

With xps (EDK 9.1 without any SPs) I've tried creating exact the sam=
e
design.
quoted
So that exact the same kernel etc could be used for the both bitstre=
ams.
quoted
And with the self-made one I see exact the same output with the only=
difference:
quoted
   root@192.168.119.11:~/netperf-2.4.1/src# ./netperf -l 30 -H
192.168.119.1 -i 10,
quoted
   2 -I 99,10 -t UDP_STREAM -- -m 32768 -s 262144
   UDP UNIDIRECTIONAL SEND TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INE=
T to
192.168.11
quoted
   9.1 (192.168.119.1) port 0 AF_INET : =B15.0% @ 99% conf.
   Socket  Message  Elapsed      Messages
   Size    Size     Time         Okay Errors   Throughput
   bytes   bytes    secs            #      #   10^6bits/sec

   217088   32768   30.00        9593      0      83.82
   107520           30.00        9586             83.76

:o(

Rebuilding the XAPP941 project with EDK 9.1.00 still leaves 230Mb/se=
c.
quoted
I also pulled the additional timing constraints from XAPP941's
data/system.ucf
quoted
into the self-made data/system.ucf, but this haven't change anything=
.
quoted
I've run out of ideas, and switched from TEMAC to other Xilinx stuff=
 for
a while.
quoted

Thanks,
Andrei
_________________________________________________________________
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/launch80/default.aspx?locale=3Den-us&s=
ource=3Dwlmailtagline
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded






=
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help