RGMII Dropped

Jetpack: 5.0.2GA
Hardware: a04 module + our custom carrier board

RGMII seems to work fine just when i surf online, but the number of RX dropped continues to increase.
The following is the relevant information, how to locate the problem point, thank you!

  1. RX dropped continues to increase.

orin@nvidia-agx-orin:~$ ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1466
inet 192.168.20.132 netmask 255.255.255.0 broadcast 192.168.20.255
inet6 fe80::60c9:1cf2:d6fb:71e9 prefixlen 64 scopeid 0x20
ether 48:b0:2d:91:62:cc txqueuelen 1000 (Ethernet)
RX packets 1890 bytes 505059 (505.0 KB)
RX errors 0 dropped 413 overruns 0 frame 0
TX packets 1209 bytes 128212 (128.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

orin@nvidia-agx-orin:~$ sudo ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: Symmetric
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: d
Wake-on: d
Link detected: yes
orin@nvidia-agx-orin:~$ ping forums.developer.nvidia.com
PING forums.developer.nvidia.com.zengslb.com (129.227.48.131) 56(84) bytes of data.
64 bytes from 129.227.48.131 (129.227.48.131): icmp_seq=1 ttl=45 time=324 ms
64 bytes from 129.227.48.131 (129.227.48.131): icmp_seq=2 ttl=45 time=316 ms
64 bytes from 129.227.48.131 (129.227.48.131): icmp_seq=3 ttl=45 time=317 ms
64 bytes from 129.227.48.131 (129.227.48.131): icmp_seq=4 ttl=45 time=318 ms
^C
forums.developer.nvidia.com.zengslb.com ping statistics —
5 packets transmitted, 4 received, 20% packet loss, time 4006ms
rtt min/avg/max/mdev = 316.226/318.695/324.351/3.302 ms

2.dmesg
dmesg_rgmii_drop.txt (88.8 KB)

3.dts
dump.dts (431.1 KB)

ethernet@6810000 {
    status = "disabled";
};
ethernet@6910000 {
    status = "disabled";
};
ethernet@6A10000 {
    status = "disabled";
};
ethernet@6B10000 {
    status = "disabled";
};

/* EQOS */
ethernet@2310000 {
    status = "okay";
    nvidia,mac-addr-idx = <0>;
    nvidia,phy-reset-gpio = <&tegra_main_gpio TEGRA234_MAIN_GPIO(G, 5) 0>;
    phy-mode = "rgmii-id";
    phy-handle = <&phy>;

    nvidia,max-platform-mtu = <16383>;

    mdio {
        compatible = "nvidia,eqos-mdio";
        #address-cells = <1>;
        #size-cells = <0>;

        phy: phy@1 {
            reg = <1>;
            nvidia,phy-rst-pdelay-msec = <224>; /* msec */
            nvidia,phy-rst-duration-usec = <10000>; /* usec */

            interrupt-parent = <&tegra_main_gpio>;
            interrupts = <TEGRA234_MAIN_GPIO(G, 4) IRQ_TYPE_LEVEL_LOW>;

            test="0004";
        };

        //fixed-link {
        //        speed = <1000>;
        //        full-duplex;
        //};
    };
};

Which phy is in use?

The phy is RTL8211FI-CG/RTL8211FDI-CG.

Is your issue reproducible on Xavier NX devkit? It is using the same PHY.

Hi, currently, we did not develop on Xavier NX devkit.

Hi,

Could you reproduce this issue with Orin-Orin connection?
And also share the result of sudo ethtool -S eth0 and also tcpdump -i eth0 -w tcpdump.txt?

This issue dose not happen on Orin-Orin connection, there are no “RX dropped” on both Orin modules.
I retry Orin-PublicInternet connection to check differences.

  1. Orin-Orin
    tcpdump_Orin-Orin.txt (25.7 KB)

  2. Orin-PublicInternet
    tcpdump_Orin-PublicInternet.txt (3.2 MB)
    ethtool_Orin-PublicInternet.txt (9.4 KB)

Is this ethtool result dumped after you observe packet drop?

yes

I’m closing this topic due to there is no update from you for a period, assuming this issue was resolved.
If still need the support, please open a new topic. Thanks

Sorry for the late response, have you managed to get issue resolved or still need the support? Thanks