This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM625: RNDIS throughput low with SR9900AI USB to Ethernet LAN

Part Number: AM625
Other Parts Discussed in Thread: AM5728, AM4378

On the same board with the same USB port. with SR9900 module, the speed is lower compare with other USB to LAN module(SMSC95xx) 

am62x+ SR9900AI: iperf3, throughput low

35015729.jpg

There is not USB error also:

2040250145.jpg

AM62x + SMSC95xx: iperf, throughput normal

am62x_smsc95xx.jpg

RK3576 + SR9900AI, iperf3, normal.

rk3576_sr9900ai.jpg

Test with: Processor_sdk_09_02_01_09(Kernel 6.1.80) and Processor_sdk_08_06_00_42(kernel 5.10.168)

  • Hi Tony,

    In general, the performance of USB-Ethernet devices is highly impacted by the dongle vendor device drivers in the kernel.

    In your test report on AM62x, I noticed the tests used different commands when testing SR9900AI and SMSC95xx, iperf3 vs iperf. I found in the past that those two programs generate different throughput numbers even on the same network device.

    However, the SR9900AI test on both AM62x and RK3576 might be a fair comparison. Do you know the kernel versions running on both processors in the test?

  • Hi Bin,

    Customer tested am6254 with sdk5.10.1689iperf) and sdk6.1.80(iperf3), the result is similar.

    More test with competitor sdk, result are normal.

    RK3576 + Kernel 6.1.115, iperf3

    RK3562 + Kernel 5.10.209. iperf3

    Allwinner T113 +kernel 5.4, iperf3

    am5728 and am4378: iperf,  with SR9900AI, result are low,

    CH397A USB LAN dongle, with AM57x, AM62x, T113, RK3576, all normal.

  • Hi Tony,

    I looked up on Internet but I didn't find anywhere to by an SR9900 usb-ether dongle here.

    I have usb-ether dongles with r8152 and ax88179 chipsets, and I don't see throughput issue with them on AM62x SK running SDK9.2.1.9 default WIC image. The throughput is about 200mbps.

    root@am62xx-evm:~# uname -a
    Linux am62xx-evm 6.1.80-ti-g2e423244f8c0 #1 SMP PREEMPT Wed Mar 20 14:43:33 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
    root@am62xx-evm:~# 
    root@am62xx-evm:~# [  265.426651] usb 1-1: new high-speed USB device number 4 using xhci-hcd
    [  265.786159] r8152-cfgselector 1-1: reset high-speed USB device number 4 using xhci-hcd
    [  265.954086] r8152 1-1:1.0: Direct firmware load for rtl_nic/rtl8153a-2.fw failed with error -2
    [  265.962922] r8152 1-1:1.0: unable to load firmware patch rtl_nic/rtl8153a-2.fw (-2)
    [  266.007390] r8152 1-1:1.0 eth2: v1.12.13
    
    root@am62xx-evm:~# [  268.972038] IPv6: ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready
    [  268.979894] r8152 1-1:1.0 eth2: carrier on
    
    root@am62xx-evm:~# 
    root@am62xx-evm:~# iperf3 -c 10.0.0.10
    Connecting to host 10.0.0.10, port 5201
    [  5] local 10.0.0.19 port 33530 connected to 10.0.0.10 port 5201
    [ ID] Interval           Transfer     Bitrate         Retr  Cwnd
    [  5]   0.00-1.00   sec  23.7 MBytes   199 Mbits/sec    0    146 KBytes       
    [  5]   1.00-2.00   sec  23.4 MBytes   196 Mbits/sec    0    151 KBytes       
    [  5]   2.00-3.00   sec  23.0 MBytes   193 Mbits/sec    0    151 KBytes       
    [  5]   3.00-4.00   sec  23.2 MBytes   195 Mbits/sec    0    151 KBytes       
    [  5]   4.00-5.00   sec  23.1 MBytes   194 Mbits/sec    0    151 KBytes       
    [  5]   5.00-6.00   sec  23.0 MBytes   193 Mbits/sec    0    151 KBytes       
    [  5]   6.00-7.00   sec  23.3 MBytes   195 Mbits/sec    0    151 KBytes       
    [  5]   7.00-8.00   sec  23.1 MBytes   194 Mbits/sec    0    151 KBytes       
    [  5]   8.00-9.00   sec  23.3 MBytes   195 Mbits/sec    0    225 KBytes       
    [  5]   9.00-10.00  sec  23.3 MBytes   196 Mbits/sec    0    225 KBytes       
    - - - - - - - - - - - - - - - - - - - - - - - - -
    [ ID] Interval           Transfer     Bitrate         Retr
    [  5]   0.00-10.00  sec   232 MBytes   195 Mbits/sec    0             sender
    [  5]   0.00-10.05  sec   232 MBytes   193 Mbits/sec                  receiver
    
    iperf Done.
    root@am62xx-evm:~# [  293.836301] r8152-cfgselector 1-1: USB disconnect, device number 4
    [  293.844096] r8152 1-1:1.0 eth2: Stop submitting intr, status -108
    [  303.498764] usb 1-1: new high-speed USB device number 5 using xhci-hcd
    [  303.743007] ax88179_178a 1-1:1.0 eth2: register 'ax88179_178a' at usb-xhci-hcd.4.auto-1, ASIX AX88179 USB 3.0 Gigabit Ethernet, 36:de:d5:f2:b5:5d
    
    root@am62xx-evm:~# [  307.420928] ax88179_178a 1-1:1.0 eth2: ax88179 - Link status is: 1
    [  307.434973] IPv6: ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready
    
    root@am62xx-evm:~# iperf3 -c 10.0.0.10
    Connecting to host 10.0.0.10, port 5201
    [  5] local 10.0.0.18 port 36030 connected to 10.0.0.10 port 5201
    [ ID] Interval           Transfer     Bitrate         Retr  Cwnd
    [  5]   0.00-1.00   sec  23.5 MBytes   197 Mbits/sec    0   74.9 KBytes       
    [  5]   1.00-2.00   sec  23.2 MBytes   195 Mbits/sec    0   94.7 KBytes       
    [  5]   2.00-3.00   sec  23.2 MBytes   195 Mbits/sec    0   94.7 KBytes       
    [  5]   3.00-4.00   sec  23.2 MBytes   194 Mbits/sec    0   94.7 KBytes       
    [  5]   4.00-5.00   sec  23.0 MBytes   193 Mbits/sec    0   94.7 KBytes       
    [  5]   5.00-6.00   sec  23.5 MBytes   197 Mbits/sec    0    129 KBytes       
    [  5]   6.00-7.00   sec  23.1 MBytes   194 Mbits/sec    0    129 KBytes       
    [  5]   7.00-8.00   sec  23.1 MBytes   194 Mbits/sec    0    129 KBytes       
    [  5]   8.00-9.00   sec  23.0 MBytes   193 Mbits/sec    0    129 KBytes       
    [  5]   9.00-10.00  sec  23.3 MBytes   196 Mbits/sec    0    129 KBytes       
    - - - - - - - - - - - - - - - - - - - - - - - - -
    [ ID] Interval           Transfer     Bitrate         Retr
    [  5]   0.00-10.00  sec   232 MBytes   195 Mbits/sec    0             sender
    [  5]   0.00-10.05  sec   232 MBytes   193 Mbits/sec                  receiver
    
    iperf Done.
    root@am62xx-evm:~#