Skip to content

arm64: dts: apple: t6041-j614c-j616c: dcpext3 for a third USB-C display - #1793

Merged
DjDeveloperr merged 2 commits into
aurora-silicon:mainfrom
joske:pr/t6041-j614c-dcpext3-usbc
Nov 24, 2026
Merged

DjDeveloperr merged 2 commits into
aurora-silicon:mainfrom
joske:pr/t6041-j614c-dcpext3-usbc

Conversation

@joske

@joske joske commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Follows #1684. With dcpext1 and dcpext2, two of the three USB-C ports can drive a display at the same time; a third one stays dark. This adds dcpext3, so that each of the three ports can. The loader side is aurora-silicon/aura#212, which adds dcpext3 to t6041_exts. Without it, dcpext3's firmware memory stays a placeholder and the gate leaves the chain off.

Change

  • dcpext3 (t6041-j616c-usbc-dcpext3.dtsi): described as dcpext2. iBoot preloads and starts it too (iop-dcpext3-nub: pre-loaded 1, running 1). Its block is dcpext2's moved from 0x6xxxxxxxx to 0x3xxxxxxxx: coproc 0x306e00000, mailbox IRQs 1434-1437, dart-dcpext3/dart-dispext3 at 0x306340000/0x306300000 with IRQ 1381, external-index 4. The crossbar state is 6 (2 × dp-switch-ufp-endpoint 3 + port 0). The ADT pmgr bwr-agent table gives DISP_EXT3 slot 6, so apple,bw-scratch is 0x38000, by the rule dcpext1 (slot 4, 0x30000) and dcpext2 (slot 5, 0x34000) follow. No PMP and no power domain, as for dcpext1/2.
  • Connectors: port@3 of typec0-2 gets endpoint@2 for dcpext3.
  • Display gate: a fourth M4 Max chain, as dcpext2's. The J575c tree has no dcp@306e00000, so it does nothing there.
  • KUnit: the T6041 test tree has dcpext3's chain. A new case checks that all four chains come up when all four processors are filled; no_memory also checks the fourth one.

Testing

J614c (MacBook Pro 14" M4 Max), os-fw 26.6.2. aura 1.0.0b12 + aura#166 + the aura#212 entry. Kernel: integration/aurora fa59399 + #1667 + #1684 + this commit, plus #1466, #1689 and local test patches (speakers, the J575c video encoder).

  • Three USB-C displays at once: pass. Each on its own processor, with the internal panel on as well:

    Port Display Processor Mode
    left back iiyama, USB-C to DP cable dcpext1 (ATC PHY 0) 2560x1440
    left front iiyama, through a dock (DP alt mode, pin D) dcpext2 (ATC PHY 1) 2560x1440
    right portable USB-C display dcpext3 (ATC PHY 2) 1920x1080

    After unplugging all three and plugging them in again, each display got another processor, and all three ran again: right on dcpext1, left front on dcpext2, left back (2560x1440) on dcpext3. So each of the three processors has driven displays on two different ports.

    apple-t6041-display: /dcp@306e00000 enabled
    apple-dcp 306e00000.dcp: DCP booted
    ...
    apple-dcp 306e00000.dcp: allocated Type-C DPTX PHY 2
    apple-dcp 306e00000.dcp: dcp_hotplug() connected:1 valid_mode:0 nr_modes:17
    
  • The dock is flaky with any processor. Sometimes DP link training fails (link fault 22, then 24) and it needs a replug or a power cycle, as it did on dcpext2 before this change and as it often does under macOS. The direct cable and the portable display came up on the first try every time.

  • KUnit apple-display-gate on arm64 QEMU: 58/58.

  • Rebased onto integration/aurora 673f618: DTBs build for t6041-j614c, t6041-j616c and t6041-j575c, KUnit 58/58.

  • Not tested: HDMI (dcpext0) together with three USB-C displays, the J616c.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Blockers: 1.

The dcpext3 block checks out against dcpext2: with the names swapped, t6041-j616c-usbc-dcpext3.dtsi differs only in the 0x6 -> 0x3 base, the mailbox and DART IRQs (+0x48 from 1362..1365 and 1309), external-index 4, crossbar index 6, the bw-scratch slot (0x38000) and endpoint@2 on each typec port@3. No other T604x node uses those unit addresses, and the gate stage keyed on /iommu@306300000 (drivers/soc/apple/display-gate.c:3147) does nothing on the J575c tree. The KUnit changes cover dcpext3 staying off in no_memory and second_usbc and coming up in all_externals. aura#212, which hands over the firmware memory, is merged.

  1. The commit carries a Co-Authored-By: Claude Opus 5.5 trailer; drop it and keep the Signed-off-by. The PR body ends with "Generated with Claude Code"; make the last line Assisted-by: LLM (Claude:Opus 5.5) instead.

Not blocking: t6041_max_usbc3_nodes (display-gate.c:3133-3140) extends a list of hard-coded node paths per SoC. The chain is already described by the dcp node's iommus, mboxes and memory-region phandles, so a follow-up that walks those would let new DCP blocks come up without another C table.

HW row: J616c on the current integration/aurora with this commit: three USB-C displays at once, one on each of dcpext1-3, with replug, plus HDMI with three USB-C displays on the J614c, and a regression line (0 AVC, 0 failed units, 0 new kernel errors).

Assisted-by: LLM (Claude:Opus 5.5)

With dcpext1 and dcpext2, two of the three USB-C ports can drive a
display at the same time. Describe dcpext3 as dcpext2, so that each
port can: iBoot preloads and starts it too (iop-dcpext3-nub pre-loaded
1, running 1). Its block is dcpext2's moved from 0x6xxxxxxxx to
0x3xxxxxxxx, interrupts +0x48, external-index 4, crossbar state 6
(2 * dp-switch-ufp-endpoint 3 + port 0). The ADT pmgr bwr-agent table
gives DISP_EXT3 slot 6, so its bandwidth scratch is 0x38000, by the
rule dcpext1 (slot 4, 0x30000) and dcpext2 (slot 5, 0x34000) follow.

The display gate enables dcpext3's chain as dcpext2's, and the KUnit
tree and cases cover it.

Signed-off-by: Jos Dehaes <[email protected]>
@joske
joske force-pushed the pr/t6041-j614c-dcpext3-usbc branch from 2c61a67 to 754b649 Compare November 21, 2026 14:56
@RyanTheTide

Copy link
Copy Markdown
Contributor

Re-review of 754b649: No blockers.

  1. Resolved: the commit now ends with only Signed-off-by: Jos Dehaes, with no Co-Authored-By trailer, and the PR body's last line is Assisted-by: LLM (Claude:Opus 5.5).

The code is the same as at the last review: t6041-j616c-usbc-dcpext3.dtsi (194 lines), the fourth chain in t6041_max_usbc3_nodes (drivers/soc/apple/display-gate.c:3133-3147), and the KUnit cases no_memory/second_usbc (dcpext3 off) and all_externals (all four on, drivers/soc/apple/display-gate-test.c:1175-1187). The push reworded the commit and rebased it; the branch merges cleanly into integration/aurora. The earlier non-blocking note about walking the dcp node's iommus/mboxes/memory-region phandles instead of a node-path table still applies as a follow-up.

HW row: J616c on the current integration/aurora with this commit: three USB-C displays at once, one on each of dcpext1-3, with a replug; HDMI plus three USB-C displays on the J614c; and a regression line (0 AVC, 0 failed units, 0 new kernel errors).

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor

dcpext3 is not on integration/aurora yet, and the commit (754b649) applies cleanly to 110861f; the loader side, aura#212, is merged. The last review found no blockers. What's left is the hardware row on the J616c with this commit on the current tip: three USB-C displays at once on dcpext1-3 with a replug, HDMI plus three USB-C displays on the J614c, and a regression line (0 AVC, 0 failed units, 0 new kernel errors).

Build check of 110861f plus this change (arm64, LLVM=1, Image, dtbs and every directory it touches, Fedora config plus asahi.config): builds, no warnings in the files it touches; CHECK_DTBS over every Apple DTB: no new warnings against the tip.

@DjDeveloperr DjDeveloperr 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.

Pre-PR checklist review at 754b649d8e78 (checked against integration/aurora 70a00e583b03): 1 blocker (§5 exact-head hardware & regression evidence).

Code, DT, Safety, Attribution, and CI Audit (§1–§4, §6)

  • Completely clean — no code or commit-message changes needed.
    • arch/arm64/boot/dts/apple/t6041-j616c-usbc-dcpext3.dtsi checks out cleanly against dcpext2: 0x6 -> 0x3 register shift, mailbox IRQs 1434–1437 (+0x48), DART IRQ 1381 (+0x48), apple,bw-scratch slot 6 (0x38000), apple,dcp-endpoint = <4>, crossbar mux index 6, and endpoint@2 on typec0..2 port@3.
    • drivers/soc/apple/display-gate.c (t6041_max_usbc3_nodes and 4th entry in t6041_max_stages) scales t6041_max_cs[] and firmware-27 gating automatically, leaves J575c untouched, and display-gate-test.c + t6041-gate-test.dtso cover all four external chains cleanly against current integration/aurora. Loader support (aurora-silicon/aura#212) is already merged; not superseded on integration/aurora.
    • §4 attribution: Clean — 754b649d8e78 carries human author/committer and human Signed-off-by: only, and the PR body carries the LLM disclosure.
    • §6 live CI: All 8 checks (dt-checks, host-tests, source, rust-build, kunit, and all three DWC3/ATC build configs) are green on 754b649d8e78.

Blockers

  1. §5 exact-head hardware & regression evidence: The reported J614c hardware test ran on an older base (fa593992e plus local test patches) rather than the rebased head 754b649d8e78 (where only DTB builds and QEMU KUnit were re-run), and there are no §5 regression counts (0 SELinux denials, 0 failed units, 0 new kernel errors) on the PR. Because this changes shared t6041-j614c-j616c.dtsi, please post an exact-head boot at 754b649d8e78 (or current integration/aurora + this commit) with §5 regression counts (0 SELinux denials, 0 failed units, 0 new kernel errors), covering HDMI + three USB-C displays on J614c and a J616c check (or explicitly requesting a J616c test run if unavailable). Once posted, this is ready to approve.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) changes-requested A reviewer requested changes (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

@DjDeveloperr DjDeveloperr 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: MERGE at 754b649d8e78

Blockers: none.

Checked: thank you for this. No Apple material, DT only (dcpext3 on the shared J614c/J616c dtsi). Your J614c row (three USB-C displays at once, each on its own processor, with the internal panel on) is from before the rebase, and the rebase didn't touch this file, so it still covers the head. DTBs build and dt-checks pass. A J616c run comes after the merge.

@DjDeveloperr
DjDeveloperr dismissed their stale review November 24, 2026 22:09

Superseded by the review at 754b649

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at 9766b866: not ready yet

Check Detail
CI at head no failing: dt-checks, host-tests, source, pr-text / pr-text, rust-build, kunit
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head no no line with the head SHA 9766b866, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:bringup, area:platform

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

@DjDeveloperr
DjDeveloperr requested review from a team as code owners November 24, 2026 22:30
@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) needs-hw-row No hardware row at the PR head (bot) and removed ready-to-merge Meets the merge policy: merge it (bot) labels Nov 24, 2026
@DjDeveloperr
DjDeveloperr merged commit 0a408a4 into aurora-silicon:main Nov 24, 2026
11 of 20 checks passed
@joske

joske commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Post-merge row from the J614c (MacBook Pro 14" M4 Max, 40-core GPU), on main 34bdf71, which contains this change. On top of it are only #2061 (J614c speaker DT), #2170 and #2171 (G17 tiling) and local speaker test patches, none of them in the display path. aura 1.0.0b14.1 (the packaged one).

  • Three USB-C displays at once, plus the internal panel: a direct USB-C to DisplayPort monitor (2560×1440) on dcpext0, a dock's HDMI output (2560×1440) on dcpext1, and a USB-C portable monitor (1920×1080) on dcpext3 (306e00000.dcp). All three were lit and listed in GNOME's display settings.
  • Replug: the portable monitor unplugged and plugged back in came back on dcpext3, with the other two unaffected.
  • 0 kernel errors (journalctl -k -p err), 0 failed units. No SELinux on this install, so no AVC count.

Assisted-by: LLM (Claude:Opus 5.5)

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) needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants