Repository navigation
kboot: T6050: hand off a prewired internal panel and the combo PHY ports the tree takes - #282
Conversation
9efa489 to
3cb4003
Compare
|
Thanks for the J716c display and Type-C handoff; that's a big piece of work. Several branches are selected by the board compatible rather than by a hardware property: We select behaviour by a hardware property and extend one path. The comment at We can't run a T6050 ourselves, but are glad to help line up owner rows. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Thanks for the J716c display and Type-C handoff. The 27.2 row with all three displays and a deep-sleep resume is great, and rewriting apple,firmware-compat on each apple,t6050-dcpext node from the stub's version is a good catch.
I agree with Ryan's comment, and it is what holds the merge. Six branches are chosen by chip_id == T6050 plus apple,j716c:
src/kboot.c:770,:8150,:8186src/kboot_atc.c:939,:1286src/kboot_display_handoff.c:4451
That gate also creates a second T6050 display path (dt_set_display_j716c()) next to t6050_handoff(), and a second ATC path next to t6050_setup_atc().
What would make it mergeable:
- Key the T6050 handoff on the tree shape that the comment at
:8185already names: the inherited display is described by address, with clocks and scratch prewired. - Key the combo-PHY tunable copy on the
apple,t6050-combo-phynode alone. - Reserve RTBuddySeg logs as no-map on every chip whose ADT has them (
dt_reserve_j716c_oslogs()). The overlap rules you wrote (inside the retained heap or image reservation, refused otherwise) are the right ones to keep. - The dcpext firmware-version rewrite already keys on the node, so it needs no board check either.
New: the red format-check is base drift, not this PR. Every violation is in src/sptm_virt_s2r.c, which main has since fixed, and the four files you touch pass clang-format 20.1.8 at this head.
Once reworked and green, it merges. These rows come after the merge, with a revert ready:
- your J716c display and deep-sleep rows on 27.0 and 27.2;
- a J714s and J775D display no-regression row for the shared T6050 path.
dba81b8 to
dcb82ac
Compare
Thanks @RyanTheTide and @DjDeveloperr. Reworked along those lines; no branch tests
The J716c rows on the 27.2 stub are in the description. 27.0 and the J714s/J775D no-regression rows will follow after the merge, as you suggested. |
RyanTheTide
left a comment
There was a problem hiding this comment.
No blockers. Re-checked dcb82ac (on top of #427) against our 11-19 comment.
Earlier points, all resolved:
- No branch tests
chip_id == T6050plusapple,j716cany more.dt_set_display_j716c()and the second ATC path are gone, and the onlyj716cleft insrc/outside comments is the existing ISP table. - The handoff picks the prewired shape from the tree (
t6050_prewired(): a dcp node at the ADT coprocessor address carryingclocks,apple,clock-idsandapple,bw-scratch). It is tried after the aliased and headless shapes, and the headless match needs exactly oneiommusentry, so a prewired tree can't fall into the headless path. kboot_setup_atc()(src/kboot_atc.c:1316) now keys on theapple,t6050-combo-phynode, and the RTBuddySeg logs moved to #427.
The new checks fail safe: a missing or mismatched clocks/apple,clock-ids, bad scratch cells, a non-identity ranges, a DART mismatch or a pt-region in OS RAM all bail before the scratch copy is committed, so the panel stays on the boot framebuffer.
Three smaller points:
src/kboot_atc.c:1209-1210: the RX clock groups are now cut to 4 records. That table is shared with every T6050 board (J714s, J775D), so ports 1-5 there change too, not only the J716c. The fixed 4 also silently drops records if a later ADT lays the group out differently. Please derive the count from the group itself: for example, require the group to be exactly two halves of equal size and copy the first half, and keep the whole group (with a log line) otherwise. Please also move the J714s/J775D Type-C no-regression row ahead of the merge, since that path changes for them.src/kboot_display_handoff.c:3731: the prewired path takes the firstapple,display-subsystemnode, while the comment att6050_check_dt()says there is one display subsystem. Refuse the prewired shape when a second one exists, so a multi-die tree can't hand off the wrong one.src/kboot_display_handoff.c:4311: when the stub's version is not three cells, the external engines the tree enables keep the tree's version, and the driver uses that version's method IDs. That is the mismatch this commit fixes. The edit is made on adcp6_scratch()copy, andt6050_publish()already usesfirmware_set_fdt()on such a copy for the internal dcp. Using it here too would handle a four-cell version, and a failed write would still change nothing. Otherwise, at least say in the log that those engines will use the wrong method IDs.
We can't run a T6050. The J716c rows in the description cover the new shape. The J714s and J775D rows (internal panel or headless scanout, plus a Type-C port 1-5 device) cover the shared path and point 1.
Assisted-by: LLM (Claude:Opus 5.5)
|
Blockers: 2. The tree-shape selection and the combo-phy keying look right to me. The three points in the 11-21 03:54Z review (the fixed 4 RX clock records at
Checked: HW row: J714s (internal panel) and J775D (headless scanout), each with a Type-C device on a port 1-5, on this head: display up, the port enumerates, the same tunable set as main apart from the RX-clock change, 0 new kernel errors, 0 failed units. Run these before the merge, because the ATC table and the port filter change for them too. Plus the promised J716c row on 27.0. Assisted-by: LLM (Claude:Opus 5.5) |
0ee24fc to
2e2d7e7
Compare
dcb82ac to
71708f7
Compare
@RyanTheTide, thanks. The stack is now 2e2d7e7 (#427) ← 6b8cc4a ← 71708f7, rebased onto main 58e712b. Both commits of this PR were amended in place.
From your 06:15 comment:
Other checks:
J716c row (this head, on #427 and with #281, 27.2 stub): panel and two 4K monitors over a Thunderbolt dock are up. The four |
RyanTheTide
left a comment
There was a problem hiding this comment.
No blockers in the code. Re-checked 6b8cc4a and 71708f7 (on #427 at 2e2d7e7) against our 03:54Z and 16:57Z comments.
Resolved:
- RX clock groups (
src/kboot_atc.c): every T6050 tunable group is copied whole and in the ADT's order, as on main. The J714s and J775D tunables are therefore unchanged by this PR. - A second display subsystem:
t6050_disp_node()(src/kboot_display_handoff.c:3736) refuses the prewired shape when a secondapple,display-subsystemnode exists. The aliased path keepsdisp0. - dcpext version:
t6050_ext_version()(:4329) writes throughfirmware_set_fdt()on adcp6_scratch()copy, so a four-cell version is serialized whole and a failed write changes nothing. It touches only availableapple,t6050-dcpextnodes, and those are disabled in the J714s/J775D trees. - The disclosure lines are out of both commits, and the description ends with the Assisted-by line.
Still open: CI. Because this PR's base is #427's branch, only the policy and size jobs ran on this head, not Pytest. test_t6050_tree_shape.py and test_rtbuddyseg_logs.py pass for us on a Linux host at 71708f7, but the macOS jobs haven't built these fixtures. After #427 merges, please retarget this PR to main and get a full green run before it merges.
HW rows still needed before merge, as you listed: J714s (internal panel) and J775D (headless scanout), each with a Type-C device on a port 1-5. Pass: display up, the port enumerates, the same tunable set as main, 0 new kernel errors, 0 failed units. Then the undocked J716c s2idle resume row and the J716c row on 27.0.
Assisted-by: LLM (Claude:Opus 5.5)
There was a problem hiding this comment.
Re-review at 71708f74110f (stacked on #427 2e2d7e71): 0 code, policy, or attribution blockers remain.
Our earlier CHANGES_REQUESTED blockers from dba81b8 and @RyanTheTide's follow-up items are all resolved:
- No chip/board gates (§1):
dt_set_display_j716c()and the second ATC path are gone.t6050_handoff(dt, true)keys on the prewired tree shape (t6050_prewired()),kboot_setup_atc()keys onapple,t6050-combo-phy,t6050_setup_atc()copies every port withapple,guest-port-reserved(0..5) whole and in ADT order (no RX-clock truncation), and RTBuddySeg log reservation moved to #427 for all chips. - Validation & fail-soft transactions (§2/§3):
t6050_identity_reg(),t6050_check_prewired(),t6050_disp_node()(refusing a secondapple,display-subsystem),t6050_check_ext_scanout()/t6050_ext_display_dart(), and the ADTpt-regionalignment/bounds/OS-RAM checks all bail before committing the scratch copy.t6050_ext_version()updates availableapple,t6050-dcpextnodes transactionally viafirmware_set_fdt()(handling 3- and 4-cell versions and leaving disabled nodes untouched). - Attribution (§4): Both commits (
6b8cc4a6,71708f74) carry human author/committer andSigned-off-by:only.
Still owed before approval/merge:
- Stacked base & full CI: Merge #427 (
2e2d7e71), retarget #282 ontomain, and get a full green CI run on this head (onlypolicyandESP stage 2 vital sizeran against #427's branch;build,format-check,stage1-size, and all Linux/macOSPytestjobs still need to run on71708f74). - Hardware rows (§5): J714s (internal panel) and J775D (headless scanout) each with a Type-C device on port 1-5 (display up, port enumerates, same tunable set as
main, 0 new kernel errors, 0 failed units), plus undocked J716cs2idleresume and the J716c 27.0 stub row.
Thanks @RyanTheTide and @DjDeveloperr for confirming zero code, policy, or attribution blockers on
|
e6e66a9 to
78337e0
Compare
8907fa6 to
545f0ef
Compare
Restacked cleanly onto the rebased #427 head (
|
|
Could the external engines this PR enables from the tree get the same placement checks as the internal display before they are handed over? On the internal side, For an engine the tree enables itself, Suggestion: run a per-engine placement check (segment-ranges and pt-regions against RAM, parameterised by the nub and DART paths) for each tree-enabled engine, and have Assisted-by: LLM (Claude:Opus 5.5) |
There was a problem hiding this comment.
Formal §1–§6 pre-PR re-review at 545f0ef504f8 (base j716c/rtbuddyseg-logs-no-map / #427, only 3 CI checks ran).
Stage 1 Impact
- Touches Stage 1: Yes. Modifies
src/kboot_atc.candsrc/kboot_display_handoff.c(both in unconditionalOBJECTS). Requires Stage 1 owner sign-off under §3 before merge — andstage1-sizehas not yet run on545f0ef504f8.
Audit Summary
- §1 No model gating: Pass. No chip/board gates (
t6050_handoff(dt, true)keys ont6050_prewired(),kboot_setup_atc()keys onapple,t6050-combo-phy, RX clock tunable groups are copied whole in ADT order). - §4 Attribution: Pass. Both commits (
da106863ed60,545f0ef504f8) carry human author/committerErik Bourget <erik@ebourget.net>and humanSigned-off-by:only, with zero AI commit trailers; PR body ends withAssisted-by:. - §2 / §6: Pass.
Blocking Findings
- Stacked base (
#427) & incomplete CI:- Because this PR still targets
#427's branch (j716c/rtbuddyseg-logs-no-map, which is stillOPENandDIRTY/conflicting withmain), onlyaurora-agent-policyandesp-stage2-sizeran (3 checks). Allbranches: [ main ]workflows (build,format-check, all 5stage1-sizetoolchains, and all 5 Linux/macOS/arm64Pytestjobs) never ran on545f0ef504f8. - Land
#427, retarget#282ontomain, and obtain a full green CI run on the resulting head.
- Because this PR still targets
- §3 Safety — External-engine placement checks (echoing @RyanTheTide's 2026-11-22 review):
- While internal display handoff verifies that non-
__OS_LOGiop-dcp-nubsegment-rangesandpt-region-23/0/16stay outside OS RAM[phys_base, +mem_size), DT-enabledapple,t6050-dcpextengines bypasst6050_ext_one()early (src/kboot_display_handoff.c:4195) and are accepted byt6050_check_ext_scanout()and version-stamped byt6050_ext_version()without checkingiop-dcpextN-nubsegment-ranges,dart-dcpextNpt-region-23,dart-dispextNpt-region-16, or engine running/UUID state. - Add per-engine placement/state checks (or call @RyanTheTide's shared helper once it lands on
main) so any tree-enabled engine with segments/page tables in OS RAM or invalid state is skipped with a log message rather than handed over.
- While internal display handoff verifies that non-
- §5 Hardware evidence (still owed before merge):
- J714s (internal panel) and J775D (headless scanout), each with a Type-C device on port 1–5 (display up, port enumerates, same tunable set as
main, 0 new kernel errors, 0 failed units). - J716c undocked
s2idleresume row and J716c 27.0 stub row.
- J714s (internal panel) and J775D (headless scanout), each with a Type-C device on port 1–5 (display up, port enumerates, same tunable set as
|
The external-engine safety follow-up uses the shared placement check from #471 for DT-enabled engines. The candidate checks the engine's firmware identity, running state and live DART roots before stamping the firmware version or accepting its scanout stream. It refuses unsafe engines and their child nodes even with a packed tree, and drops their scanout references. I tested the safety change locally with a clean merge of the #427 base and current main. The combined candidate passed 1,106 Python tests, linked both stages, and passed the GCC Stage 1 size checks, including dev-audit with 2,072 bytes of headroom. The published head is still |
With both #281 (T6050 G17C GPU handoff) and #282 (T6050 display handoff) merged on top of main, placing both in .rodata.xtext pushes .rodata + .rela.dyn 1,728 bytes past a 64 KiB boundary while .text still has 24 KiB free. Keep T6050_INIT and T6050_TEXT in .text so .text, .rodata, and .data all fit cleanly below _file_limit (6,072 B headroom). Signed-off-by: Erik Bourget <erik@ebourget.net>
…ioning If an input-enabled apple,t6050-dcpext engine passes t6050_ext_reject() but fails t6050_check_ext_adt() (for example its live power, CPU run, or DART state changes before t6050_ext_version() stamps it), the versioning loop previously skipped it and left it enabled with its original firmware properties and display-subsystem scanout entry. Disable and strip scanout via t6050_ext_disable() when t6050_check_ext_adt() fails in t6050_ext_version(), and only mark the engine done once its firmware properties update cleanly so a rescan after enclosing display-subsystem deletion cannot skip it. Add host tests covering an engine that passes rejection and stops running before versioning on both normal and packed device trees. Signed-off-by: Erik Bourget <erik@ebourget.net>
|
Updated
Verified at
Hardware at
@satchlj @DjDeveloperr: the J716c |
RyanTheTide
left a comment
There was a problem hiding this comment.
Verdict: MERGE at e6a3bcb13fca
Blockers: none
Checked: Re-checked against @satchlj's review at f6e5eace.
- Red Stage 1 CI: fixed.
mainis merged in, and the T6050 display and ATC helpers moved to.rodata.xtext. Every job at this head passes, including all five stage1-size jobs and the five Pytest jobs. - J716c row at this head (27.2 stub,
1.0.0b17-ge6a3bcb1): it is in the description.eDP-1is up at 3456x2234@120, all 4apple,t6050-dcpextengines areokayat (27, 2, 0), and the 4 combo-PHY nodes carry tunables. There are 0 new kernel errors and 0 new failed units against amaincontrol on the same Mac, which fell back to a 60 Hz simplefb. That is the row Dj asked for on0113c4ee. - New since
f6e5eace(d3184b17,1ddba986,e6a3bcb1):t6050_check_ext_live()is the old live check fromt6050_ext_one()moved into its own function. It now also runs for tree-enabled engines before they are version-stamped or kept as scanout, and the power-word reads are inside the fault guard now. Int6050_ext_version(), an engine that fails the re-check or the version write is disabled and stripped from scanout, anddoneis only set on success. The rescan ends because a disabled engine is no longer available.
Not blocking:
- Merge order with #281:
main+ #281 + #282 does not link Stage 1 (clang stage1 flavour,Code and data reach the DCP log buffer after stage 1!). This one has 7504 B alone with our clang 22. Whichever lands second has to mergemainagain and get stage1-size green before it merges. - The Stage 1 and T6050 board-owner sign-off is on our side. The J714s/J775D/27.0 rows come after the merge, as agreed. The undocked s2idle row waits on the PMU RTC alarm IRQ.
@satchlj: your points look fixed at this head. Could you re-review? Your change request still blocks the merge on GitHub.
Evidence
- CI at
e6a3bcb1: all checks pass. - Local,
e6a3bcb1merged intomain2c8fa8d8(x86 host):pytest -q tests/python/test_wdt_arm.py test_rtbuddyseg_logs.py test_t6050_tree_shape.py test_t6050_handoff_bounds.py test_t6041_display_handoff.py test_m4_dcp_handoff.py test_oslog_reservation.py: 233 passed. tools/stage1_size.shwith clang 22.1.6 (USE_CLANG=1 BUILTIN_LOGO=aurora BUILDSTD=1): stage1 7504 B, secure-audit 77928 B.main+ #281 + #282: stage1 does not link.- Read the
1458e4eb..e6a3bcb1source interdiff in full.
|
Merge order for #281 and #282: main + #281 + #282 doesn't link Stage 1 ("Code and data reach the DCP log buffer"), although each links alone. #281 is older, so it goes first. After it lands, #282 needs main merged in again with a normal push, and the gcc/fedora/nix stage1-size jobs must show headroom no lower than main's (move any further new code to |
|
@RyanTheTide @satchlj @DjDeveloperr Agreed on the merge order ( At The CI and hardware findings from |
|
@erikwb Stage 1 disposition: keep the validated native panel and external-engine handoff active by default where the ADT/DT describes it. Land after #281. Could you add the J716c display receipt to the #551-based combined run requested in #281? Please record the panel mode, external engines and PHYs, and compare the 39 dcpext service errors and the PMP timeout against the same saved main baseline. Include an owner-authorized installed Stage 1 cold boot, rollback verification and silent smoke. Please confirm your next test slot here. |
Signed-off-by: Erik Bourget <erik@ebourget.net>
|
Landing plan for #281 and #282: one consolidated list. Fix these and both merge. Since the change requests:
Open items:
The installed Stage 1 cold boot from the 11-29 disposition is the owner's 1TR step. It doesn't block this. @satchlj, every point from your 11-24 reviews is addressed (CI, owner sign-off, and exact-head rows for each PR alone). The combined row above is the last item, so please re-review or say if anything else blocks. @DjDeveloperr, FYI. |
There was a problem hiding this comment.
Verdict: FINISH at e6a3bcb
Checked: The standalone J716c row shows the internal panel and combophy handoff with no failed user services. The combined branch is a distinct landing tree and the earlier combined ESP Stage 2 failed to link. The reported clang Stage 1 margin on the new combined candidate is a separate check.
Blocker: For the paired landing, provide the combined ESP Stage 2 link result and a J716c run with both renderD128 and eDP-1 active and a working login session. Record the Stage 1 owner disposition and size results for whichever tree lands.
|
J716c results for #282 on post-#551
Stage 1 room: the combined tree links under clang and gcc for every flavour (before #551 it failed to link). Headroom is lower than Not run: an installed Stage 1 cold boot with rollback verification. That replaces Stage 1 on the Mac, so it waits for the owner's OK. |
|
Thanks @erikwb, that closes item 1. The combined J716c row ( That settles the landing: #281 and #282 merge back to back, never #281 alone. What's left is mechanical: App review at the new heads ( |
There was a problem hiding this comment.
Verdict: MERGE at b50e52c after the integration gates below.
Checked: Verified the forward-merge parents and the combined J716c boot at 8c2bb4fed9a7. The built Stage 2 exercised native eDP, the compositor and G17C rendering with zero failed user units. The combined size receipt reports links under clang and gcc. Approve as part of the owner-directed paired landing with #281, subject to current hosted CI and the exact landing tree's Stage 1 disposition.
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
There was a problem hiding this comment.
Verdict: MERGE at 2e2a9899
Blockers: none for code review — merge strictly back-to-back with #281, after queued hosted CI at 2e2a9899 completes green (and #570 lands or reconciles cleanly) with Stage 1 size/disposition checks on the landing tree.
Checked:
- Audited the
b50e52c7..2e2a9899delta: clean merge of#570(0188afd4, bringing currentmain8c16c3f4plus the 3 host-test fixes intests/fuzz/build.sh,tests/python/test_fuzz_regress.py, andtests/python/test_t6041_atc_usb2_device.py). - Zero changes to
#282's previously approved production code (src/kboot_atc.c,src/kboot_display_handoff.c) or its host tests (tests/python/fdt_harness.py,tests/python/test_t6050_handoff_bounds.py,tests/python/test_t6050_tree_shape.py). - Prior combined J716c Stage 2 receipt (
8c2bb4fe=#281a6d319f2+#282b50e52c7) carries over for the unchanged production code: nativeeDP-1, compositor + G17C render, and 0 failed user units. - DCO
Signed-off-by:present on2e2a9899; no Apple material or policy issues.
Evidence
- Merge parents of
2e2a9899:b50e52c7(previously approved head) and0188afd4(#570). - Diff files vs
main:src/kboot_atc.c,src/kboot_display_handoff.c,tests/python/fdt_harness.py,tests/python/test_t6050_handoff_bounds.py,tests/python/test_t6050_tree_shape.py, plus#570's 3 host-test files. - CI at review time: 18 queued, 1 pending, 11 skipped (
0failures).
|
Merging at |
Conflicts in src/kboot_display_handoff.c against #282 (prewired T6050 tree, t6050_ext_version): the state keeps both dcp_fw and prewired, the internal publish and both external paths write t6050.dcp_fw, and the adopted-panel helpers sit beside t6050_ext_index(). tests/t6050_display_host.c: the t6041 harness now walks ADT children (adt_tree.h), so the fixture's aborting traversal stubs are dropped. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
The 27.3 beta 1 row names its DCP ABI (27.3.0), yet t6050_pick_image() still required the running OS firmware enum to match it. The nub's ADT uuid identifies the image exactly, and nothing else in the handoff reads the OS firmware for such a row, so select it by that uuid alone. Rows whose DCP nodes take the OS firmware's version keep pinning it (27.0 and 27.0.1 share an iBoot version). t6050_ext_version(), which since #282 rewrites the version of the external engines a tree enables itself, now writes the same ABI as the internal dcp and t6050_ext_one(): the picked row's, or the OS firmware's when no row was picked. Before, a prewired tree on that image would have given its internal dcp 27.3.0 and its external engines 27.2.98.1. Tests: t6050-27.3-any-os (the image on an unknown OS firmware is still handed off with 27.3.0) and two ext-version cases (beta and unknown OS firmware, engines get the row's ABI); both fail before this change and pass after. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
What: Extend
t6050_handoff()andkboot_setup_atc()to support prewired T6050 device trees (matching the internal display by coprocessor address with prewired clocks andapple,bw-scratch, and copying combo PHY tunables byapple,t6050-combo-phy+apple,guest-port-reserved), validate/reject/version-stamp input-DT-enabledapple,t6050-dcpextexternal engines (t6050_ext_reject(),t6050_ext_version()), and place the T6050 display and ATC handoff helpers in.rodata.xtext(AURA_XTEXT).Tested: J716c (
M5 Max,T6050, 27.2 stub) and J313 (M1 Air,T8103, 27.2) Stage 2aura-tryboots ate6a3bcb13fca, plus CI (19 successes, 2 cancelled, 1 skipped) and local host/size checks (J713 was not booted; details and hashes inEvidence).M5 Max,T6050, 27.2 stub) ate6a3bcb13fca:eDP-1up at3456x2234@120(dpmsStatus: 1,vrrCapable: yes, DRMenabled), all 4apple,t6050-dcpextengines at(27, 2, 0), and 4apple,t6050-combo-phynodes with tunables; GPU absent (#282carries no GPU handoff). In the 2026-11-28 J716c pass (vsmaina0504b2a376dcontrol),0failed user units,1baseline failed system unit (aurora-peripherals.service, matching control and restored default),0LSM denials, and41err+lines: 39dcpextunable to match servicelines, 1systemd-gpt-auto-generatorline, and 1apple-pmp-report-entry ... -110probe line (themaincontrol has7err+lines and lacks those 39dcpextmessages; a separate earliere6a3bcb13fcarun vs the installed default Stage 2 had40err+lines vs43).M1 Air,T8103, 27.2,G13G B1) ate6a3bcb13fca: PASS —eDP-1, input, Wi-Fi, audio enumeration, Borealis compute (2670runs, 0 wrong) and render checks pass,0failed units,0AVC denials, same 1 Wi-Fi ringerrline as themaincontrol (G13 path unchanged).J713(M4 Air) was not booted for#282.e6a3bcb13fca: GitHub CI rollup is 19 successes, 2 cancelled, 1 skipped (build,format-check,esp-stage2-size, all 5stage1-sizetoolchains, all 5Pytestjobs,policypass; both cancelledreadiness/pr-textchecks also have successful runs;selftesthas 1 skipped and 1 success), plus local hostpytest, 6 shell suites, formatting, andtools/stage1_size.shpass.Risk: one-way door (Stage 1 code in
src/kboot_display_handoff.candsrc/kboot_atc.c; Stage 2 on ESP is reversible) · all Macs via shared Stage 1 / Stage 2 build, specifically T6050 Macs (J716c,J714s,J775D,K114s,K116s) and Stage 1 image size. Combiningmain + #281 + #282fails link withCode and data reach the DCP log buffer after stage 1!across the earlier1458e4eb7cbacheck, the 2026-11-28 ESP Stage 2 attempt (9aae69b24, clang-Os/-Ozand gcc), and the separate Stage 1 (stage1flavour) failure reproduced by@RyanTheTideonmain2c8fa8d8(linker printsafter stage 1!in both;#281merges first and#282reconciles.rodata.xtext/size after mergingmain).Revert: For Stage 2 on ESP, restore the prior
stage2binary and clearaura-try. Formain, revert the merge commit (git revert -m 1 <merge-sha>); reverting Stage 1 on hardware requires re-flashing Stage 1 with the machine owner in 1TR.Not yet:
#281merge ofmaininto#282and greenstage1-size/ combined build check (onceaurora-silicon/aura#281lands first).@satchlj's re-review on GitHub (change request from supersededf6e5eacestill blocks;@RyanTheTideapprovede6a3bcb13fca, with owner sign-offs and the post-#281size check still open).e6a3bcb13fca:M2,M3,M4(lab J713 currently awaiting human recovery), and external T6050 boards (J714sinternal panel andJ775Dheadless scanout with Type-C port 1–5 devices,K114sport 0,K116s, and J716c on the 27.0 stub;J714s/J775D/27.0agreed as post-merge rows).s2idleresume (pending kernelapple,t6050-pmu-rtcalarm IRQ). GPU stays disabled because#282carries no GPU handoff.Details
Branch progression over
main(26c1a85bb788, merged as15191b3c2b06):39b5db2b/0113c4ee: initial prewired T6050 internal-panel and combo PHY handoff plus external-engine firmware version stamping.4101923fe382: scoped the external-engine pass viat6050.ext_aurato input-DT-enabled engines.be98aca94ec8/f6e5eaceec09: required unique coprocessor register matches int6050_node_at()andt6050_ext_index(), recorded ambiguous ADT indices up front int6050_ext_reject(), and preserved the ADT index for scanout DART cleanup.15191b3c2b06: mergedmain(26c1a85bb788), updatingt6041_headless_fb()->t6041_headless_display(dt)intests/python/test_t6050_handoff_bounds.py.9b661123e3d0: failed closed on external-engine version/allocation errors int6050_ext_version().1458e4eb7cba: placed the T6050 display and ATC handoff helpers in.rodata.xtextviaAURA_XTEXT.d3184b1778fc: keptfdt_addresses.cout offdt_harness.LIBFDT_SOURCESsotests/python/test_wdt_arm.pydoes not link it twice.1ddba986798f: extractedt6050_check_ext_live()sot6050_check_ext_adt()verifies live power, CPU run, and DART lock/TTBRstate against the ADT roots before retaining scanout or version-stamping.e6a3bcb13fca: ift6050_check_ext_adt()fails duringt6050_ext_version()after passingt6050_ext_reject(), disabled the engine and stripped its scanout entry viat6050_ext_disable()instead of skipping it with original firmware properties intact, and deferreddone |= 1u << nuntil a clean version update so rescans after enclosing display-subsystem deletion cannot skip an engine.Design & integration notes:
Under the inherited
chip_id != T6050dispatch check indt_set_display_handoff()(and directly fromapple,t6050-combo-phyinkboot_setup_atc()), the new node matching tests no board compatible or chip sub-variant; each keys on the device tree or the ADT:t6050_prewired(),t6050_handoff(),t6050_check_prewired(),t6050_disp_node()): Findsapple,t6050-dcpby its unique ADT coprocessor address (t6050_node_at()) and the singleapple,display-subsystemnode by compatible (refusing a second display subsystem). Verifiesapple,clock-idsagainstdisp0clock IDs in order, checks that each clock is a distinct availablefixed-clockwith#clock-cells = <0>, and validatesapple,bw-scratchagainstdisp0bandwidth agent metadata. Register windows fordcp, external engines (t6050_ext_index()), DARTs, and the PMC node must reach the CPU 1:1 with 2/2 address/size cells and identityranges(t6050_identity_reg()).t6050_check_ext_scanout(),t6050_check_ext_adt(),t6050_check_ext_live(),t6050_check_placement(),t6050_publish_prewired()): External display DARTs listed inapple,display-subsystemiommusare matched to ADTdart-dispextNby CPU address, checked for page-alignedpt-regionoutside OS RAM holding thel1-ttroot, and validated foriop-dcpextN-nubrunning == 1, valid/pinned UUID, non-__OS_LOGsegment-ranges,pt-region-23(dart-dcpextN), andpt-region-16(dart-dispextN) outside OS RAM.t6050_check_ext_adt()then invokest6050_check_ext_live()(shared witht6050_ext_one()) to check PMGR power domains,ASC_CPU_CONTROL_RUN, and both DART streams (DART_T8110_PROTECT_TTBR_TCR, four-level translateTCR, validTTBRmatching the ADTl1-ttroot) underdcp6_guard_begin()/dcp6_guard_end()beforet6050_publish_prewired()retains scanout ort6050_ext_version()stamps firmware properties. Failed external engines are dropped fromapple,display-subsystemiommuswhile keeping the internal panel handoff intact.kboot_setup_atc(),t6050_setup_atc()): Keyed onapple,t6050-combo-phy, copying tunables whole and in ADT order (including RX clock groups) for each port carryingapple,guest-port-reserved, including port 0 where the tree claims it.t6050_ext_disable(),t6050_ext_reject(),t6050_drop_ext_scanout(),t6050_ext_walk(),t6050_available(),t6050_ext_version_one(),t6050_ext_version()): Before checkingos_firmware,t6050_ext_reject()runs on a scratch copy (falling back to in-place edits if scratch allocation fails), skips engines Aura just enabled itself (t6050.ext_aura, recorded whent6050_ext_one()commits int6050_headless_handoff()/t6050_ext_handoff()), uses first-stringstatusmatching (t6050_available()), and callst6050_ext_disable()to strip any failing or unmatched input-DT-enabledapple,t6050-dcpextengine fromapple,display-subsystemiommusin place viafdt_getprop_w()+fdt_setprop_placeholder()without a 128-byte cap and disable (or delete viafdt_del_node()on packed trees) the rejected node. For knownos_firmware,t6050_ext_version()re-checkst6050_check_ext_adt(n)and updatesapple,firmware-compatand existingapple,firmware-versionper surviving engine viat6050_ext_version_one()in its own scratch transaction; if the live/ADT check fails or if scratch allocation, any property write, or commit fails, it callst6050_ext_disable()so no input-enabled engine remains active advertising staleapple,firmware-compat..rodata.xtextplacement (1458e4eb7cba):T6050_INIT/T6050_TEXTinsrc/kboot_display_handoff.candT6050_ATC/T6050_ATC_INITinsrc/kboot_atc.cexpand toAURA_XTEXT(.rodata.xtext,noinline, mapped executable insrc/memory.c) with__attribute__((minsize))guarded by#ifdef __clang__, freeing.init+.textheadroom before the DCP log buffer inaura-raw.ld.d3184b1778fc): Keepsfdt_addresses.cout offdt_harness.LIBFDT_SOURCESand appends it only insidefdt_harness.run(), becausetests/python/test_wdt_arm.py::test_dt_set_wdt_reconfig(merged frommain) appendsfdt_addresses.ctoLIBFDT_SOURCESitself and failedPytestwith duplicate-symbol linker errors whenLIBFDT_SOURCESalready contained it.main + #281 + #282failed Stage 1 link at1458e4eb7cba, failed the sweep's ESP Stage 2 link attempt at9aae69b24(main + #281 + #282withESP_STAGE2=1, clang-Os/-Ozand gcc), and failed the separate Stage 1 (stage1flavour) link reproduced by@RyanTheTideonmain2c8fa8d8(the linker printsCode and data reach the DCP log buffer after stage 1!in both; each PR links alone, andmain99b6dd13+#282merges cleanly with7040 Bclangstage1headroom), so#281merges first and#282mergesmainafterward and re-checksstage1-size.t6050_check_placement()should also be reconciled with#471if#471lands first.pytestsuites; unattendeds2idleRTC wake on J716c is currently blocked becauseapple,t6050-pmu-rtcint6050-j716c-sleep.dtsihas nointerruptsandrtc-apple-pmu.chas no generation-4 SPMI alarm IRQ yet (confirmed byrtcwake -m no -s 5leavingwakealarmset withalrm_pending: no).Evidence
GitHub CI at
e6a3bcb13fca:19successes,2cancelled,1skipped (build,format-check,ESP stage 2 vital size,stage1-sizegcc/clang-macos/fedora/alarm/nix,Pytestubuntu-latest + gcc/ubuntu-latest + llvm/macos-15 + llvm-brew/macos-26 + llvm-brew/ubuntu-24.04-arm,policy;readiness / readinessandpr-text / pr-texteach have a cancelled run alongside successful runs;selftesthas 1 skipped and 1 success).Local & container verification at
e6a3bcb13fca:pytest -q tests/python/test_wdt_arm.py tests/python/test_rtbuddyseg_logs.py tests/python/test_t6050_tree_shape.py tests/python/test_t6050_handoff_bounds.py:167 passed(cc),167 passed(CC=clang).pytest -q tests/python/test_dcp6_max_brightness.py tests/python/test_t6041_display_handoff.py tests/python/test_t6041_27_display_handoff.py tests/python/test_oslog_reservation.py tests/python/test_dcp_fw27_clocks.py tests/python/test_dcp_typec_routes_adt.py tests/python/test_display_dart_view.py tests/python/test_m4_dcp_handoff.py tests/python/test_ave_handoff.py tests/python/test_t6031_runner_failures.py tests/python/test_stage1_room.py tests/python/test_rela_layout.py:182 passed, 1 skipped(cc;CC=clangpasses153, skips1, and fails setup ontest_display_dart_view.py's pre-existing unuseddart_gen3_tlbi_broadcast).sh tests/run-t8122-display-handoff.sh,sh tests/run-fdt-disable.sh,sh tests/run-aop-os-ram.sh,sh tests/run-pmp-boot-data.sh,sh tests/run-t8122-gpu26-identity.sh,sh tests/run-rtkit-placed-buffer.sh(ccandCC=clang): all 6 pass under both compilers.clang-format --dry-run -Werror src/kboot_display_handoff.c src/kboot_atc.c: pass.make rustfmt-check: pass.NM=llvm-nm sh tools/stage1_size.sh clang USE_CLANG=1 BUILTIN_LOGO=aurora:clang stage17608 Bheadroom (_file_vital_end 0x11d010),stage1-secure-auditandstage1-secure-enforce77928 B, optionalstage1-dev-audit2376 B.NM=aarch64-linux-gnu-nm sh tools/stage1_size.sh gcc ARCH=aarch64-linux- BUILTIN_LOGO=aurora EXTRA_CFLAGS='-Wstack-usage=2048 -Os':gcc stage16368 Bheadroom (_file_vital_end 0x11d228),stage1-secure-auditandstage1-secure-enforce77448 B, optionalstage1-dev-audit1288 B.aarch64-linux-gnu-gcc13.3.0):gcc13 stage16152 Bheadroom (_file_vital_end 0x11d1d8),stage1-secure-auditandstage1-secure-enforce77528 B(optionalstage1-dev-auditdoes not link).esp-stage2-size(CARGO_PROFILE_RELEASE_OPT_LEVEL=z make -j$(nproc) USE_CLANG=1 BUILTIN_LOGO=aurora RELEASE=1 CHAINLOADING=1 EXTRA_CFLAGS=-Oz ESP_STAGE2=1 SPTM_VIRT=1 SPTM_VIRT_ESP=1 AURACTL=1withoutBUILDSTD=1, plustools/esp-macos/esp_vital_size.py build/aura-raw.elf --nm llvm-nm):ESP vital region: 811160 B (0xc6098),368488 Bfree.make -j$(nproc) ARCH=aarch64-linux-gnu- CHAINLOADING=1 EXTRA_CFLAGS='-Wstack-usage=2048 -Os',make -j$(nproc) ARCH=aarch64-linux-gnu- CHAINLOADING=1 ESP_STAGE2=1 EXTRA_CFLAGS='-Wstack-usage=2048 -Os', andmake -j$(nproc) RELEASE=1 CHAINLOADING=1 USE_CLANG=1 ESP_STAGE2=1(aura.binsha256prefix24c2d8fde8eb620d,BUILD_TAG "1.0.0b17-ge6a3bcb1"): pass.main: earlier combined build at1458e4eb7cbafailed Stage 1 link (Code and data reach the DCP log buffer after stage 1!);main(99b6dd13) +#282(e6a3bcb13fca) merges cleanly (clang stage17040 Bheadroom), while the 2026-11-28 ESP Stage 2 link attemptmain + #281 (278bbd272e9e) + #282 (e6a3bcb13fca)(9aae69b24) failed link withld.lld: error: Code and data reach the DCP log buffer after stage 1!under clang (-Osand-Oz) and gcc, and@RyanTheTideseparately reproduced a Stage 1 (stage1flavour) link failure onmain2c8fa8d8(no combined image could be built or booted).Earlier hardware run at
e6a3bcb13fca(J716c M5 Max, T6050, 27.2 stub, Linux 7.3.0, default kernel command line, one-shotaura-tryStage 2 vs installed default Stage 221edee972e1ff171…andmain26c1a85bb788control):Build:
make -j$(nproc) RELEASE=1 CHAINLOADING=1 USE_CLANG=1 ESP_STAGE2=1; PRaura.bin(3,997,696 B) sha25624c2d8fde8eb620d…, controlmain26c1a85bb788aura.bin(3,997,696 B) sha256ce40f9c41946f13b….Trial boot
1.0.0b17-ge6a3bcb1:apple-drmcard witheDP-1at3456x2234@120;dcp@48ae00000status = "okay"withapple,bw-scratchpresent.apple,t6050-dcpextnodes (dcp@2b2e00000,dcp@302e00000,dcp@306e00000,dcp@392e00000)status = "okay"withapple,firmware-versionandapple,firmware-compatboth(27, 2, 0).apple,t6050-combo-phynodes (phy@2a3000000,phy@2ab000000,phy@383000000,phy@38b000000; the 3 active ones carry fullapple,tunable-*sets) and 6 Type-C port nodes.disabled, as expected.dmesg -l err,crit,alert,emerg:40lines vs43on the installed default Stage 2 (separate run from the 2026-11-28 sweep below). The trial-specific lineapple-pmp-report-entry 284240000.pmp-report:report@f: probe failed -110also appears in themain26c1a85bb788control (no GPU handoff). 0 new failed units.Control boot of
main(26c1a85bb788,1.0.0b17-g26c1a85b) on the same Mac:simple-framebuffercard withUnknown-1at3456x2234@60;dcp@48ae00000status = "disabled"; all 4apple,t6050-dcpextengines left at(27, 0, 0);2b2e00000.dcpand302e00000.dcpprobe failed with-110;apple-t6050-dp-phy 2a3000000.phyfailed with-ENOENT(missing or invalid apple,tunable-axi2af).Return to default: rebooted cleanly to the default Stage 2 (
1.0.0b17-g00976384,eDP-1at3456x2234@120), trial binaries deleted,aura-trymarker restored, defaultstage2.binsha256 verified unchanged.J313 (M1 MacBook Air, T8103, firmware 27.2) one-shot
aura-tryStage 2 boot ate6a3bcb13fca:make BUILDSTD=1 RELEASE=1 CHAINLOADING=1 ESP_STAGE2=1 USE_CLANG=1 BUILTIN_LOGO=aurora(aura.binsha25661c60722c16858208b681e65794d131e7242d6189c13bb86c15268194a030197) followed by the Mac's installed device tree and U-Boot tail, written as a separate file on the ESP (sha256cdc6e6a7dd86623f9a237a3210f77a5b1d033ead8fde7f79920ee3ffb089521a);chosen/asahi,m1n1-stage2-versionread back as1.0.0b17-ge6a3bcb1andchosen/aurora,trialnamed the trial file. The Mac's default Stage 2 (sha2561262bc5de585fc57e34c36f10560522d4b231be4f9ac7e45066bc4e364f95484) was not touched and theaura-trymarker was spent by the single boot.sha2567b4eda418e92d4403c7018894108026bb65ac9fe3958d80028fce549918306f7), default command line (rw rootflags=subvol=root plymouth.ignore-serial-consoles user4k=on loglevel=4 console=tty0).main99b6dd13Stage 2 (1.0.0b17-g99b6dd13, imagesha25624f52d5ec8509275039e32e642ae19effd5640988e889e20ce1a6e98e1289e27) booted the same way on the same kernel: the same smoke results.eDP-1connected/enabled/dpms=On, backlight130; inputApple SPI Keyboard+Apple SPI Trackpadregistered; network default gateway ping 3/3 overwlan0; audioaplay -lshows theMacBook Air J313card andwpctllists theHeadphonesand DisplayPort sinks (enumeration only, no playback; the speaker path stays held by the speaker-protection daemon); GPUcompute-check 3PASS (2670runs, 0 wrong) andrender-checkPASS onApple M1 (G13G B1);systemctl --failed: 0;ausearch -m avcand journal: 0 denials (SELinux not enabled on this image); 1 newerrline (brcmfmac ... brcmf_pcie_ring_mb_update_rptr: ring 4: r_ptr 0 outside depth 0; also present in themaincontrol boot, absent from the default boot and the other PR boots, so a boot-time Wi-Fi ring flake rather than a Stage 2 effect).dmesgexcerpt:2026-11-28 J716c (
M5 Max,T6050, firmware 27.2) one-shotaura-tryStage 2 boot ate6a3bcb13fca:make USE_CLANG=1 ARCH=aarch64-linux-gnu- RELEASE=1 CHAINLOADING=1 ESP_STAGE2=1 BUILTIN_LOGO=aurora+ default boot-config tail (1.0.0b17-ge6a3bcb1, trial Stage 2sha256c5c2a0dd8c70efbbd88bb4fc2c91331efea3cd9ab5f9b74669e500e29cd795b6) vsmaina0504b2a376dcontrol (1.0.0b17-ga0504b2a,sha256942727abbccdad72196375774900d2f1efba90ebc4d18109fa98608c704420b9), booting the default Linux 7.3.0 kernel (sha256bf2582ab357573db64031f39e7bc9d617eb574c6b221364ff417810bbddf4c87, default command line; default Stage 2sha25621edee972e1ff1718c6f41c32b91ee151afdc58cbb69f16f2f6a4d8d4c722170untouched).eDP-1up at3456x2234@120(dpmsStatus: 1,vrrCapable: yes, DRMenabled);4Hyprland input entries enumerated;wlan0connected, 3/3 gateway ping (0% loss);AppleJ716audio sinks enumerated (36. MacBook Pro J716 speaker protection hold,87. Built-in Audio Headphones); GPUrenderD128absent (needs#281, as expected);0failed user units;1failed system unit (aurora-peripherals.service, baseline on every warm reboot of that session including themaincontrol and restored default);0LSM denials (no SELinux/AppArmor);0Oops/BUG/faults. Controlmaina0504b2a376dfalls back toUnknown-13456x2234@60simplefb.dmesgerr+(41lines total):1systemd-gpt-auto-generatorline,1apple-pmp-report-entry 284240000.pmp-report:report@f: probe failed -110line (expected without GPU handoff), plus39apple-dcp(2b2e/302e/306e/392e)AFK ... unable to match servicelines on the enableddcpextnodes (AppleDCPDPTXController,dcpexpert-service,test-service,aop-test,md-manager). Themaina0504b2a376dcontrol (7err+lines) lacks those 39dcpextservice-match messages.J713 (
M4 Air,T8132) was not booted for#282(and is currently awaiting human recovery).Earlier hardware verification at superseded head
1458e4eb7cba(J716c M5 Max, 27.2 stub, one-shotaura-tryStage 2):make RELEASE=1 CHAINLOADING=1 USE_CLANG=1 ESP_STAGE2=1(aura.binsha256prefix34bfcaf4184d84ee,chosen/asahi,m1n1-stage2-version1.0.0b17-g1458e4eb), staged with the default payload tail viaaura-tryinto the default kernel (defaultstage2.binuntouched).main(26c1a85bb788,1.0.0b17-g26c1a85b) without#282: no panel driver (simple framebufferUnknown-1at 60 Hz), GPUdisabled, 6 kernelerrlines.#282boot (1.0.0b17-g1458e4eb):eDP-1up at3456x2234@120; all 4apple,t6050-dcpextengines handed over withapple,firmware-versionandapple,firmware-compat = <0x1b 0x02 0x00>andapple,tunablepresent; 4 combo-PHY nodes and Type-Cport0–port3present; 39 unique kernelerrlines vs 40 on the default Stage 2 (0 new, differing only by PID-numbered generator lines and onemd-managerAFK message); 0 new failed units (aurora-peripherals.servicepre-existing on default); GPU staysdisabledbecause#282alone has no GPU handoff.Earlier hardware run (superseded, head
71708f74on#4272e2d7e71+#281, Linux 7.3.0 with#2185and#2187, default cmdline):3456x2234) and two 4K Thunderbolt dock monitors up; fourapple,t6050-dcpextnodes carriedapple,firmware-compatandapple,firmware-version<27 2 0>.