Thor XFI: Hardware DMA/cache synchronization issue causes stale data under concurrent traffic (r38.4.0)

During testing we observed abnormal hardware DMA and cache synchronization on Thor XFI. Under multi-stream concurrent communication, the upper layer receives stale data from the cache. Disabling hardware synchronization and switching to software synchronization resolves the issue. Is this a known problem?

Steps to Reproduce:

  1. On the server side (Ubuntu PC), set the NIC’s gso_max_segs to 1.

  2. Start a curl service on the server, then launch 10 concurrent curl downloads on Thor.

  3. After Thor finishes receiving, the hash comparison fails.

Software Version:
6.8.12-tegra r38.4.0

XFI is not directly validated on AGX Thor. Please share what is your design and how you configured the software first.

And if possible, move to jp7.2.1 because there are still lots of fix to for these merged.

Hardware: MGBE0 <->88Q6113(eth switch)<->YT8531SH(1G PHY)<->RJ45

The kernel ethernet@a808a10000 node was not modified—it was only enabled.

	mgbe0: ethernet@a808a10000 {
		nvidia,mac-addr-idx = <1>;
		nvidia,uphy-gbe-mode = <1>;
		nvidia,phy-iface-mode = <0x0>;
		nvidia,max-platform-mtu = <9000>;
		nvidia,pps_op_ctrl = <8>;
		nvidia,if-name = "mgbe0_0";
		nvidia,force-restart-lane-bringup = <1>;
		nvidia,macsec-enable = <0x0>;
		nvidia,skip_mac_reset = <0>;

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

Reproduction commands

server Ubuntu PC:
mkdir -p /tmp/nettest/files
for i in $(seq -w 1 96); do dd if=/dev/urandom of=/tmp/nettest/files/f$i.bin bs=1M count=200; done
(cd /tmp/nettest/files && sha256sum *.bin > /tmp/nettest/manifest.sha256)
seq -w 1 96 | sed ‘s/^/f/; s/$/.bin/’ > /tmp/nettest/all_names.txt
python3 -m http.server 8000 --directory /tmp/nettest &
curl -s -o /dev/null -w “%{http_code}\n” http://192.168.10.100:8000/manifest.sha256
sudo ip link set dev enx6c1ff7d07420 gso_max_segs 1

thor:
mkdir -p /tmp/ntdl && cd /tmp/ntdl
curl -sO http://192.168.10.100:8000/manifest.sha256
curl -sO http://192.168.10.100:8000/all_names.txt
wc -l all_names.txt
nstat -az | grep TcpInCsumErrors
xargs -P 16 -I{} curl -sO http://192.168.10.100:8000/files/{} < all_names.txt
nstat -az | grep TcpInCsumErrors
sha256sum -c manifest.sha256 | grep -c FAILED

What is the symptom when issue happened? TcpInCsumErrors increasing?

No errors are reported during transmission, and TcpInCsumErrors stays at 0 throughout, but the final file hash verification fails. tcpdump shows that stale data from the cache is being received. When a Mac is used as the server, the issue is reproducible by default without any NIC configuration changes.

please has there been any progress on this issue?

Could you please help confirm whether this issue is a known internal bug? The driver ether_linux.c contains the following comment:
/* Enable Rx csum offload only for EQOS until the

 *\* HW WAR sequence is clear for MGBE - to avoid data*

 *\* data corruption issue in Bug 4486046. Check if DT*

 *\* prop is provided to disable Rx csum for MGBE.*

 *\*/*

No, this is not any known issue. Is this issue able to reproduce with the QSFP on Thor devkit?

Can the MCP1600-E001E30 be used to test this issue? The Jetson_Thor_Series_SCL_DA-12429-001_v1.5.pdf indicates that stability is not guaranteed.

Jetson_Thor_Series_SCL_DA-12429-001_v1.5.pdf (90.7 KB)

Could you help confirm this?

So you don’t know if NV devkit could reproduce this issue or not? That is the question I would like to know for now.

We tested the optical modules on the development kit using different SDK versions, L4T 38.4.0 and L4T 39.2.1, and confirmed that the same issue occurs on both.

Could you share the full step by step commands to reproduce this issue on NV devkit?

Ubuntu PC: netdev: enx6c1ff7d07420 Ip: 192.168.10.100
mkdir -p /tmp/nettest/files
for i in $(seq -w 1 96); do dd if=/dev/urandom of=/tmp/nettest/files/f$i.bin bs=1M count=200; done
(cd /tmp/nettest/files && sha256sum *.bin > /tmp/nettest/manifest.sha256)
seq -w 1 96 | sed ‘s/^/f/; s/$/.bin/’ > /tmp/nettest/all_names.txt
python3 -m http.server 8000 --directory /tmp/nettest &
curl -s -o /dev/null -w “%{http_code}\n” http://192.168.10.100:8000/manifest.sha256
sudo ip link set dev enx6c1ff7d07420 gso_max_segs 1

thor: netdev:mgbe1_0 Ip:192.168.10.10
mkdir -p /tmp/ntdl && cd /tmp/ntdl
curl -sO http://192.168.10.100:8000/manifest.sha256
curl -sO http://192.168.10.100:8000/all_names.txt
wc -l all_names.txt
nstat -az | grep TcpInCsumErrors
xargs -P 16 -I{} curl -sO http://192.168.10.100:8000/files/{} < all_names.txt
nstat -az | grep TcpInCsumErrors
sha256sum -c manifest.sha256 | grep -c FAILED

We will try with Thor to Thor connection with above commands. Thanks for sharing.

Hi,

How is the reproduce rate of this? We tried to check once with 96 files transferred but there is no TCP checksum error.

Is it according to the command I provided? Especially the PC-side setting sudo ip link set dev enx6c1ff7d07420 gso_max_segs 1 — using the provided command, the issue is reproduced almost 100% of the time.

 ip -d link show mgbe0_0 | grep gso_max_segs
    link/ether 3c:6d:66:e4:07:87 brd ff:ff:ff:ff:ff:ff promiscuity 0  allmulti 0 minmtu 68 maxmtu 9000 addrgenmode none numtxqueues 4 numrxqueues 4 gso_max_size 65536 gso_max_segs 1 tso_max_size 65536 tso_max_segs 65535 gro_max_size 65536 parentbus platform parentdev a808a10000.ethernet

We are using Thor to Thor connection instead of a x86 PC.

Not sure if related.

TCP checksum errors do not increase, but the final file hash verification fails — when the issue occurs, the command "sha256sum -c manifest.sha256 | grep -c FAILED" will ultimately report FAILED.