[U-Boot] [PATCH] Add CONFIG_GMAC_TX_DELAY=4 for OlinuXino Lime2

François-David Collin fradav at gmail.com
Sat Mar 19 09:39:34 CET 2016


Hi,

As I’m banging my head on this too, please allow me to provide some details
I got two stable situations :
The Lime2 is connected directly to the Gbit interface of my laptop, speed are OK:

1. The Lime2 is connected directly to the Gbit interface of my laptop

[alarm at lime2 ~]$ iperf3 -s -p 5201
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.137.1, port 58077
[  5] local 192.168.137.58 port 5201 connected to 192.168.137.1 port 58078
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec  81.4 MBytes   683 Mbits/sec
[  5]   1.00-2.00   sec  82.2 MBytes   690 Mbits/sec
[  5]   2.00-3.00   sec  85.0 MBytes   713 Mbits/sec
[  5]   3.00-4.00   sec  82.1 MBytes   689 Mbits/sec
[  5]   4.00-5.00   sec  87.9 MBytes   738 Mbits/sec
[  5]   5.00-6.00   sec  78.8 MBytes   661 Mbits/sec
[  5]   6.00-7.00   sec  75.0 MBytes   629 Mbits/sec
[  5]   7.00-8.00   sec  88.4 MBytes   741 Mbits/sec
[  5]   8.00-9.00   sec  69.2 MBytes   581 Mbits/sec
[  5]   9.00-10.00  sec  67.2 MBytes   564 Mbits/sec
[  5]  10.00-10.04  sec  2.82 MBytes   660 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.04  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.04  sec   800 MBytes   669 Mbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.137.1, port 58081
[  5] local 192.168.137.58 port 5201 connected to 192.168.137.1 port 58082
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  5]   0.00-1.00   sec  71.4 MBytes   598 Mbits/sec    0    221 KBytes
[  5]   1.00-2.00   sec  76.0 MBytes   637 Mbits/sec    0    221 KBytes
[  5]   2.00-3.00   sec  76.8 MBytes   645 Mbits/sec    0    221 KBytes
[  5]   3.00-4.00   sec  74.1 MBytes   621 Mbits/sec    0    221 KBytes
[  5]   4.00-5.00   sec  75.0 MBytes   630 Mbits/sec    0    221 KBytes
[  5]   5.00-6.00   sec  69.4 MBytes   582 Mbits/sec    0    221 KBytes
[  5]   6.00-7.03   sec  68.6 MBytes   562 Mbits/sec    0    221 KBytes
[  5]   7.03-8.03   sec  65.3 MBytes   548 Mbits/sec    0    221 KBytes
[  5]   8.03-9.00   sec  64.1 MBytes   552 Mbits/sec    0    221 KBytes
[  5]   9.00-10.00  sec  72.8 MBytes   610 Mbits/sec    0    221 KBytes
[  5]  10.00-10.04  sec  2.27 MBytes   513 Mbits/sec    0    221 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  5]   0.00-10.04  sec   716 MBytes   598 Mbits/sec    0             sender
[  5]   0.00-10.04  sec  0.00 Bytes  0.00 bits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

[alarm at lime2 Dev]$ sudo ./mmio-dump 0x1c20164
01c20164: 00000006
[alarm at lime2 Dev]$ sudo i2cdump -f -y 0 0x34
No size specified (using byte-data access)
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: c1 10 00 41 00 00 00 00 00 00 00 00 00 00 00 00    ??.A............
10: 05 00 5f 00 00 00 00 00 00 00 00 00 00 00 00 00    ?._.............
20: 00 00 00 1c 00 00 00 16 cb 54 00 00 00 00 00 00    ...?...??T......
30: 60 03 42 c9 45 22 9d 0a a5 1f 68 5f fc 16 00 00    `?B?E"????h_??..
40: 00 00 00 00 60 00 00 00 00 00 00 00 00 00 00 00    ....`...........
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 70 02    ..............p?
60: dc 0e 3e 08 00 00 00 00 00 00 00 00 00 00 00 00    ??>?............
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 0e    ..............??
80: e0 fd 83 80 32 00 ff 00 00 00 00 00 00 00 00 21    ????2..........!
90: 07 a5 07 07 00 02 00 00 00 00 00 00 00 00 00 00    ????.?..........
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 0c    ..............??
b0: 00 00 00 00 00 00 00 00 00 7f 00 ba 00 00 00 00    .........?.?....
c0: 01 01 02 04 07 0d 10 1a 24 2e 35 3d 49 54 5c 63    ????????$.5=IT\c
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
f0: 41 00 80 03 00 00 00 00 00 00 00 00 00 00 00 00    A.??............

2. The Lime2 is connected to one of the 4 Gbit port of my home switch, TX speed are terrible, RX are somewhat OK

[alarm at lime2 ~]$ iperf3 -s -p 5201
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.0.10, port 58657
[  5] local 192.168.0.8 port 5201 connected to 192.168.0.10 port 58658
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec  0.00 Bytes  0.00 bits/sec
[  5]   1.00-2.00   sec  49.9 KBytes   409 Kbits/sec
[  5]   2.00-3.00   sec  25.7 KBytes   210 Kbits/sec
[  5]   3.00-4.00   sec  18.5 KBytes   152 Kbits/sec
[  5]   4.00-5.00   sec  17.1 KBytes   140 Kbits/sec
[  5]   5.00-6.00   sec  0.00 Bytes  0.00 bits/sec
[  5]   6.00-7.00   sec  0.00 Bytes  0.00 bits/sec
[  5]   7.00-8.00   sec  0.00 Bytes  0.00 bits/sec
[  5]   8.00-9.00   sec  0.00 Bytes  0.00 bits/sec
[  5]   9.00-10.00  sec  0.00 Bytes  0.00 bits/sec
[  5]  10.00-10.19  sec  0.00 Bytes  0.00 bits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.19  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.19  sec   111 KBytes  89.4 Kbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.0.10, port 58684
[  5] local 192.168.0.8 port 5201 connected to 192.168.0.10 port 58685
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  5]   0.00-1.01   sec  87.5 MBytes   728 Mbits/sec    0    210 KBytes
[  5]   1.01-2.01   sec  89.3 MBytes   746 Mbits/sec    0    210 KBytes
[  5]   2.01-3.00   sec  84.2 MBytes   710 Mbits/sec    0    221 KBytes
[  5]   3.00-4.00   sec  85.3 MBytes   718 Mbits/sec    0    221 KBytes
[  5]   4.00-5.01   sec  80.3 MBytes   668 Mbits/sec    0    221 KBytes
[  5]   5.01-6.01   sec  88.1 MBytes   741 Mbits/sec    0    221 KBytes
[  5]   6.01-7.00   sec  89.1 MBytes   751 Mbits/sec    0    221 KBytes
[  5]   7.00-8.01   sec  89.5 MBytes   745 Mbits/sec    0    221 KBytes
[  5]   8.01-9.00   sec  83.5 MBytes   708 Mbits/sec    0    221 KBytes
[  5]   9.00-10.00  sec  79.2 MBytes   664 Mbits/sec    0    221 KBytes
[  5]  10.00-10.06  sec  2.75 MBytes   371 Mbits/sec    0    221 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  5]   0.00-10.06  sec   859 MBytes   716 Mbits/sec    0             sender
[  5]   0.00-10.06  sec  0.00 Bytes  0.00 bits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

[alarm at lime2 Dev]$ sudo ./mmio-dump 0x1c20164
01c20164: 00000006
[alarm at lime2 Dev]$ sudo i2cdump -f -y 0 0x34
No size specified (using byte-data access)
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: c1 10 00 41 00 00 00 00 00 00 00 00 00 00 00 00    ??.A............
10: 05 00 5f 00 00 00 00 00 00 00 00 00 00 00 00 00    ?._.............
20: 00 00 00 1c 00 00 00 16 cb 54 00 00 00 00 00 00    ...?...??T......
30: 60 03 42 c9 45 22 9d 0a a5 1f 68 5f fc 16 00 00    `?B?E"????h_??..
40: 00 00 00 00 60 00 00 00 00 00 00 00 00 00 00 00    ....`...........
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 6c 0a    ..............l?
60: dd 08 3e 08 00 00 00 00 00 00 00 00 00 00 00 00    ??>?............
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 0e    ..............??
80: e0 fd 83 80 32 00 ff 00 00 00 00 00 00 00 00 21    ????2..........!
90: 07 a5 07 07 00 02 00 00 00 00 00 00 00 00 00 00    ????.?..........
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 dd 06    ..............??
b0: 00 00 00 00 00 00 00 00 00 7f 00 ba 00 00 00 00    .........?.?....
c0: 01 01 02 04 07 0d 10 1a 24 2e 35 3d 49 54 5c 63    ????????$.5=IT\c
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
f0: 41 00 80 03 00 00 00 00 00 00 00 00 00 00 00 00    A.??............

Hope this helps to pinepoint the source of the problem ?

Regards,
-- 
François-David Collin


More information about the U-Boot mailing list