Hello,
I bumped my yocto distribution to the jetpack 5.1.2. This includes a kernel version bump from 4.9 to 5.10.
I realized that with an iperf test, the lan78xx USB was losing around 70% of packets in udp mode. A kernel trace " NETDEV WATCHDOG: lan1 (lan78xx): transmit queue 0 timed out" also arriving after some time of iperf test.
The ethernet principal interface is also losing the same amount of packets.
This issue was not seen on the 4.9 kernel.
I also tested with the ubuntu version of jetpack 5.1.2, I have still around 25 % of lots packets after adding the fix mentioned here: Jetson Xavier and LAN7800 problem.
The ethernet principal interface is not losing any packets.
The yocto kernel is using the same sources, the same config and the same device-tree as the ubuntu distribution.
I am using the jetson xavier nx EVK emmc.
I have also tested the lan78xx driver from mainline master kernel and also from 4.9 linux-tegra with the same results on ubuntu and yocto distribution.
Are you aware of such issues ? Are there any changes in 5.10 kernel in the ethernet stack that could lead to this issue ?
Thank you
No, we are not aware of this issue.
Please try to reproduce with NV devkit + pure sdkm image and share us the dmesg and steps to reproduce this issue.
Thanks Wayne for the quick response.
Find attached the dmesg.
The only modification in the driver is the one describe here (Jetson Xavier and LAN7800 problem - #11 by Seplus). Otherwise, the driver is not able to detect if a cable is plugged or not.
The step to reproduce:
- Plug the lan78xx usb
- Launch
iperf -s
on a PC
- Launch
iperf3 -c <ip of PC> -u -R -b 0 -t 30
dmesg_evk_nvidia.txt (66.5 KB)
Does this dmesg also include the packet drop situation?
Could you check if running with jetson_clocks enabled is able to make the packet loss disappeared or at least enhanced?
It did not change the packet loss:
$ sudo jetson_clocks --show
SOC family:tegra194 Machine:NVIDIA Jetson Xavier NX Developer Kit
Online CPUs: 0-3
cpu0: Online=1 Governor=schedutil MinFreq=1190400 MaxFreq=1907200 CurrentFreq=1907200 IdleStates: C1=1 c6=1
cpu1: Online=1 Governor=schedutil MinFreq=1190400 MaxFreq=1907200 CurrentFreq=1907200 IdleStates: C1=1 c6=1
cpu2: Online=1 Governor=schedutil MinFreq=1190400 MaxFreq=1907200 CurrentFreq=1420800 IdleStates: C1=1 c6=1
cpu3: Online=1 Governor=schedutil MinFreq=1190400 MaxFreq=1907200 CurrentFreq=1497600 IdleStates: C1=1 c6=1
cpu4: Online=0 Governor=schedutil MinFreq=1190400 MaxFreq=1907200 CurrentFreq=1907200 IdleStates: C1=1 c6=1
cpu5: Online=0 Governor=schedutil MinFreq=1190400 MaxFreq=1907200 CurrentFreq=1907200 IdleStates: C1=1 c6=1
GPU MinFreq=114750000 MaxFreq=510000000 CurrentFreq=114750000
EMC MinFreq=204000000 MaxFreq=1600000000 CurrentFreq=1600000000 FreqOverride=0
DLA0_CORE: Online=1 MinFreq=0 MaxFreq=896000000 CurrentFreq=896000000
DLA0_FALCON: Online=1 MinFreq=0 MaxFreq=524800000 CurrentFreq=524800000
DLA1_CORE: Online=1 MinFreq=0 MaxFreq=896000000 CurrentFreq=896000000
DLA1_FALCON: Online=1 MinFreq=0 MaxFreq=524800000 CurrentFreq=524800000
PVA0_VPS0: Online=1 MinFreq=0 MaxFreq=550400000 CurrentFreq=550400000
PVA0_VPS1: Online=1 MinFreq=0 MaxFreq=550400000 CurrentFreq=550400000
PVA0_AXI: Online=1 MinFreq=0 MaxFreq=409600000 CurrentFreq=409600000
PVA1_VPS0: Online=1 MinFreq=0 MaxFreq=550400000 CurrentFreq=550400000
PVA1_VPS1: Online=1 MinFreq=0 MaxFreq=550400000 CurrentFreq=550400000
PVA1_AXI: Online=1 MinFreq=0 MaxFreq=409600000 CurrentFreq=409600000
CVNAS MinFreq=0 MaxFreq=460800000 CurrentFreq=460800000
FAN Dynamic Speed control=active hwmon4_pwm1=0
NV Power Mode: MODE_10W_DESKTOP
$ sudo jetson_clocks
$ iperf3 -c 192.168.216.85 -u -R -b 0 -t 30
Connecting to host 192.168.216.85, port 5201
Reverse mode, remote host 192.168.216.85 is sending
[ 5] local 192.168.216.54 port 54374 connected to 192.168.216.85 port 5201
[ ID] Interval Transfer Bitrate Jitter Lost/Total Datagrams
[ 5] 0.00-1.00 sec 85.1 MBytes 714 Mbits/sec 0.020 ms 21019/82632 (25%)
[ 5] 1.00-2.00 sec 83.1 MBytes 697 Mbits/sec 0.042 ms 20086/80269 (25%)
[ 5] 2.00-3.00 sec 80.8 MBytes 678 Mbits/sec 0.016 ms 19364/77849 (25%)
[ 5] 3.00-4.00 sec 85.7 MBytes 719 Mbits/sec 0.017 ms 20539/82590 (25%)
[ 5] 4.00-5.00 sec 85.5 MBytes 718 Mbits/sec 0.017 ms 20650/82594 (25%)
[ 5] 5.00-6.00 sec 85.2 MBytes 715 Mbits/sec 0.022 ms 20900/82584 (25%)
[ 5] 6.00-7.00 sec 84.9 MBytes 713 Mbits/sec 0.018 ms 21092/82605 (26%)
[ 5] 7.00-8.00 sec 85.6 MBytes 718 Mbits/sec 0.019 ms 20637/82592 (25%)
[ 5] 8.00-9.00 sec 84.0 MBytes 705 Mbits/sec 0.017 ms 21637/82499 (26%)
[ 5] 9.00-10.00 sec 84.2 MBytes 707 Mbits/sec 0.017 ms 20201/81208 (25%)
[ 5] 10.00-11.00 sec 85.8 MBytes 720 Mbits/sec 0.021 ms 20456/82570 (25%)
[ 5] 11.00-12.00 sec 85.7 MBytes 719 Mbits/sec 0.019 ms 20521/82590 (25%)
[ 5] 12.00-13.00 sec 67.4 MBytes 566 Mbits/sec 0.019 ms 16180/65007 (25%)
[ 5] 13.00-14.00 sec 85.6 MBytes 718 Mbits/sec 0.018 ms 20641/82593 (25%)
[ 5] 14.00-15.00 sec 44.4 MBytes 372 Mbits/sec 0.043 ms 10631/42772 (25%)
[ 5] 15.00-16.00 sec 59.3 MBytes 497 Mbits/sec 0.017 ms 14203/57116 (25%)
[ 5] 16.00-17.00 sec 79.0 MBytes 663 Mbits/sec 0.014 ms 19220/76418 (25%)
[ 5] 17.00-18.00 sec 84.5 MBytes 709 Mbits/sec 0.016 ms 21396/82596 (26%)
[ 5] 18.00-19.00 sec 83.9 MBytes 704 Mbits/sec 0.014 ms 21812/82591 (26%)
[ 5] 19.00-20.00 sec 85.7 MBytes 719 Mbits/sec 0.016 ms 20545/82596 (25%)
[ 5] 20.00-21.00 sec 84.0 MBytes 705 Mbits/sec 0.014 ms 20018/80860 (25%)
[ 5] 21.00-22.00 sec 85.3 MBytes 716 Mbits/sec 0.014 ms 20809/82576 (25%)
[ 5] 22.00-23.00 sec 82.3 MBytes 690 Mbits/sec 0.018 ms 23025/82611 (28%)
[ 5] 23.00-24.00 sec 85.8 MBytes 719 Mbits/sec 0.015 ms 20488/82592 (25%)
[ 5] 24.00-25.00 sec 85.4 MBytes 717 Mbits/sec 0.015 ms 20724/82590 (25%)
[ 5] 25.00-26.00 sec 85.4 MBytes 716 Mbits/sec 0.018 ms 20764/82595 (25%)
[ 5] 26.00-27.00 sec 85.5 MBytes 718 Mbits/sec 0.017 ms 20645/82594 (25%)
[ 5] 27.00-28.00 sec 85.3 MBytes 716 Mbits/sec 0.017 ms 20802/82579 (25%)
[ 5] 28.00-29.00 sec 85.2 MBytes 715 Mbits/sec 0.020 ms 20922/82605 (25%)
[ 5] 29.00-30.00 sec 85.6 MBytes 718 Mbits/sec 0.023 ms 20584/82596 (25%)
[ ID] Interval Transfer Bitrate Jitter Lost/Total Datagrams
[ 5] 0.00-30.01 sec 3.21 GBytes 918 Mbits/sec 0.000 ms 0/2378560 (0%) sender
[ 5] 0.00-30.00 sec 2.40 GBytes 687 Mbits/sec 0.023 ms 600511/2378469 (25%) receiver
iperf Done.
$ sudo jetson_clocks --show
SOC family:tegra194 Machine:NVIDIA Jetson Xavier NX Developer Kit
Online CPUs: 0-3
cpu0: Online=1 Governor=schedutil MinFreq=1907200 MaxFreq=1907200 CurrentFreq=1907200 IdleStates: C1=0 c6=0
cpu1: Online=1 Governor=schedutil MinFreq=1907200 MaxFreq=1907200 CurrentFreq=1907200 IdleStates: C1=0 c6=0
cpu2: Online=1 Governor=schedutil MinFreq=1907200 MaxFreq=1907200 CurrentFreq=1907200 IdleStates: C1=0 c6=0
cpu3: Online=1 Governor=schedutil MinFreq=1907200 MaxFreq=1907200 CurrentFreq=1907200 IdleStates: C1=0 c6=0
cpu4: Online=0 Governor=schedutil MinFreq=1907200 MaxFreq=1907200 CurrentFreq=1907200 IdleStates: C1=0 c6=0
cpu5: Online=0 Governor=schedutil MinFreq=1907200 MaxFreq=1907200 CurrentFreq=1907200 IdleStates: C1=0 c6=0
GPU MinFreq=510000000 MaxFreq=510000000 CurrentFreq=510000000
EMC MinFreq=204000000 MaxFreq=1600000000 CurrentFreq=1600000000 FreqOverride=1
DLA0_CORE: Online=1 MinFreq=0 MaxFreq=896000000 CurrentFreq=896000000
DLA0_FALCON: Online=1 MinFreq=0 MaxFreq=524800000 CurrentFreq=524800000
DLA1_CORE: Online=1 MinFreq=0 MaxFreq=896000000 CurrentFreq=896000000
DLA1_FALCON: Online=1 MinFreq=0 MaxFreq=524800000 CurrentFreq=524800000
PVA0_VPS0: Online=1 MinFreq=0 MaxFreq=550400000 CurrentFreq=550400000
PVA0_VPS1: Online=1 MinFreq=0 MaxFreq=550400000 CurrentFreq=550400000
PVA0_AXI: Online=1 MinFreq=0 MaxFreq=409600000 CurrentFreq=409600000
PVA1_VPS0: Online=1 MinFreq=0 MaxFreq=550400000 CurrentFreq=550400000
PVA1_VPS1: Online=1 MinFreq=0 MaxFreq=550400000 CurrentFreq=550400000
PVA1_AXI: Online=1 MinFreq=0 MaxFreq=409600000 CurrentFreq=409600000
CVNAS MinFreq=0 MaxFreq=460800000 CurrentFreq=460800000
FAN Dynamic Speed control=active hwmon4_pwm1=0
NV Power Mode: MODE_10W_DESKTOP`