Other Parts Discussed in Thread: TMDXSK437X
Hi Sitara support Team,
Related the following thread, my customer is facing the packet loss.
e2e.ti.com/.../3183488
[Check list items]
processors.wiki.ti.com/.../5x_CPSW
-Kernel version and source, also include the results of this command: uname -a
Linux am437x-evm 4.19.38-g4dae378bbe #155 PREEMPT Mon Nov 11 09:38:02 JST 2019 armv7l GNU/Linux
-File system, TI SDK or Arago/Yocto based filesystem
targetNFS; NFS boot
-Custom board or TI board? Please include device tree source file.
TMDXSK437X
-ifconfig <interface such as eth0 or eth1>
root@am437x-evm:/home# ifconfig eth0 Link encap:Ethernet HWaddr 00:80:B3:71:20:7B inet addr:192.168.200.1 Bcast:192.168.200.255 Mask:255.255.255.0 inet6 addr: fe80::280:b3ff:fe71:207b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1456725 errors:0 dropped:0 overruns:0 frame:0 TX packets:1362267 errors:13 dropped:17 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2009790566 (1.8 GiB) TX bytes:1969445225 (1.8 GiB) Interrupt:43 eth1 Link encap:Ethernet HWaddr 00:80:B3:71:20:7C inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0 inet6 addr: fe80::280:b3ff:fe71:207c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2493884 errors:0 dropped:0 overruns:0 frame:0 TX packets:1709897 errors:5 dropped:5 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2573924347 (2.3 GiB) TX bytes:2528802376 (2.3 GiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:124 errors:0 dropped:0 overruns:0 frame:0 TX packets:124 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:13116 (12.8 KiB) TX bytes:13116 (12.8 KiB)
Here is the test Environment;
-Host: server PC,
-Client: TI:AM3358SK board
-LAN 1ch TCP communication (16MB data TX/RX)
Result;
"Rx Start of Frame Overruns" counts up.
Please refer the log of "ethtool", "cat /proc/sys/net/core/rmem_max",
"cat /proc/sys/net/core/rmem_default", "cat /proc/net/snmp".
cat /proc/sys/net/core/rmem_max 163840 cat /proc/sys/net/core/rmem_default 163840 cat /proc/sys/net/core/rmem_max 163840 cat /proc/sys/net/core/rmem_default 163840 cat /proc/net/snmp Ip: Forwarding DefaultTTL InReceives InHdrErrors InAddrErrors ForwDatagrams InUnknownProtos InDiscards InDelivers OutRequests OutDiscards OutNoRoutes ReasmTimeout ReasmReqds ReasmOKs ReasmFails FragOKs FragFails FragCreates Ip: 2 64 1666056 0 0 0 0 0 1666056 2234203 0 0 0 0 0 0 0 0 0 Icmp: InMsgs InErrors InCsumErrors InDestUnreachs InTimeExcds InParmProbs InSrcQuenchs InRedirects InEchos InEchoReps InTimestamps InTimestampReps InAddrMasks InAddrMaskReps OutMsgs OutErrors OutDestUnreachs OutTimeExcds OutParmProbs OutSrcQuenchs OutRedirects OutEchos OutEchoReps OutTimestamps OutTimestampReps OutAddrMasks OutAddrMaskReps Icmp: 2 0 0 0 0 0 0 0 0 2 0 0 0 0 2 0 0 0 0 0 0 2 0 0 0 0 0 IcmpMsg: InType0 OutType8 IcmpMsg: 2 2 Tcp: RtoAlgorithm RtoMin RtoMax MaxConn ActiveOpens PassiveOpens AttemptFails EstabResets CurrEstab InSegs OutSegs RetransSegs InErrs OutRsts InCsumErrors Tcp: 1 200 120000 -1 9 8 0 1 1 1665979 2234058 0 0 8 0 Udp: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors InCsumErrors Udp: 10 0 0 10 0 0 0 UdpLite: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors InCsumErrors UdpLite: 0 0 0 0 0 0 0 ethtool -S eth0 NIC statistics: Good Rx Frames: 1667934 Broadcast Rx Frames: 68 Multicast Rx Frames: 14 Pause Rx Frames: 0 Rx CRC Errors: 0 Rx Align/Code Errors: 0 Oversize Rx Frames: 0 Rx Jabbers: 0 Undersize (Short) Rx Frames: 0 Rx Fragments: 0 Rx Octets: 2250244253 Good Tx Frames: 2234223 Broadcast Tx Frames: 149 Multicast Tx Frames: 0 Pause Tx Frames: 0 Deferred Tx Frames: 0 Collisions: 0 Single Collision Tx Frames: 0 Multiple Collision Tx Frames: 0 Excessive Collisions: 0 Late Collisions: 0 Tx Underrun: 0 Carrier Sense Errors: 0 Tx Octets: 2339581508 Rx + Tx 64 Octet Frames: 301 Rx + Tx 65-127 Octet Frames: 920938 Rx + Tx 128-255 Octet Frames: 87 Rx + Tx 256-511 Octet Frames: 157 Rx + Tx 512-1023 Octet Frames: 25 Rx + Tx 1024-Up Octet Frames: 2980649 Net Octets: 294858465 Rx Start of Frame Overruns: 1991 Rx Middle of Frame Overruns: 0 Rx DMA Overruns: 1991 Rx DMA chan: head_enqueue: 1 Rx DMA chan: tail_enqueue: 1665992 Rx DMA chan: pad_enqueue: 0 Rx DMA chan: misqueued: 76 Rx DMA chan: desc_alloc_fail: 0 Rx DMA chan: pad_alloc_fail: 0 Rx DMA chan: runt_receive_buf: 0 Rx DMA chan: runt_transmit_buf: 0 Rx DMA chan: empty_dequeue: 0 Rx DMA chan: busy_dequeue: 454591 Rx DMA chan: good_dequeue: 1665929 Rx DMA chan: requeue: 28 Rx DMA chan: teardown_dequeue: 0 Tx DMA chan: head_enqueue: 1090146 Tx DMA chan: tail_enqueue: 1144077 Tx DMA chan: pad_enqueue: 0 Tx DMA chan: misqueued: 57621 Tx DMA chan: desc_alloc_fail: 0 Tx DMA chan: pad_alloc_fail: 0 Tx DMA chan: runt_receive_buf: 0 Tx DMA chan: runt_transmit_buf: 122 Tx DMA chan: empty_dequeue: 1443565 Tx DMA chan: busy_dequeue: 446485 Tx DMA chan: good_dequeue: 2234223 Tx DMA chan: requeue: 1097574 Tx DMA chan: teardown_dequeue: 0
Questions;
1. Regarding "Rx Start of Frame Overruns" in the log,
does it mean the count value of "15.3.2.20.1.11 Rx Start of Frame Overruns" in TRM?
2. If there are packet drops due to the frame overrun or the FIFO restriction in CPDMA,
is there any workaround for this?
Any advises or suggestions would be appreciated.
Best regards,
Kanae