Repository navigation
display: HDMI on the M2 Mac mini with the 27.2 firmware - #451
Conversation
The dptx-port path behind dp2hdmi (M2 desktops, J873) was refused unless the OS firmware was 13.5, with T8152 exempted by chip. On a J473 with a 27.2 stub aura therefore never drives HDMI, and M2 desktops have no iBoot framebuffer, so the screen stays black until Linux. The firmware announces whether its dptx-port service speaks AFKv2, and the endpoint code already handles both formats. Decide from that instead: AFKv2 is driven on any firmware, the older format still only on 13.5, whose layouts are the only ones checked. The chip exemption goes away, as T8152's endpoint speaks AFKv2. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
…lates dart_init_adt_display() adopts a locked display stream only while it translates through its inherited tables. For T8110 it counted the DAPF bypass bit as "not translating", but that bit only skips the DMA address filter stage; the page tables still translate, and the rest of dart.c reads TCR that way (only BYPASS_DART and REMAP_EN end translation). With the 27.2 firmware, iBoot locks dart-dispext0 on the M2 Mac mini with TCR 0x5 (translate, DAPF bypass), so the DISP DART was refused and the external DCP could not be started. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
display_configure() told the dptx-port service about HPD only on T8152. The reason holds for any machine where the DP-to-HDMI converter's HPD goes to an AP gpio instead of the phy: a dptx-port service that speaks AFKv2 does not bring the port up until the AP reports HPD. The ADT describes that wiring: the converter's dp2hdmi-gpio node has function-hdmi_hpd. Decide from that and from the service's format. The J873g's ADT has it on dp2hdmi-gpio0 and its service speaks AFKv2, so it keeps its HPD report; the M2 Mac mini on the 27.2 firmware now gets one too, and its firmware then starts link training. The older format never needed the report and does not get it. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
The AFKv2 dptx-port handler passes WILL/DID_CHANGE_LINK_CONFIG, SET_DRIVE_SETTINGS and DEACTIVATE to the phy, which accepted them only for T8152's two phys and failed them for every other phy type. On the M2 Mac mini (dptx-phy,t8112) with the 27.2 firmware, WILL_CHANGE_LINK_ CONFIG then failed every time and link training never started; with that fixed, SET_DRIVE_SETTINGS failed each training round. Only a phy behind an ATC port switches its route, takes new drive levels or powers down per link. A dedicated dptx-phy is wired to its display-crossbar slot when it is set up, as the T8152 HDMI phy already was. Accept those requests for it, which is what the pre-AFKv2 handler does for every phy. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
dptx_phy_set_link_rate() does not program a rate for the T8112 dptx-phy: it replays the one register setup taken from a macOS trace (fc64fcc). The AFKv2 handler reported HBR as the maximum and accepted only HBR, so the 27.2 firmware trained at HBR while the phy ran that setup, and clock recovery failed on every lane in every round. macOS trains the M2 Mac mini's HDMI converter at HBR2. With HBR2 reported, the firmware trains at HBR2 and the link comes up. Report HBR2 for this phy and generalise the "qualified only at HBR" rule to any phy with a single rate: ACTIVATE starts at that rate and SET_LINK_RATE accepts only it. Phys qualified at HBR behave as before. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Once a dptx-port that speaks AFKv2 has been connected, its DCP answers
no power request. On the M2 Mac mini with the 27.2 firmware, after the
HDMI modeset neither AP QUIESCED or IDLE nor IOP SLEEP is acknowledged,
not with longer waits, not after HPD is dropped, the display released
or powered off, nor after DEACTIVATE succeeds. dcp_shutdown() then
keeps it as running and kboot refuses to boot the next stage ("Display
handoff failed; returning to proxy"). Without a connected port the same
DCP sleeps fine.
Hand such a DCP on running instead, as the T8152 and T8132 displays
already are: stop the iBoot interface and the other endpoints
(dcp_handoff()) and leave RTKit, its buffers and DART mappings and the
scanout running. The display stays lit, so U-Boot, GRUB and Linux's
simpledrm keep showing the framebuffer aura set up. The DCP counts as
running from then on, so this stage never starts it again, and kboot
keeps this stage's heap, where its RTKit buffers live, out of the next
stage's memory, as it already does for a post-M4 ANS.
A kernel that takes over such a DCP has to adopt a running core, as the
T8132 one does; today's kernel does not drive the 27.2 DCPs of T8112.
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
DjDeveloperr
left a comment
There was a problem hiding this comment.
Strong, well-structured series — commits 1–5 cleanly replace chip/version gates with firmware- and ADT-driven decisions (dcp_dptx_is_afkv2, function-hdmi_hpd, DPTX_PHY_T8152_ATC vs dedicated dptx-phy, T8110 DAPF bypass consistency with the rest of src/dart.c, and T8112 single-rate HBR2), all 6 commits have clean human attribution + Signed-off-by:, and all 15/15 CI checks pass.
Requesting changes on three blockers (two §3 safety/handoff issues in commit 6, plus §5 hardware evidence):
Blockers
-
§3 Stage 1 → Stage 2 live-DCP re-init hazard (
src/display.c:1146)
config.henablesUSE_FBin both Stage 1 and Stage 2. In testing, Stage 2 ran behind an older Stage 1 (b13) that skipped HDMI on 27.2, so only Stage 2 starteddcpext. Once Stage 1 is built frommainwith this change:- Stage 1's
display_init()brings up HDMI ondcpext(1920x1080) andmain.c:453handsdcpexton running viadcp_hand_on(). - Stage 2 then enters
display_init()(src/display.c:1146):} else if (display_is_external && is_mac) { printf("display: External display found, reconfiguring\n"); return display_configure(NULL); }
- Unlike
display_init_t8152()(which adopts any non-640x1136 framebuffer), Stage 2 unconditionally callsdisplay_configure(NULL)→dcp_init()→rtkit_boot()on adcpextwhose RTKit and scanout are already running (and which stops answering power requests after an AFKv2dptx-portconnect). - Also note:
display_handed_on_live()is a per-stagestatic bool(dcp_handed_on). On J473 27.2 specifically, Stage 2'skboot_prepare_dt()still keeps Stage 1's heap viadisplay_dart_tables_inherited()becausedart-dispext0is locked, but if Stage 1 ever hands on an AFKv2dptx-portDCP whose display DARTs are unlocked and Stage 2 adopts the framebuffer, Stage 2 would seedisplay_handed_on_live() == falseand drop Stage 1's heap reservation. Please make the Stage 1 → Stage 2 adoption and heap-retention invariant explicit (and verify a chain where Stage 1 also includes this PR, or adopt an already-configured framebuffer instead of re-booting a live DCP).
- Stage 1's
-
§3 Retained-heap reservation ordering hole (
src/kboot.c:12518vssrc/main.c:513)
kboot_prepare_dt()reserves this stage's heap ([_end, heapblock_high_water())) whendisplay_handed_on_live()is true, which is only set insidedcp_hand_on()duringdisplay_shutdown().- On the default
main.c:450 → 453path,display_shutdown()runs beforekboot_prepare_dt(), so the heap is reserved. - However, if an AFKv2
dptx-portDCP is started aftermain.c:453(e.g., viadisplay=inpayload.c:329whendisplay_init()did not start DCP, or via proxy beforekboot_prepare_dt()/kboot_boot()),ibootis still open duringkboot_prepare_dt(), sodisplay_handed_on_live()is stillfalseand the heap holding the live DCP's RTKit buffers is not reserved — thenmain.c:513hands the DCP on running into Linux with unreserved DMA buffers. - Please close this window (e.g., hand off before
kboot_prepare_dt()aspayload.c:639does for T8152, and/or havedisplay_handed_on_live()cover a live AFKv2dptx-portDCP thatdisplay_shutdown()will hand on, while still failing closed ifdisplay_shutdown()fails).
- On the default
-
§5 Evidence — J473 regression counts and non-J473 hardware rows
- On the J473 27.2 Fedora boot, please add the §5 regression check counts (
0 SELinux denials,0 failed units,0 new kernel errors) and confirm a headless J473 boot (no HDMI cable attached, sincedcp_dptx_hpd(..., true)is asserted unconditionally wheneverfunction-hdmi_hpdis present) still boots cleanly without hangingdcp_handoff(). - Per §1/§5, this series modifies shared
dcp_init(),dcp_hdmi_dptx_init(),display_configure(),dptx_phy_*, anddptxport_call_v2()paths used on J873g as well as M2 machines. Please land the J873g (owner run) and J413 regression rows listed under "Still to run" before merge.
- On the J473 27.2 Fedora boot, please add the §5 regression check counts (
Non-blocking notes
display=config variable on J473 27.2: Becausemain.c:453callsdcp_hand_on()(settingdcp_running = true), adisplay=<mode>line parsed later inpayload.c:329will hitdcp_left_running()indisplay_start_dcp()and fail with"display: a DCP did not stop; not starting it again". Worth keeping in mind if custom boot resolutions are expected to work on 27.2.DPTX_PHY_T602Xrate indptx_phy_max_link_rate():dptx_phy_set_link_rate()writes0x2a3(HBR3) forDPTX_PHY_T602Xwhiledptx_phy_max_link_rate()keeps returning2700(HBR) — fine to leave untouched until M2 Pro/Max desktops on 27.2 can be tested, just flagging for future follow-up.
Assisted-by: LLM (Gemini 4 Neon)
Advertise live display support in the load header and pass the retained heap in a copy of the ADT. Preserve the inherited framebuffer without starting a second RTKit session. Reject raw proxy vectors while a live receiver is required. Complete pending live display handoffs before measuring retained memory. Keep the reservation clear of earlier FDT entries and require successful DT preparation before kernel entry. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Thanks for the review. 3daee92 addresses both commit-6 blockers. The PR body has the full response under "Review response".
Rollout note: a Stage 1 with this change will not chainload a Stage 2 without the flag while it holds a running DCP, so Stage 2 has to ship it first or together. Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Adversarial re-review of commit 7 (3daee9293eab4ddbbfca023dd7f8dd4befdbba82) against 2ec12954 and the pre-PR checklist (§1–§6).
Both §3 code/handoff blockers from 2ec12954 are cleanly resolved (0 new code, ABI, policy, or CI defects found). Keeping the existing REQUEST_CHANGES gate active solely for the two remaining §5 hardware rows listed under Still to run.
Verified in 2ec12954..3daee929
- Load header ABI (
src/chainload.h,src/start.S,src/chainload.c):CHAINLOAD_HDR_F_LIVE_DCP(bit 1) preservesCHAINLOAD_HDR_SIZE(0x20) and field offsets (checked by_Static_assertand.ifinstart.S), stays forward-compatible with older senders, andchainload_image()refuses any receiver lackingCHAINLOAD_HDR_F_LIVE_DCPwhendisplay_needs_live_receiver()is true. - Private ADT copy & bounds (
src/chainload.c,src/display.c): Inserts/chosen/aurora,dcp-retained-heap(LIVE_DCP_ADT_ENTRY_SIZE= 44 bytes, 4-byteADT_ALIGNpreserved) into a private ADT copy insidefw_dataso retries (aura-tryfallback) leave the live ADT untouched.chainload_set_adt_range()bounds-checks againstcur_boot_args.devtree_sizeand correctly shifts/chosen/memory-mapoffsets past the inserted/chosenproperty (SEPFW,DeviceTree,preoslog,BootArgs). Cache maintenance covers both parked (dc_cvac_range) and staged/in-place (chainload_asm.S) copies.display_init()preserves the inherited display before the external-display reconfigure branch, anddisplay_start_dcp()refuses re-init while the marker is present. - Reservation ordering & fail-closed guards (
src/kboot.c,src/proxy.c):- Both
kboot_prepare_dt()andchainload_image()calldisplay_prepare_live_handoff()before measuringheapblock_high_water()/display_handed_on_live(), covering late modesets (display=, proxy) and failing closed if endpoint shutdown fails. kboot_prepare_dt()validatesinherited_dcp_heap, extends[image_start, image_end)regardless of whether display DARTs are locked, and usesdt_reserve_retained_span()to emit strictly non-overlapping memreserve intervals around pre-existing reservations (FDT buffer, legacy DART L2 tables) so U-Boot does not drop partially overlapping spans.kboot_boot()re-runsdisplay_prepare_live_handoff()and refuses entry ifdisplay_needs_live_receiver() && !dt_retained_live_dcp.proxy.c(P_VECTOR) refuses raw vectoring whiledisplay_needs_live_receiver()is true.
- Both
- Rollout safety, §4 hygiene, & CI: Rollout ordering (Stage 2 must ship no later than Stage 1) is clearly documented; all 7 commits carry human identity (
Ryan Murray <ryan@aurorasilicon.org>) +Signed-off-by:with zero AI commit trailers; 15/15 CI checks green; J473 nested stage-to-stage + settled 0/0/0 regression row and J413 13.5 regression row are logged.
Non-blocking note
- Because
proxy.cnow refusesP_VECTORwheneverdisplay_needs_live_receiver()is true (the right fail-closed §3 choice),proxyclient/tools/chainload.py(which usesP_VECTOR) will be rejected from a Stage 1 that already handed an AFKv2 dptx DCP on running. Worth keeping in mind for lab/recovery workflows (or following up to teachchainload.pythe live-DCP marker /chainload_imagepath).
Remaining merge gate (§5 hardware evidence only)
- J473 headless (27.2, no HDMI / no USB-C attached): Especially important to verify on hardware because
display_configure()still runsdcp_connect_dptx()+dcp_dptx_hpd(..., true)anddisplay_shutdown()invokesdcp_hand_on()on AFKv2 dptx-port even whenhpd == 0. - J873g owner row: Confirms no regression across the shared
dcp_hdmi_dptx_init/dcp_dptx_needs_ap_hpd/dptx-phypaths (commits 1, 3, 4).
Once those two rows are posted, this is ready to APPROVE.
Assisted-by: LLM (Gemini 4 Neon)
|
J473 (M2 Mac mini, 27.2 stub) rows for 3daee92. The physical headless row (both displays unplugged) is still to run; Ryan is asked to unplug them in the morning. The simulation below covers aura's own no-display path in the meantime. Headless, simulated. I wrote no Stage 1 and no
Timing, attached, production v1 (same display path). Stage 1 hands over to Stage 2 in 0.125 s. The HDMI frame is up 3.44 s after Stage 1 hands over: 2.7 s of status wait plus 0.44 s of modeset. Two boots. Details
Assisted-by: LLM (Claude:Opus 5.5) |
|
@sithglan — relaying Ryan's J873g regression request for
Assisted-by: LLM (Gemini 4 Neon) |
|
Headless follow-up: #458 (stacked on this PR, one commit) reads the HDMI HPD pin from Assisted-by: LLM (Claude:Opus 5.5) |
|
Follow-up for the running DCP this PR hands on: #467 (stacked, two commits) describes the RTKit session on the DCP node, so a kernel can adopt it without HELLO/EPMAP. It also gives aura's syslog and ioreport buffers reserved-memory regions with Assisted-by: LLM (Claude:Opus 5.5) |
|
@sithglan, one J873g row would let this land, together with the stacked #467. The kit from yesterday's request targeted an older commit; this one builds the current heads directly with no patch: https://gist.github.com/RyanTheTide/9ebc3216edd8d9bb3ac82697cac83add Two Assisted-by: LLM (Claude:Opus 5.5) |
|
@sithglan @Acelogic, one J873g row would let this land together with the stacked #467, whose head is now final ( Two |
|
J873g (Mac mini M6) owner row for #451 and #467, as asked. Both rows show no change from the normal boot. Setup
Stage 2 log (read from the
aura-try on the J873g resets right after Linux starts.
Assisted-by: LLM (Claude:Opus 5.5) |
|
Physical headless row, J473 (M2 mini, 27.2), with a person unplugging both displays Both display cables were unplugged at the Mac: the HDMI monitor and the USB-C-to-HDMI cable. Only Ethernet, the debug tether, a USB keyboard and a USB-A stick stayed attached.
Follow-up for #458: with no sink, Stage 2 still spends 2.7 s on the display-status wait. That's fine for this row, but worth checking whether the HPD-low path can return sooner. Assisted-by: LLM (Claude:Opus 5.5) |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Formal adversarial pre-PR checklist (§1–§6) re-review at 3daee9293eab4ddbbfca023dd7f8dd4befdbba82 (CI: 15/15 green — build, test x5 incl. native ARM start.S, stage1-size x5, esp-stage2-size, format-check, aurora-agent-policy x2; MERGEABLE / CLEAN).
Verdict: APPROVE
Both remaining §5 hardware rows from my prior 3daee929 review are now in, with 0 code, safety, ABI, CI, or policy blockers remaining:
- J873g owner row (
@sithglan, row A =3daee929): Booted viaaura-tryon 27.2 stub (Stage 1 untouched) with HDMI (DP-2, 2560x1440@60) and USB-C (DP-1, 2560x1440@60) connected: identical display modes, identical Stage 2display:/dcp:/dptxlogs, 0 failed units, 0 AVC denials, 0 DART faults, and identical baseline kernel errors. Confirms no regression across the shareddcp_hdmi_dptx_init/dcp_dptx_needs_ap_hpd/dptx-phypaths. - J473 physical headless row (
@RyanTheTide, both displays physically unplugged): Tested on76f50f2a(#451 + #467, default7.3.0-aurora-fleet83, default cmdline) — no 10 s stall (waited 2700 ms, Linux up at ~7.7 s), SELinux Enforcing, 0 AVC denials, 0 DART faults, 0 DCP errors, 0 oops (only known unrelatedaurora-sep.service). - Prior verified rows: J473 27.2 attached HDMI (1920x1080, nested stage-to-stage live handoff + settled 0/0/0) and J413 13.5 eDP (2560x1664, 0/0/0). Unowned M2 Pro/Max desktops (J474s/J475c/J180d on 27.2) are not in the lab; J473 (T8112 27.2) + J413 (T8112 13.5) + J873g (T8152 AFKv2 dptx) stand in cleanly.
Stage 1 & Rollout Notes
- Stage 1 touchpoints: This PR touches shared Stage 1/Stage 2 code (
src/start.S,src/chainload.{c,h},src/dcp.{c,h},src/display.{c,h},src/dart.c,src/dcp/dptx_phy.{c,h},src/dcp/dptx_port_ep.{c,h},src/proxy.c,src/kboot.c). All 5stage1-sizeCI jobs pass (headroom unchanged at 16312 B) and the author is the Stage 1 owner. - Rollout invariant: A Stage 1 built with
#451that hands a DCP on running refuses to chainload a Stage 2 lackingCHAINLOAD_HDR_F_LIVE_DCP(and#467will additionally requireCHAINLOAD_HDR_F_LIVE_RTKIT). Ship Stage 2 with this change no later than any Stage 1 built from it, and run cold-boot Stage 1 qualification as part of the release cut rather than installing Stage 1 from PR merge.
§1–§6 Checklist Summary
- §1 No model gating: Pass (firmware AFKv2 announcement, ADT
function-hdmi_hpd, and PHY type replace chip/version gates). - §2 Production-ready: Pass (default cmdline, no hacks/sleeps).
- §3 Safety: Pass (
CHAINLOAD_HDR_F_LIVE_DCPhandoff guard, private ADT copy, non-overlapping memreserve splits, fail-closedkboot_boot()andP_VECTORrefusal). - §4 Clean-room & attribution: Pass (all 7 commits carry human identity +
Signed-off-by:, 0 AI commit trailers,Assisted-by:in PR body). - §5 Evidence: Pass (J473 attached + nested + physical headless, J413 13.5, J873g owner row, 838/838 host tests).
- §6 Naming: Pass.
Assisted-by: LLM (Gemini 4 Neon)
|
A correction to my J873g note above: the trial resets are not a T8152 clock problem. aura's 24 MHz is right. On the running M6, What happens
Why it matters beyond this Mac: any OS whose kernel turns that option off and runs no watchdog daemon cannot keep an aura-try trial alive past about 30 s of Linux. A healthy trial looks like a failed one and falls back. The release notes have the distributions' Stage 2 updaters install a new Stage 2 as an aura-try trial, so on such an image every update would fall back. It may be worth a line in the aura-try docs: Linux has to take over the trial watchdog, either with Assisted-by: LLM (Claude:Opus 5.5) |
On M1 Mac mini (J274, T8103) running macOS 27.2.1 firmware, /arm-io/dcp
drives HDMI directly (display_is_external = true, display_is_dptx = false)
over an AFKv2 disp0-service iBoot interface. Once the display has been
powered on and modeset, rtkit_sleep() times out waiting for the AP power
transition ("rtkit(dcp): AP power transition timed out"), leaving
dcp_running = true so subsequent handoff fails ("Display handoff failed;
returning to proxy") — the same 27.2 firmware behaviour handled for
AFKv2 dptx-port controllers in aurora-silicon#451.
Without a connected display (headless, connected:0), display_configure()
returns before powering on the display and rtkit_sleep() still succeeds
in <1 ms, so the headless path keeps sleeping the DCP.
Add dcp_ib_is_afkv2() and generalize display_dptx_hands_on() into
display_dcp_hands_on() so a lit external AFKv2 display is handed on
running via dcp_hand_on() and published to Linux through
apple,rtkit-handoff ("dcp-live-v1"). Evaluate display_dcp_hands_on()
before dcp_ib_shutdown() frees iboot.
Tested:
- J274 (M1 Mac mini, T8103, macOS 27.2.1 main OS):
- Cold boot with HDMI (1920x1200@60) plugged in via enrolled Stage 1:
modeset succeeded, "display: handing the DCP on running (external
AFKv2 display)", published live RTKit session v12 (3 buffers,
epmap 0000051f 00821fff), Linux 7.3.0 apple-dcp adopted dcp-live-v1
seamlessly (fb0 appledrmfb, 1920x1200@60, 0 DART faults, 0 failed
units).
- Headless boot (HDMI unplugged) on patched Stage 2: connected:0,
slept DCP cleanly in 0.4 ms ("pmgr: resetting device 0.DISP0_CPU0").
- Host: clang-format clean, Stage 1 builds cleanly (12,296 B headroom,
no __TEXT_BOOT_EXEC), Stage 2 ESP build links cleanly, full pytest
tests/python: 1251 passed, 26 skipped.
Risk: low — only applies to external displays on an AFKv2 iBoot
interface after power-on; headless external boots, AFKv1 (13.5) external
displays, internal panels, and existing AFKv2 dptx-port displays keep
their previous behaviour.
Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Problem
The M2 Mac mini (J473) gets no picture before Linux on the 27.2 stub. iBoot never lights HDMI on M2 desktops, so aura has to drive the DCP itself, and on 27.2 it didn't.
dcp_init()refused the dptx path unless the stub was 13.5. Past that gate, five more things stopped it on this firmware. Today's kernel doesn't drive the 27.2 DCPs on T8112 (apple-dcp: DCP firmware-compat 27.2.0 ... is not supported), so without aura the HDMI stays dark all the way into Linux.Change
Seven commits. The first six each fix one thing the J473's 27.2 firmware ran into; the seventh answers the review of the sixth:
function-hdmi_hpdon the dp2hdmi-gpio node. This replacesif (chip_id == T8152); the J873g's ADT has the same property.CHAINLOAD_HDR_F_LIVE_DCPin its load header; the sender passes a private ADT copy with/chosen/aurora,dcp-retained-heap(start of the retained heap); the receiver'sdisplay_init()keeps the inherited framebuffer anddisplay_start_dcp()refuses to start a DCP again. The handoff is completed (display_prepare_live_handoff()) before chainload orkboot_prepare_dt()measure the heap, so a DCP started late (display=, proxy) is covered too, andkboot_boot()refuses entry if the display state changed after the tree was prepared. The heap reservation skips ranges already in the FDT reserve map, and a raw proxy vector is refused while a running DCP still needs a receiver.Testing
preserving live display from the previous stage (1920x1080)and starts no second RTKit session. Linux keeps the inherited range reserved (0x80413c000-0x807633fff), and simpledrm draws at 1920x1080.make USE_CLANG=1 BUILDSTD=1 RELEASE=1 CHAINLOADING=1 ESP_STAGE2=1and the Stage 1 release build both link (Stage 1 vital end 0x11c048 of 0x120000). Fulltests/python: 838 passed, 25 skipped, the same as main. New and extended tests cover the ADT marker, the receiver flag, the reservation split and the proxy-vector refusal.Still to run
Rollout order: a Stage 1 with this PR that hands a DCP on running will not chainload a Stage 2 that lacks the live-DCP flag. It stops instead of letting that Stage 2 boot the running DCP again. So Stage 2 must ship this PR no later than any Stage 1 that does. The installer payload carries both from one release.
Reviewer detail: what the 27.2 firmware did at each step
Logs: one per step, from the live J473 (aura console over the Stage 1 USB proxy,
display_initcalled over the proxy).dcp: dtpx-port is only supported with V13_5 OS firmwaredart-dispext0 sid 0 locked, tcr 0x5 ... locked stream does not translate->failed to initialize DISP DARTconnected:0 timing_cnt:0group 0 command 5 status 0xe00002bcx5 (WILL_CHANGE_LINK_CONFIG)group 1 command 3 status 0xe00002bc(SET_DRIVE_SETTINGS) each roundset_link_rate 0x14,connected:1 timing_cnt:17, 1920x1080,swapped!AP power transition timed out(QUIESCED and IDLE),IOP power transition timed out(SLEEP), with: 5 s waits, HPD low, release_display + 2 s callback service (DEACTIVATE then OK), display power off, per-endpoint session close. Without a connected port the same DCP sleeps.ADT facts (J473, 27.2): display-crossbar0 dfp 5 "dptx" =
dptx-phy@3C540000(dptx-phy,t8112, dp-switch-dfp-endpoint 5, dp2hdmi-gpio-parent); dp2hdmi-gpio:function-dp2hdmi_pwr_engP15,function-hdmi_pwr_engP16 (pKW4, 0x800000),function-hdmi_hpdAOP GPIO 49,pcon-stays-on1. macOS 27.2 shows the HDMI port's converter link at HBR2.Hand-on details:
dcp_hand_on()=dcp_handoff()(#419) + marking the DCP running, so this stage never starts it again. kboot reserves[_end, heap high-water)when a DCP was handed on, the same rule as for a post-M4 ANS. The display stays lit: the kernel doesn't take over this DCP today, and simpledrm keeps drawing on HDMI.Review response (Dj, 2ec1295)
display.c:1146: commit 7. The marker is an ADT property in a copy that the sender hands to the next stage, so it survives the stage boundary; it is not the per-stage static.display_init()checks it before the external-display reconfigure branch.display_start_dcp()also refuses while it is present, so adisplay=mode line gives a clear error instead of rebooting RTKit. The sender refuses a receiver withoutCHAINLOAD_HDR_F_LIVE_DCP. kboot in the receiver reserves from the inherited heap start, so Stage 1's heap stays reserved whether or not the display DARTs are locked.kboot.c:12518:kboot_prepare_dt()now callsdisplay_prepare_live_handoff()first. That stops a live AFKv2 dptx-port DCP's endpoints wherever it was started, then readsdisplay_handed_on_live()and the heap high-water. If the handoff fails, DT preparation fails (fail closed).kboot_boot()repeats the check and refuses entry if a DCP went live after the tree was prepared. Chainload measures the heap after the same call.Evidence (lab):
traces/display/20261122-j473-live-handoff/(untainted).Assisted-by: LLM (Claude:Opus 5.5)