Skip to content

arm64: dts: apple: t6040: map the NHI ring interrupts the right way round - #1212

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
fix/t6040-nhi-ring-irqs
Nov 8, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
fix/t6040-nhi-ring-irqs

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

The T6040 NHI nodes had the TX and RX ring interrupts the wrong way round. The ADT lists each router's NHI interrupts as the higher twelve, then the lower twelve, then SRAM parity (acio0: 1774-1785, 1762-1773, 1791). The lower twelve are the TX rings, which matches the T6050 description that works on the J716c. With the halves swapped, the TX-done interrupt went to the RX handler, which acked the wrong status bit, so the level interrupt never dropped. Every J616s link attempt hung as soon as ring 0 started, and the watchdog reset the SoC 30-60 s later.

This swaps the halves for all three routers. The nodes are still status = "disabled" in this tree, so no board's behaviour changes until the USB4 driver is enabled.

Testing

  • J616s (M4 Pro): one-shot test kernel 7.3.0-aurora-tb2a (integration 14d64c3 plus the USB4 driver and PHY CIO mode) and a one-shot trial Stage 2 whose DTB enables ACIO0 with this mapping. The TB5 cable runs to an M2 on fleet31.
    • Before (four trials): hard hang right after starting RX ring 0, then a watchdog reset.
    • After: the router binds and the M2 shows up as an XDomain host (Linux chloe-mba). Lane bonding is enabled, 20.0 Gb/s on each of 2 lanes in each direction on both sides. thunderbolt-net comes up on both Macs.
    • ping: 5/5, 0.26 ms average. iperf3: J616s to M2 17.9 Gbit/s (one stream) and 15.3 Gbit/s (4 streams); M2 to J616s 19.6 Gbit/s.
    • During the trial: 0 kernel errors, 0 AVCs, 0 failed units, SELinux enforcing.
  • DTBs for t6040-j614s, j616s, j616s-tether, j773s, t6041-j575c and j614c build with dtc. The decompiled j616s DTB differs from the parent only in the three NHI interrupts properties.
  • checkpatch: 0 errors, 0 warnings.

ACIO1 and ACIO2 were not run on hardware; their maps change the same way (TX now starts at 1810 and 1858).

🤖 Generated with Claude Code

…ound

The ADT lists each router's NHI interrupts as twelve higher numbers,
twelve lower ones and the SRAM parity line (acio0: 1774-1785,
1762-1773, 1791). The lower twelve are the TX rings and the higher
twelve the RX rings, as the T6050 router description that works on the
J716c maps them. The T6040 nodes had the two halves the other way
round, so the TX-done interrupt reached the RX handler, which
acknowledged the wrong status bit; the level interrupt never dropped.

The CPU then kept taking the ring interrupt, and the watchdog reset
the SoC shortly after ring 0 started.

Swap the halves for all three routers. With this mapping on ACIO0 the
J616s brings up a USB4 link to an M2 (XDomain, two bonded lanes at
20 Gb/s each way) and thunderbolt-net carries 17.9 Gbit/s one way and
19.6 Gbit/s the other in iperf3. The nodes stay disabled in this tree,
so no board changes behaviour yet.

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant