Skip to content

arm64: dts: apple: t6041-j575c: describe dcpext3 - #3295

Merged
RyanTheTide merged 2 commits into
aurora-silicon:mainfrom
7robertodantas:j575c-dcpext3
Nov 27, 2026
Merged

RyanTheTide merged 2 commits into
aurora-silicon:mainfrom
7robertodantas:j575c-dcpext3

Conversation

@7robertodantas

@7robertodantas 7robertodantas commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What: Describe the J575c's fourth external display processor, dcpext3, with a route to each of its four back Type-C ports, as the J614c/J616c do since #1793. The display gate's dcpext3 chain now takes its routes from the device tree instead of a three-route list, requiring a present, non-empty typec-routes container in both readiness and apply. iBoot starts dcpext3 on this Mac too, and until now Linux left it running unbound.
Tested: J575c (Mac Studio M4 Max) at f0ea546fae42 (unmodified head DTB, default Arch cmdline, aura 1.0.0b14.1 Stage 2): dcpext3 binds with all four routes okay, all four external DCPs bound and booted, 0 failed units, 0 new kernel warnings/errors, s2idle 1/1 (rtc0), and USB-C display unplug/replug back at 2560x1440 with 0 new warnings/errors. Earlier test-only tree with dcpext1/2 off drove 2560x1440 directly on dcpext3. Display-gate KUnit on arm64 QEMU: 79 tests, 73 passed, 6 skipped (4-route positive control + missing/empty typec-routes negative controls).
Risk: two-way door · J575c, plus the J614c/J616c dcpext3 chain in the display gate (same nodes in the same order; covered by their KUnit tree, not run on those Macs)
Not yet: a J614c/J616c peer run, three USB-C displays at once (one adapter here), replug directly on dcpext3 (current-head replug was on dcpext1 with dcpext3 bound alongside it), dcpext3 on ports other than typec1.

Details
  • DT (t6041-j575c-usbc-dcpext3.dtsi): t6041-j616c-usbc-dcpext3.dtsi with the fourth route added (route@3 to typec3, atcphy3, atcphy3_xbar), the same way the J575c's dcpext2 file extends the J616c's. Checked against this Mac's ADT (macOS 27.2.1): /arm-io/dcpext3 at the J616c's address (coproc 0x306e00000), mailbox IRQs 1434-1437, dart-dcpext3/dart-dispext3 at 0x306340000/0x306300000 with IRQ 1381, external-index 4, iop-dcpext3-nub pre-loaded 1 running 1, pmgr bwr-agent DISP_EXT3 in slot 6 (apple,bw-scratch 0x38000), dp-switch-ufp-endpoint 3 (crossbar state 6). Everything is disabled, as for dcpext1/2.
  • Display gate: the M4 Max dcpext3 chain listed three routes by path, one per J614c/J616c USB-C port. It now enables every child of /dcp@306e00000/typec-routes, just before the processor, as the listed routes were. When dt_routes is set, both staged_ready() and t6041_max_enable_routes() require a present, non-empty typec-routes container (and staged_ready() requires every route still disabled), so an incomplete or stale DTB leaves the entire chain and /display-subsystem iommus untouched. On the J614c/J616c that enables the same nodes in the same order; the J575c gets its fourth route with no board check. The chains for dcpext0-2 are unchanged.
  • KUnit: the T6041 Max chain check covers routes taken from the tree. gate_t6041_max_dt_routes adds a fourth route and verifies it comes up with the chain; gate_t6041_max_dt_routes_missing and gate_t6041_max_dt_routes_empty verify that a missing or empty typec-routes container refuses both gate_t6041_max_run() and direct t6041_max_apply() (-ENODEV) and leaves all chain nodes and /display-subsystem untouched.
  • Loader: aura's t6041_exts fills dcpext3's firmware memory on any T6041 tree that describes /dcp@306e00000 since kboot: T6041: hand over dcpext3 firmware memory aura#212 (1.0.0b14 and later). With an older aura the gate leaves the chain off and logs /dcp@306e00000: no firmware memory, nothing enabled once, as on the J614c/J616c since arm64: dts: apple: t6041-j614c-j616c: dcpext3 for a third USB-C display #1793.
Evidence

Exact-head standalone build: 7.3.0-1-130-ARCH = cec0503a5a02 + these two commits (1a0ebea2d713, f0ea546fae42), unmodified head t6041-j575c.dtb, default Arch cmdline. Stage 2: packaged aura 1.0.0b14.1 (1.0.0b14-g3ff77894) via one-shot aura-try under installed 1.0.0b13 Stage 1, U-Boot unchanged. HDMI (dcpext0) and one USB-C to DisplayPort display connected throughout.

Boot Kernel / DTB Result
A: head (k130) f0ea546fae42 / its DTB /dcp@306e00000 enabled, route@0-route@3 okay, 306e00000.dcp bound and booted, all four external DCPs bound, HDMI-A-1 + DP-2 (dcpext1) active at 2560x1440, 0 failed units, 0 new kernel warnings/errors, s2idle 1/1 (rtcwake -m freeze -s 15, rtc0, same boot_id, both displays back)
A: USB-C replug f0ea546fae42 / its DTB Physical USB-C display unplug (~3 s) and replug on k130: 602e00000.dcp clean unplug (connected:0) and replug (connected:1), DP-2 back at 2560x1440 (visually confirmed), HDMI-A-1 unaffected, 0 new kernel warnings/errors, 0 failed units
B: earlier test-only 779540574172 lineage, dcpext1/2 memory-region omitted + crossbars enabled (test only) USB-C display driven directly by dcpext3: 38b24c000.mux: dpphy: T602X route 6, allocated Type-C DPTX PHY 1, dcp_hotplug() connected:1 ... nr_modes:22, CRTC active 2560x1440@60; s2idle 1/1 with CRTC active after wake
C: baseline clean base / main J575c DTB (no dcpext3) three DCPs bound, 0 failed units
apple-t6041-display: /dcp@3a2e00000 enabled
apple-t6041-display: /dcp@602e00000 enabled
apple-t6041-display: /dcp@606e00000 enabled
apple-t6041-display: /dcp@306e00000 enabled
apple-dcp 306e00000.dcp: coprocessor handoff: CPU_CONTROL 0x10 CPU_STATUS 0x6c
apple-drm display-subsystem: bound 306e00000.dcp (ops dcp_comp_ops [appledrm])
apple-dcp 306e00000.dcp: RTKit: Initializing (protocol version 12)
apple-dcp 306e00000.dcp: DCP booted

Checks run locally on f0ea546fae42 (base cec0503a5a02):

  • Display-gate KUnit (arm64 QEMU, LLVM): 79 tests, 73 passed, 6 skipped (gate_t6041_max_dt_routes, gate_t6041_max_dt_routes_missing, and gate_t6041_max_dt_routes_empty all pass). Control run with display-gate.c reverted to 3b0d38c1a: 79 tests, 71 passed, 2 failed (gate_t6041_max_dt_routes_missing and gate_t6041_max_dt_routes_empty), 6 skipped.
  • defconfig + asahi.config (LLVM=1): display-gate.o W=1 0 warnings; t6041-j575c/j614c/j616c DTBs 0 warnings; full kernel build 43 warnings (same as baseline).
  • checkpatch.pl --strict --no-tree: 0/0/0 (1a0ebea2d713), 0/1/0 (f0ea546fae42: new-file MAINTAINERS notice only; Apple glob covers the file).
  • DT checks: DTS diff vs 3b0d38c1a is empty; apple-dt-check.sh 0 new warnings, ADT coverage, DART power domains, and sibling drift unchanged.

@7robertodantas
7robertodantas requested review from a team as code owners November 26, 2026 18:35
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Merge readiness at f0ea546f: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text, DWC3/ATC modular-no-atc
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at f0ea546f
Conflicts ok none
PR text ok Risk: two-way · J575c, plus the J614c/J616c dcpext3 chain in the display gate (same nodes in the same order; covered by their KUnit tree, not run on those Macs)

Areas: area:bringup, area:platform

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

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: Changes requested at 3b0d38c1ab83.

For a stage whose dt_routes flag is set, both readiness and application accept an absent or empty typec-routes container. The old stage required its route nodes before enabling the processor. The new code can enable dcpext3 and attach its display DART without a usable route on a stale or incomplete DTB. Require a nonempty route container for that stage, and add a negative control that leaves the entire changeset untouched when the container is missing or empty. Keep the four-route positive control and provide a current-head J575c replug row and J614c/J616c peer.

@github-actions github-actions Bot added the needs-hw-row No hardware row at the PR head (bot) label Nov 27, 2026
…e tree

The M4 Max dcpext3 chain names its Type-C routes by path: three, for the
three USB-C ports of the J614c/J616c. A board with another number of
ports needs another list, and the J575c, with four back Type-C ports,
would leave its fourth route disabled.

Take the routes from the processor's typec-routes node instead. Each
child is enabled with the chain, just before the processor, as the
listed routes were, and the chain is only ready while the typec-routes
container is present, non-empty, and every route is still disabled.
Application also refuses a missing or empty typec-routes container so an
incomplete DTB leaves the whole changeset untouched. On the J614c/J616c
the chain enables the same nodes, in the same order, as before.

The KUnit chain check now covers the routes taken from the tree, and new
cases cover a fourth route (positive control) as well as missing and
empty typec-routes containers (negative controls).

Signed-off-by: Roberto Dantas <7robertodantas@gmail.com>
The J575c ADT has a fourth external display processor, dcpext3, at the
J614c/J616c's address, and iBoot preloads and starts it here too
(iop-dcpext3-nub pre-loaded 1, running 1). The tree did not describe it,
so Linux left it running as iBoot did, unbound.

Describe it as t6041-j616c-usbc-dcpext3.dtsi does, with a route to the
fourth back Type-C port added, as the J575c's dcpext1 and dcpext2. The
address, interrupts, external index, bandwidth agent slot and crossbar
endpoint match this Mac's ADT. Everything is disabled: aura's t6041_exts
fills the firmware memory, and the display gate enables the chain.

dcpext3 can then drive a USB-C display on any back port, as dcpext1 and
dcpext2 do, and Linux owns the processor instead of leaving it running
unbound through a suspend.

Signed-off-by: Roberto Dantas <7robertodantas@gmail.com>

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: HOLD at f0ea546fae42

Blockers: Hosted build, DT checks and a J614c or J616c peer. The stock J575c row confirms bind, replug and resume. The direct dcpext3 scanout proof used a diagnostic tree.

Checked: Both readiness and changeset construction now refuse an absent or empty route container. The tests assert that the whole stage remains disabled when the route set is missing and that all four routes are enabled in the positive case. Reviewed the exact source and the author's KUnit and hardware receipts.

Evidence

Reviewed the exact PR source and the posted test results.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Nov 27, 2026

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verdict at f0ea546f: approve. Merge on green.

Checked

  • The display gate's dcpext3 chain now takes its routes from the DT's typec-routes container instead of a fixed three-route list. A missing or empty container fails readiness and apply, and KUnit covers 4 routes plus both negative controls. That's a hardware-description-driven change we want.
  • The J575c ADT facts in the comment (address, interrupts, external-index 4, DISP_EXT3 slot, iBoot preloaded and running) match the J616c's dcpext3 except for the fourth route.
  • J575c row at this head: 4 DCPs bound, s2idle 1/1, USB-C replug at 2560x1440, 0 new warnings.
  • The review bot approved at this head.
  • The one CI failure was an apt 403 from packages.microsoft.com in the DWC3/ATC job (infrastructure); I re-ran it.

Nit (follow-up): t6041-j575c-usbc-dcpext3.dtsi repeats t6041-j616c-usbc-dcpext3.dtsi apart from the route list. The dcpext3 node, reserved memory and aliases are T6041 SoC data. A shared t6041-usbc-dcpext3.dtsi, with each board adding only its typec-routes, would keep the two from drifting.

@RyanTheTide
RyanTheTide merged commit 8ceb8a0 into aurora-silicon:main Nov 27, 2026
34 of 37 checks passed
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) area:platform Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants