Skip to content

arm64: dts: apple: t6050-j775c: drive HDMI from dcpext0 and describe the boot framebuffer - #3682

Open
satchlj wants to merge 1 commit into
mainfrom
fix/j775c-hdmi-boot-handoff
Open

satchlj wants to merge 1 commit into
mainfrom
fix/j775c-hdmi-boot-handoff

Conversation

@satchlj

@satchlj satchlj commented Nov 30, 2026

Copy link
Copy Markdown
Member

What: The J775c tree now describes the display the way the boot loader hands it over. The HDMI port (lpdptx-phy0 behind the DP-to-HDMI converter) moves from dcpext1 to dcpext0, the engine the loader brings the port up on, and lpdptx-phy0's apple,ufp-endpoint follows it (dispext0, source select 1). The four Type-C routes move to dcpext1 on crossbar source 2, the 2 * dispext index the other T6050 boards give that engine. New: the dcpext0/dcpext1 aliases and a disabled /chosen/framebuffer0 naming dcpext0. The memory controller now also lists dcpext0 as a boot DMA supplier, so cache allocation waits until dcpext0's own swap has replaced the boot scanout. Needed by the J775c HDMI handoff in aura#584 (aura#589 to #602).

Tested: no hardware row yet. On the J775c with aura#602's stack, the loader's modeset runs on dcpext0 (HDMI route: /arm-io/dcpext0 (dispext0) -> display-crossbar0 source 1 -> /arm-io/lpdptx-phy0, 1920x1080@60). With this tree's base, kboot then logs dcpext0 handed off: bw-scratch 0x2c000, no /chosen/framebuffer@... simple-framebuffer, display handoff refused, live RTKit: no node for alias dcpext0 and Failed to prepare FDT!. Offline: the head DTB has 0 dt-validate warnings, the same as base (a planted bad apple,connector-type is caught). Every remote-endpoint resolves. apple-dart-pd-check and apple-sibling-drift report nothing new against base. The same edit applied to the installed J775c DTB adds no warnings to its 12 existing ones (AVE, from its older tree).

Risk: two-way · J775c only. Linux drives HDMI from dcpext0 and Type-C displays from dcpext1. The DP audio pipes follow their engines, so the HDMI audio device is now audio-controller-dispext0. With a loader that does not hand the display over, framebuffer0 may carry the boot loader's dummy framebuffer, and apple-mcc keeps allocation off as it does today.

Details
  • The ADT does not tie the HDMI port to an engine. display-crossbar0 can route any of its dispext0..7 inputs to lpdptx-phy0 through the PHY's source select (source-select-offset 1). macOS drives the port from the internal DCP. aura takes the crossbar's lowest DCP input, dispext0. This tree had it on dcpext1, so after the handoff the kernel's PHY driver would program source select 2 and move the port away from the engine that is scanning out.
  • The loader's T6050 handoff (kboot_display_handoff.c) finds each engine by its coprocessor address and takes a fixed route (PHY plus converter GPIOs) or Type-C routes from whichever dcpext node describes them. It then fills /chosen/framebuffer@<base> and sets its display to the scanout engine, and publishes the live RTKit session through the engine's alias (dt_publish_live_rtkit()). Without that alias it stops the boot: the DCP is running, and its buffers would otherwise be unmapped.
  • dcpext1 takes the Type-C properties as dcpext0 had them. Only apple,typec-mux-indices changes, <0 0 0 0> to <2 2 2 2>, as J714s gives its dcpext1. apple,typec-dptx-phys, the phys and the mux-controls do not depend on the engine.
  • apple,boot-dma-devices = <&display>, <&dcpext0>: apple-mcc waits for a supplier's own swap only when an enabled simple-framebuffer names that supplier as its display. With &display alone it would enable allocation as soon as the display subsystem binds, while dcpext0 still scans out the boot framebuffer.

…the boot framebuffer

The boot loader brings the HDMI port up on dcpext0: lpdptx-phy0 sits behind
display-crossbar0, the ADT ties the port to no engine, and the loader takes
the crossbar's lowest DCP input, dispext0 (source select 1). This tree had
the port on dcpext1 (source select 2), so after a live handoff the kernel's
PHY would switch the port away from the engine that is scanning out, and the
engine it hands over has no HDMI description.

Move the HDMI output (lpdptx-phy0, the converter's hotplug and power GPIOs)
to dcpext0 and point lpdptx-phy0's ufp-endpoint at dispext0. The four Type-C
routes move to dcpext1, on crossbar source 2 (dispext1), the 2 * dispext
index the other T6050 boards use for that engine. Each engine keeps its own
DARTs, bandwidth scratch and DP audio pipe.

Also add what the loader needs to hand the running display over:

- the dcpext0 and dcpext1 aliases, through which it publishes the live
  RTKit session of the engine it started;
- /chosen/framebuffer0, a disabled simple-framebuffer it fills with the
  boot framebuffer, naming dcpext0 as the display that scans it out.

Without them the loader refuses the handoff ("no /chosen/framebuffer@...
simple-framebuffer") and then stops the boot, because the running DCP's
session has no node to be described on.

The memory controller lists dcpext0 as a boot DMA supplier beside the
display subsystem, as the laptops list their DCP: with framebuffer0 naming
it, cache allocation waits until dcpext0 has replaced the boot scanout with
a swap of its own, not only until the display subsystem binds.

Signed-off-by: Satya Benson <[email protected]>
@satchlj

satchlj commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

J775c trial row: Stage 2 at aura 36e85e1a (#602 on #597 + #587 + #338, raw image sha256 c103712d…), J775c DTB = the installed tree with this PR's change (sha256 7ebe5c4a…), default kernel (linux main 88ddea8b, Nov 27, monolithic), Stage 1 main 1e01a273 with NO_DISPLAY, firmware 27.2.

Linux boots with the display handed over. 0 failed units; Wi-Fi up; returned to the default unaided.

Stage 2:

FDT: framebuffer@10fd805c000 base 0x10fd805c000 size 0x7e9000
DCP: T6050: dcpext0 handed off: bw-scratch 0x2c000
DCP: T6050: dcpext0 handed off with the display subsystem: firmware 27.0, framebuffer 0x10fd805c000+0x854000
DCP: T6050: dcpext1 handed off: bw-scratch 0x30000
FDT: dcpext0: live RTKit session v12, 3 system buffer(s), epmap 0000011d 00823f3f
Preparing to boot kernel at 0x10005c00000 with fdt at 0x10010298000

Linux runs simpledrm on the handed-over framebuffer (Initialized simpledrm 1.0.0 for 10fd805c000.framebuffer). It does not reach apple-dcp. dcpext0's DART fails to register:

apple-dart 2b2340000.iommu: params 1e313020 31122087 2a2a0204 00010020, version 0204, 32 streams, AS 42 -> 42, protect 000000ff/000000ff, ...
platform 2b2e00000.dcp: Adding to iommu group 3
WARNING: drivers/iommu/iommu.c:3242 at iommu_setup_default_domain+0x30c/0x538
 iommu_device_register <- apple_dart_probe
apple-dart 2b2340000.iommu: probe with driver apple-dart failed with error -16
platform 2b2e00000.dcp: deferred probe pending: platform: supplier 2b2340000.iommu not ready
platform 2220000000.memory-controller: deferred probe pending: apple-mcc: waiting for /soc/dcp@2b2e00000 to retire boot scanout

dcpext1's DART (392340000, same params, also handed off) registers fine. So SLC stays off: GPU bandwidth is 554/556 GB/s at depth 4/8, unchanged. That is now expected until apple-dcp takes the display over. The kernel is the Nov 27 default; whether newer main or an open PR already covers a locked, live dcpext0 DART is the next check.

@satchlj

satchlj commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

J775c end-to-end row with this DT + #3686 + #3689: #3689 (comment)

@satchlj
satchlj marked this pull request as ready for review November 30, 2026 15:08
@satchlj
satchlj requested review from a team as code owners November 30, 2026 15:08
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) door:two-way Revertible or not, 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) labels Nov 30, 2026
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Merge readiness at bb01f44f: not ready yet

Check Detail
CI at head ok 6 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA bb01f44f, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · J775c only. Linux drives HDMI from dcpext0 and Type-C displays from dcpext1. The DP audio pipes follow their engines, so the HDMI audio device is now audio-controller-dispext0. With a loader that does not hand the display over, framebuffer0 may carry the boot loader's dummy framebuffer, and apple-mcc keeps allocation off as it does today.

Areas: area:bringup

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: HOLD at bb01f44f

Blockers:

  • Exact-head hardware row not recorded at bb01f44f: The PR body still states Tested: no hardware row yet, and neither of the J775c trial comments records head SHA bb01f44f (so pr-readiness flags Hardware row at head: no). Please update Tested: (or post a comment) tying the J775c end-to-end HDMI/SLC row (confirming whether DTB 620119c2… in #3689 was built from bb01f44f, or running a fresh bb01f44f row if not) so the exact-head hardware gate clears.

Checked:

  • Audited the full arch/arm64/boot/dts/apple/t6050-j775c.dts diff (+98/-75) against drivers/phy/apple/dptx.c, drivers/soc/apple/mcc.c, and arch/arm64/boot/dts/apple/t6050-j714s.dts.
  • Verified symmetric endpoint rewiring between hpm{0..3}_dp and dcpext1_typec{,1,2,3}, apple,typec-mux-indices = <0x02 0x02 0x02 0x02> on dcpext1, and intact per-engine DARTs, apple,bw-scratch, and dpaudio_dispext{0,1} bindings.
  • Verified lpdptx_phy0 apple,ufp-endpoint = <0x00> maps to crossbar source select 1 (dispext0) via dptx.c:927, matching the loader's HDMI handoff route.
  • Verified apple,boot-dma-devices = <&display>, <&dcpext0> against drivers/soc/apple/mcc.c:181-230: apple_mcc_wait_boot_dma() enforces boot-scanout retirement when /chosen/framebuffer0 is enabled and keeps SLC allocation safely deferred on pre-handoff boots while &display / &dcpext0 stay status = "disabled".
  • Verified dcpext0/dcpext1 aliases and disabled /chosen/framebuffer0 (display = <&dcpext0>) match t6050-j714s.dts.
  • Hosted CI is green at bb01f44f (6/6 checks passed: dt-checks, host-tests, pr-text, readiness), MERGEABLE against main. No DT or driver defects found; ready to approve once the bb01f44f hardware-row line is recorded.
Evidence
  • Head SHA: bb01f44ff47e79e95df39fa42cedf6c981da831e (base=main, MERGEABLE, 6P/0F/0Q CI).
  • Linked J775c trial row (#3689#issuecomment-7269504462) showed HDMI-A-1 connected 2560x1440, boot scanout retired by displayed swap 3, system level cache allocation enabled on 32 planes, GPU BW 716/863 GB/s, and 0 failed units.

@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: MERGE at bb01f44ff47e

Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.

Checked: - Audited the full arch/arm64/boot/dts/apple/t6050-j775c.dts diff (+98/-75) against drivers/phy/apple/dptx.c, drivers/soc/apple/mcc.c, and arch/arm64/boot/dts/apple/t6050-j714s.dts.

  • Verified symmetric endpoint rewiring between hpm{0..3}_dp and dcpext1_typec{,1,2,3}, apple,typec-mux-indices = <0x02 0x02 0x02 0x02> on dcpext1, and intact per-engine DARTs, apple,bw-scratch, and dpaudio_dispext{0,1} bindings.
  • Verified lpdptx_phy0 apple,ufp-endpoint = <0x00> maps to crossbar source select 1 (dispext0) via dptx.c:927, matching the loader's HDMI handoff route.
  • Verified apple,boot-dma-devices = <&display>, <&dcpext0> against drivers/soc/apple/mcc.c:181-230: apple_mcc_wait_boot_dma() enforces boot-scanout retirement when /chosen/framebuffer0 is enabled and keeps SLC allocation safely deferred on pre-handoff boots while &display / &dcpext0 stay status = "disabled".
  • Verified dcpext0/dcpext1 aliases and disabled /chosen/framebuffer0 (display = <&dcpext0>) match t6050-j714s.dts.
  • Hosted CI is green at bb01f44f (6/6 checks passed: dt-checks, host-tests, pr-text, readiness), MERGEABLE against main. No DT or driver defects found; ready to approve once the bb01f44f hardware-row line is recorded.

Follow-ups (not blocking): tie J775c HDMI/SLC row to head bb01f44 in Tested line

This branch has not been deployed

No deployments
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) door:two-way Revertible or not, 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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant