Skip to content

arm64: dts: apple: t8132-j773g: don't use the managed radio contract - #3098

Merged
DjDeveloperr merged 1 commit into
mainfrom
fix/j773g-radio-not-managed
Nov 24, 2026
Merged

DjDeveloperr merged 1 commit into
mainfrom
fix/j773g-radio-not-managed

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

What

Drop the inherited J713 managed-radio DT properties (apple,managed-sids, apple,sid16-page, apple,dma-range on &dart_apcie0, and apple,managed-sids on &pcie0) in arch/arm64/boot/dts/apple/t8132-j773g.dts.

On J773g (T8132, Mac mini M4), live Stage 2 register reads of the radio DART (490000000.iommu, right after pcie_init before kboot on 27.2 / 26B123) show the boot chain hands the DART over completely unconfigured: all 19 streams have TCR = 0x1 (translate) with TTBR valid clear, ENABLE_STREAMS = 0, and error/protect/TLB-busy clear. Because apple_dart_managed_admit() only admits SID16 in static bypass or disabled (TCR = 0), 490000000.iommu fails probe with -EBUSY (-16), pcie0 defers indefinitely, and Wi-Fi (brcmfmac / wld0) never comes up (same -16 on 26.6.2).

Dropping those four properties lets Linux reset and own 490000000.iommu and train port 0 itself. All five other T8132 DTBs (j604, j623, j624, j713, j715) are byte-identical.

Related: #1898 includes this same J773g radio hunk alongside port-2 Ethernet; splitting the Wi-Fi fix out unblocks main boots on J773g independently while #1898 resolves its Ethernet review points.

Tested

  • Hardware: J773g (Apple M4 mini, T8132), macOS 27.2 (26B123), Aura Stage 1 b13 g5dcf6 → Stage 2 1.0.0b14-g8b3ba98e (aura#383).
  • Exact head: a80960cf3279f7fb6c2d41c6dde532e924905d58 (t8132-j773g.dtb sha256 01fedddb6cd1b42337c28079bf59704131ecec49cf9c1c8160a5a621d06b86bc), booted with 7.3.0-ARCH-pr2776 (origin/main 645f7cd3589d + #2776, whose DTB differed from a80960cf by only these four deleted properties).
  • Boot & Wi-Fi: apple-dart 490000000.iommu bound cleanly (0 -16/EBUSY, 0 port-0 deferrals), pcie-apple 1cb0000000.pcie port 0 link up in 4 ms, brcmfmac 0000:01:00.0 wld0 connected over Wi-Fi (0% ping loss).
  • s2idle: 1/1 (rtcwake -d /dev/rtc1 -m freeze -s 10, suspend_stats success 0 -> 1), wld0 reconnected cleanly after wake (0% ping loss).
  • Health: display-manager active, 0 failed systemd units, /lib -> usr/lib, 0 BUG/Oops/WARNING/SError/DART faults, 0 new error-level lines vs baseline (the 2 USB genpd_prepare returns -11 lines on s2idle match existing J773g baseline).
  • Host checks: checkpatch 0 errors / 0 warnings; dt-schema 0 new warnings; all 5 other T8132 DTBs byte-identical.

Risk

Scoped strictly to t8132-j773g.dts. Other T8132 boards (j604, j623, j624, j713, j715) produce byte-identical DTBs and cannot regress.

Not yet

  • Deep sleep (mem), Bluetooth (missing calibration blob on this unit), port-2 Ethernet (#1898), and cold boot from full power-off were not exercised in this row.
  • Other T8132 desktops (j623, j624 iMacs) are untouched until tested on hardware.

The J773g gets the J713's managed radio contract from t8132-jxxx.dtsi:
apple,managed-sids on dart_apcie0 and pcie0. Under it the DART admits the
radio's streams only if the boot chain left SID16 in its static bypass,
or disabled with no valid root.

This Mac hands its radio DART over unconfigured. Read in aura's Stage 2
proxy right before kboot, on the 27.2 system firmware (26B123), all 19
streams have TCR 0x1 (translate) with no valid TTBR, ENABLE_STREAMS is 0,
and there are no errors, exceptions or masked errors. SID16 is in neither
admitted state, so apple_dart_managed_admit() returns -EBUSY:
490000000.iommu fails probe with -16, port 0 defers forever and there is
no Wi-Fi. The same -16 shows on the 26.6.2 firmware.

Drop the contract on this board. apple,sid16-page applies only under it,
so drop it too, with the DART's apple,dma-range window. Linux then resets
and owns the radio DART and trains port 0 itself, as on a port without
the contract. The iommu-map is unchanged.

Only the J773g DTB changes. The J604, J623, J624, J713 and J715 DTBs are
byte-identical.

Signed-off-by: Diljit Singh <[email protected]>
@DjDeveloperr
DjDeveloperr requested review from a team as code owners November 24, 2026 23:20
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m4 Macs affected, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at a80960cf: not ready yet

Check Detail
CI at head ok 3 checks passed
Review no approved by satchlj, but GitHub does not count it yet (code owner from Core or Omarchy Mac needed, or approval went stale)
Requested changes ok none
Hardware row at head no no line with the head SHA a80960cf, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text adopt when you next edit add 'one-way' or 'two-way' in Risk (guide)

Areas: area:bringup

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict at a80960cf3279

APPROVE — Clean, tightly scoped J773g DTS fix matching the observed unconfigured radio DART handoff, with green CI and complete exact-head J773g Wi-Fi and s2idle verification.

Blockers

None.

Checked

  • Changed files (1): Audited the full 17-line diff in arch/arm64/boot/dts/apple/t8132-j773g.dts. Deleting the inherited J713 managed-radio properties (apple,managed-sids, apple,sid16-page, apple,dma-range on &dart_apcie0; apple,managed-sids on &pcie0) matches the Stage 2 radio DART register state (TCR = 0x1 translate with TTBR valid clear, ENABLE_STREAMS = 0) so Linux owns and resets 490000000.iommu and trains port 0 directly while keeping iommu-map intact and leaving the other 5 T8132 DTBs byte-identical.
  • Hardware evidence: Reviewed exact-head J773g boot and s2idle row (490000000.iommu bound with 0 -EBUSY, pcie0 link up in 4 ms, brcmfmac/wld0 0% ping loss, s2idle 1/1 with clean Wi-Fi reconnect, 0 failed units, 0 BUG/Oops/WARNING/SError/DART faults).
  • Metadata & CI: 4/4 CI checks passing (dt-checks, host-tests, readiness, pr-text: all SUCCESS); commit carries author Signed-off-by:.
  • Untested scope: No live J773g boot performed during this review; verified by full diff audit, CI results, and author hardware transcript.
Evidence
  • Head commit: a80960cf3279 (1 file changed: arch/arm64/boot/dts/apple/t8132-j773g.dts).
  • CI: 4/4 SUCCESS (dt-checks, host-tests, readiness / readiness, pr-text / pr-text).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) blast:m4 Macs affected, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants