Hi Mika, Yehezkel, Before I send patches I would like to check my understanding of a ThunderboltIP interoperability problem, and ask how you would like it handled. Setup: Linux: AMD Rembrandt USB4 host, NHI 1022:162e, kernel 7.2 (also built against net-next) Mac: MacBook Pro M5 (Mac17,2), macOS 27.0.1, XDomain vendor 0x0a27 device 0x000a, link 2 x 20 Gb/s Symptom: the XDomain handshake and ThunderboltIP login complete and thunderbolt0 comes up, but no data gets through in either direction. Every frame from the Mac completes with RING_DESC_CRC_ERROR, and the Mac silently drops every frame Linux sends. What I found by putting the Rx ring in raw mode (no RING_FLAG_FRAME) and capturing what the Mac sends: - Each frame arrives as Thunderbolt packets of up to 256 bytes with PDF 1 (start), 0 (middle) and 2 (end). A frame that fits into one packet has PDF 2 only. - After the payload comes one CRC32C per frame (init ~0, reflected, xorout ~0), the same CRC the control channel uses, but stored little-endian. ctl.c writes it big-endian. All 17 captured frames match the little-endian CRC and none match the big-endian one. So the frame mode CRC on this AMD host and the Mac disagree on byte order. What I cannot tell from here is which side is the odd one: 1. Is the frame mode CRC byte order fixed by the USB4 spec, and do you know whether Intel hosts behave the same as this AMD one? I only have this one Linux machine and this one Mac. If Linux to Apple silicon networking works on Intel hosts, the problem is AMD-specific (and maybe a missing NHI setting) rather than an Apple quirk. 2. Is there a way to make the host router use the other byte order in frame mode? I found nothing in nhi_regs.h, and I do not have the AMD documentation. 3. If neither works, would a software path be acceptable upstream? I have a working prototype: both rings raw, and the driver splits frames into 256-byte packets, appends the little-endian CRC on Tx, and reassembles and checks the CRC on Rx. It is opt-in and the default path is unchanged. How should it be enabled? I would rather not add a module parameter. Would keying on the XDomain vendor/device (and maybe the host NHI) be the right approach? Prototype status, so you know what to expect: pings of 56 to 16000 bytes and transfers of up to 512 MiB in both directions with matching SHA-256. Linux to Mac reaches about 3.7 Gbit/s. Mac to Linux is only about 45 Mbit/s, with some frames lost, because each 256-byte raw packet takes a full Rx ring slot and the ring only holds 64 KiB. I have not yet looked at how Rx E2E behaves with raw rings, which may be related given the recent Tx E2E revert (1881f2efbf7f). A separate, smaller issue with the same Mac: after thunderbolt_net is reloaded, macOS answers the old instance's logout with a logout of its own once the new instance is up. The driver then waits for the remote host to log in again, macOS waits for us, and the link stays down until the cable is replugged. Restarting login from tbnet_disconnect_work() while the interface is up fixes it. I will send that as its own patch. Unrelated to the CRC, but in case it matters: once logged in, the Mac sends an XDomain properties changed request about every 1.5 seconds, and we re-read its properties each time, for as long as the link is up. Below is an excerpt of a log from the stock 7.2 driver (thunderbolt and thunderbolt_net with dyndbg=+p) after replugging the cable, followed by the counters after 8 failed pings. I can send the full log, the raw captures, the CRC check script and the prototype if they are useful. I searched the archives and found no earlier report of this. The closest is a CachyOS report of no traffic between an ASM4242 host and macOS, which may or may not be the same problem. Thanks, Felipe Log excerpt: [20798.483382] thunderbolt 0-2: new host found, vendor=0xa27 device=0xa [20798.483596] thunderbolt 0-2: Apple Inc. Mac17,2 [20798.504624] thunderbolt-net 0-2.0 thunderbolt0: login started [20798.581037] thunderbolt-net 0-2.0 thunderbolt0: remote login request received [20799.506134] thunderbolt-net 0-2.0 thunderbolt0: sending login request, retries=0 [20799.690033] thunderbolt-net 0-2.0 thunderbolt0: received login reply [20799.690519] thunderbolt-net 0-2.0 thunderbolt0: login successful, enabling paths [20799.691317] thunderbolt 0000:e6:00.5: enabling E2E for RX ring 1 with TX HopID 1 [20799.694029] thunderbolt-net 0-2.0 thunderbolt0: network traffic started [...] [20800.338054] thunderbolt 0-2: running state PROPERTIES [20800.675074] thunderbolt 0000:e6:00.5: 2: received XDomain properties changed request [20800.778054] thunderbolt 0-2: running state ENUMERATED [20801.810123] thunderbolt 0-2: running state PROPERTIES [20802.177047] thunderbolt 0000:e6:00.5: 2: received XDomain properties changed request [20802.282046] thunderbolt 0-2: running state ENUMERATED [... repeats every ~1.5 s] 21: thunderbolt0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000 link/ether 02:76:86:8a:82:8f brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped missed mcast 0 0 79 0 0 0 RX errors: length crc frame fifo overrun 0 79 0 0 0 TX: bytes packets errors dropped carrier collsns 4403 39 0 17 0 0 TX errors: aborted fifo window heartbt transns 0 0 0 0 2