Repository navigation
arm64: dts: apple: t6040-j614s: HDMI through dcpext2 - #1585
Conversation
The J614s ADT has no dcpext0, dart-dcpext0 or dispext0, and its DISPEXT0 power states are virtual. Its second external display processor is dcpext2: dcpext1's block shifted by 0x4000000, crossbar UFP endpoint 2, DISPEXT2 power states at 0x5028004e0/4e8, PMP soc-device 20. The HDMI path behind it (atc3 crossbar, atcphy3, DP-to-HDMI converter, GPIOs) is the J616s one. Describe dcpext2, its mailbox, DARTs, power states and PMP request for the J614s only, and drop dcpext0's firmware memory there so neither the loader nor the gate tries to use it. The bandwidth scratch (0x34000) follows the rule that gives disp0 0x20000 and dispext1 0x30000 from the ADT bwr-agent table. In the gate, a J614s HDMI stage list replaces the J616s one. Signed-off-by: Petr Škuta <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
dcpext2's audio is ADT dp-audio3: SIO DMA channel 0x6a and power state DPA3, as dcpext0's is DPA1 (0x66) and dcpext1's DPA2 (0x68). Describe DPA3 and link it to dcpext2, so the HDMI port gets its sound card. DPA1 stays linked to the absent dcpext0 and reports no audio support, as before. Signed-off-by: Petr Škuta <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
I added a second commit, HDMI audio through DPA3. dcpext2's audio is ADT New results on j614s. The kernel was built from this branch plus #1588 on
Still not tested: HDMI hotplug after login, and sleep/resume with external displays attached. 🤖 Generated with Claude Code |
|
More j614s results with the same build (HDMI + DPA3 + #1588, kernel
🤖 Generated with Claude Code |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Codex (GPT-6.1 Sol), reviewing on @DjDeveloperr’s behalf.
Source reviewed at f0b6611. The J614s-only include and board-selected stage replace the absent dcpext0 with dcpext2 while retaining firmware-memory admission, PMP ordering and the independent USB-C chain. J616s’s stage remains unchanged; the dcpext0-only Type-C crossbar handling stays confined to that topology. DPA3 follows the existing DPA1/DPA2 provider pattern; the internal speaker card and its six amplifiers remain disabled. Current main’s display-gate source is identical to this PR’s base, so no integration fix is needed there.
The author’s newer reports close the original dual-display/hotplug/display-resume gaps on the stated J614s firmware26.6.2 build composed with #1588 and aura#166. HDMI audio works after boot and replug but loses its PipeWire sink after resume; profile toggling recovers it. Keep that failure as an explicit follow-up: a WirePlumber cause has not been established. These reports do not qualify J616s, other firmware, or Thunderbolt DP tunnels.
Approved for the stated source scope, pending current-head CI and companion aura#166 review/merge. No local kernel build or new hardware test was performed for this review.
Keep current main's entire J614s board, including all25 USB4 overrides and three explicit PCIe-tunnel removals, and append the original HDMI fragment include. The two remaining HDMI feature blobs are unchanged. All added/removed lines of the three-file feature diff match the old head. Preserve published ancestry, board-specific dcpext2 admission and the independent USB-C chain. Require fresh Host/DT validation after this normal merge. Aura166 remains the companion merge dependency. The author's combined-stack display/hotplug results retain their scope; HDMI audio sink loss after resume is an unresolved follow-up. This is no new build, hardware boot, loader installation or all-HDMI qualification. Assisted-by: LLM
DjDeveloperr
left a comment
There was a problem hiding this comment.
Resolved the shared J614s DTS footer conflict as normal merge240075dd, parentsf0b66115/main97469189. Current main's entire board prefix, all25 USB4 override blocks and three PCIe-tunnel removals are byte-exact; the original HDMI fragment include is appended once. All added/removed lines in the three-file HDMI feature diff match the previously approved head. The HDMI fragment and display-gate blobs are unchanged. No history rewrite, source behavior change or new build/DTB/hardware result is claimed.
Fresh combined-head Host/DT checks are required. Aura166 remains open/unmerged and is still the companion merge dependency; loader-less firmware-memory refusal and board-specific gate constraints stay intact.
The body now incorporates the author's later combined1585+1588 hardware results: dual external/internal displays, HDMI/USB-C replug and display s2idle return passed. HDMI audio sink loss after resume remains documented; card/profile survive and toggling recovers, but WirePlumber cause is unconfirmed. No blanket Working claim or new J616s physical qualification follows. Existing native watch retained.
RyanTheTide
left a comment
There was a problem hiding this comment.
display-gate.c: the j614s stage list replaces t6041_stages[STAGED_HDMI] only when the machine is apple,j614s. On every other T6041 board the table keeps its old contents, and the HDMI-only mux test (st->nodes == t6041_hdmi_nodes) matches exactly when the old st == &t6041_stages[STAGED_HDMI] did. All 17 paths in t6041_j614s_hdmi_nodes exist in the compiled j614s DTB and are disabled there, and dcpext0 has no memory-region on j614s.
DTBs: only t6040-j614s.dtb changes. The other 136 Apple DTBs are byte-identical, t6040-j616s.dtb included, and dtc reports no warnings.
J616s run on this head's tree (integration 9746918 + this PR, production DTB): gate stage 0 and 1 enabled, eDP-1 at 3456x2234@120 and DP-1 at 2560x1440 both active, s2idle 3/3 with both outputs back on, AVC 0, no DART faults, no new display errors compared with the production kernel.
Thanks @petrskuta.
59d8ecd
into
aurora-silicon:integration/aurora
Current head
240075dd19fde9d326722db4e993766580928e3enormally merges precedingf0b66115with main97469189after #1588. All three HDMI feature diffs are unchanged. The shared J614s footer retains main's complete 25-override USB4 block and all three PCIe-tunnel removals, plus the original HDMI include. No history rewrite or new hardware run.All eight current-head checks passed: Host, DT/bindings/ADT, SEP source, arm64 Rust build, arm64 QEMU KUnit and three DWC3/ATC compile profiles. Their substantive test/build steps were verified. Aura #166 remains the sole source-merge dependency; its firmware-memory handoff must land first. The companion is still open with startup-failed build/format/policy runs and two test jobs queued; earlier rejected retry requests are not replayed.
HDMI on the MacBook Pro 14" M4 Pro (j614s). Follow-up to #1551 (merged) and fixes the kernel side of #1581.
Problem
The shared
t604x-j614-j616.dtsidescribes the HDMI processor as dcpext0 at0x3a2e00000, which is the j616s wiring. The j614s ADT has no dcpext0,dart-dcpext0ordispext0, and its DISPEXT0 power states areno_ps(virtual). Its second external display processor is dcpext2. The details are in #1581.Change
t6040-j614s-extdisp-hdmi.dtsi, included only byt6040-j614s.dts:dcp@606e00000: dcpext1's block shifted by+0x4000000, with its mailbox (IRQs 1362–1365),dart-dcpext2anddart-dispext2(IRQ 1309), and firmware-memory placeholders.atcphy3,atcphy3_xbar, HPD on AOP 36, SMC 15/26).mux-index = <4>follows the rule2 * dp-switch-ufp-endpoint (2) + port (0)fromt6040-j616s-extdisp-usbc.dtsi.apple,bw-scratch = 0x34000: the ADTbwr-agententry named bydispext2'sfunction-bw_req_interrupt0(0x90). The same rule reproduces disp0's0x20000and dispext1's0x30000, so this value is derived, not guessed.apple,dcp-endpoint = <3>: the ADTiop-dcpext2-nubexternal-index.ps_dispext2_sys(@4e0, parents FAB7_SOC +pmp_dispext2) andps_dispext2_fe(@4e8). PMP requestreport@13(ADTiop-pmp-nubsoc-device 20 "EXT2"; DISPEXT0/1 are 18/19 →report@11/@12).memory-regionis deleted, so neither the loader nor the gate can use it.display-gate.c: onapple,j614s, a j614s HDMI stage list (ATC3 power, PMP DISPEXT2, FAB7_SOC, DISPEXT2, AOP pins, PHY, crossbar, DARTs, mailbox, dcpext2) replaces the j616s dcpext0 list. Since #1551 each stage comes up on its own. The HDMI-only Type-C crossbar handling stays specific to dcpext0, because dcpext2 has no Type-C routes.The firmware memory comes from the loader. The companion aura PR, aurora-silicon/aura#166, adds
dcpext2tot6041_extsand is required. Without it, dcpext2 simply has no firmware memory, and the gate leaves the HDMI stage off, exactly as today.Testing
Author evidence on J614s/T6040, firmware26.6.2, with the companion Aura change:
7.3.0-j614s-tbonf9f14be0f: simultaneous AOC [email protected], Dell USB-C [email protected] and internal3024x1890@120; HDMI audio playback; HDMI and USB-C hotplug; all three displays returning after s2idle.The author built the initial kernel with clang23.1.4/Rust1.99.1 and deployed the matching DT/Stage2 as an aura-try trial before committing it. The later source was carried onto the stated base with DT recompilation. These are attributed combined-stack results, not a physical boot or new build of the integrated
240075ddtree. No new loader/default, playback or protection-policy action was performed for this merge.🤖 Generated with Claude Code; integration review by Codex.