Repository navigation
Conversation
…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]>
|
J775c trial row: Stage 2 at aura Linux boots with the display handed over. 0 failed units; Wi-Fi up; returned to the default unaided. Stage 2: Linux runs simpledrm on the handed-over framebuffer ( dcpext1's DART ( |
|
J775c end-to-end row with this DT + #3686 + #3689: #3689 (comment) |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: HOLD at bb01f44f
Blockers:
- Exact-head hardware row not recorded at
bb01f44f: The PR body still statesTested: no hardware row yet, and neither of the J775c trial comments records head SHAbb01f44f(sopr-readinessflagsHardware row at head: no). Please updateTested:(or post a comment) tying the J775c end-to-end HDMI/SLC row (confirming whether DTB620119c2…in#3689was built frombb01f44f, or running a freshbb01f44frow if not) so the exact-head hardware gate clears.
Checked:
- Audited the full
arch/arm64/boot/dts/apple/t6050-j775c.dtsdiff (+98/-75) againstdrivers/phy/apple/dptx.c,drivers/soc/apple/mcc.c, andarch/arm64/boot/dts/apple/t6050-j714s.dts. - Verified symmetric endpoint rewiring between
hpm{0..3}_dpanddcpext1_typec{,1,2,3},apple,typec-mux-indices = <0x02 0x02 0x02 0x02>ondcpext1, and intact per-engine DARTs,apple,bw-scratch, anddpaudio_dispext{0,1}bindings. - Verified
lpdptx_phy0apple,ufp-endpoint = <0x00>maps to crossbar source select1(dispext0) viadptx.c:927, matching the loader's HDMI handoff route. - Verified
apple,boot-dma-devices = <&display>, <&dcpext0>againstdrivers/soc/apple/mcc.c:181-230:apple_mcc_wait_boot_dma()enforces boot-scanout retirement when/chosen/framebuffer0is enabled and keeps SLC allocation safely deferred on pre-handoff boots while&display/&dcpext0staystatus = "disabled". - Verified
dcpext0/dcpext1aliases and disabled/chosen/framebuffer0(display = <&dcpext0>) matcht6050-j714s.dts. - Hosted CI is green at
bb01f44f(6/6checks passed:dt-checks,host-tests,pr-text,readiness),MERGEABLEagainstmain. No DT or driver defects found; ready to approve once thebb01f44fhardware-row line is recorded.
Evidence
- Head SHA:
bb01f44ff47e79e95df39fa42cedf6c981da831e(base=main,MERGEABLE,6P/0F/0QCI). - Linked J775c trial row (
#3689#issuecomment-7269504462) showedHDMI-A-1 connected 2560x1440,boot scanout retired by displayed swap 3,system level cache allocation enabled on 32 planes, GPU BW716/863 GB/s, and0failed units.
There was a problem hiding this comment.
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}_dpanddcpext1_typec{,1,2,3},apple,typec-mux-indices = <0x02 0x02 0x02 0x02>ondcpext1, and intact per-engine DARTs,apple,bw-scratch, anddpaudio_dispext{0,1}bindings. - Verified
lpdptx_phy0apple,ufp-endpoint = <0x00>maps to crossbar source select1(dispext0) viadptx.c:927, matching the loader's HDMI handoff route. - Verified
apple,boot-dma-devices = <&display>, <&dcpext0>againstdrivers/soc/apple/mcc.c:181-230:apple_mcc_wait_boot_dma()enforces boot-scanout retirement when/chosen/framebuffer0is enabled and keeps SLC allocation safely deferred on pre-handoff boots while&display/&dcpext0staystatus = "disabled". - Verified
dcpext0/dcpext1aliases and disabled/chosen/framebuffer0(display = <&dcpext0>) matcht6050-j714s.dts. - Hosted CI is green at
bb01f44f(6/6checks passed:dt-checks,host-tests,pr-text,readiness),MERGEABLEagainstmain. No DT or driver defects found; ready to approve once thebb01f44fhardware-row line is recorded.
Follow-ups (not blocking): tie J775c HDMI/SLC row to head bb01f44 in Tested line
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-endpointfollows it (dispext0, source select 1). The four Type-C routes move to dcpext1 on crossbar source 2, the2 * dispextindex the other T6050 boards give that engine. New: thedcpext0/dcpext1aliases and a disabled/chosen/framebuffer0naming 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 logsdcpext0 handed off: bw-scratch 0x2c000,no /chosen/framebuffer@... simple-framebuffer,display handoff refused,live RTKit: no node for alias dcpext0andFailed to prepare FDT!. Offline: the head DTB has 0 dt-validate warnings, the same as base (a planted badapple,connector-typeis caught). Everyremote-endpointresolves.apple-dart-pd-checkandapple-sibling-driftreport 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
display-crossbar0can route any of itsdispext0..7inputs tolpdptx-phy0through the PHY's source select (source-select-offset1). 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.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 itsdisplayto 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.apple,typec-mux-indiceschanges,<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&displayalone it would enable allocation as soon as the display subsystem binds, while dcpext0 still scans out the boot framebuffer.