Repository navigation
Revert #470 and #493 to restore Stage 1 link budget - #511
Merged
Merged
Conversation
…pext-adt-v2" This reverts commit 7bc55fe, reversing changes made to 27847f1. Bisecting Stage 1 size across merges since 59af506 showed that #493 (a7a616a) still linked and passed gcc/fedora/alarm/nix stage1-size, and #427 (27847f1) still linked with 8,584 B text headroom on clang, while #470 (+1,626 lines in src/kboot_display_handoff.c) overflowed Stage 1 into the DCP log buffer. Revert #470 to restore a green main tip while keeping #492, #493, #474, #427, and #443. Signed-off-by: Dj <43033058+DjDeveloperr@users.noreply.github.com>
…andoff" This reverts commit a7a616a, reversing changes made to b294045. Reverting #470 alone restored linking on all toolchains and passed nix, but gcc stage1 headroom landed at 3,640 B (456 B below the 4,096 B floor in tools/stage1_size.sh). Also revert #493 (2,048 B on gcc) as the minimum 2-PR revert set that clears the 4,096 B floor on gcc while keeping #492, #474, #427, and #443. Signed-off-by: Dj <43033058+DjDeveloperr@users.noreply.github.com>
satchlj
approved these changes
Nov 24, 2026
satchlj
left a comment
Member
There was a problem hiding this comment.
Verdict at 9901d706f46d
Approved.
Blockers
None.
Checked
- Audited all 14 changed files (
+130/-4156) across both commits (faf651db3c0dreverting#4707bc55feb0b9b, and9901d706f46dreverting#493a7a616a10390; both carrySigned-off-by:) and confirmed viagit diffagainst both original merges that each commit is a clean inverse of its target PR while leaving#492,#474,#427, and#443intact. - Compiled
build/kboot.oandbuild/kboot_display_handoff.o(RELEASE=1 CHAINLOADING=1 BUILTIN_LOGO=aurora) and syntax-checkedtests/python/test_m4_dcp_handoff.pyat9901d706f46d. - Verified CI results at
9901d706f46d:stage1-size/gcc(138792013064) now clears the4096 Bshipping Stage 1 floor and8192 Bsecure floors:gcc stage1headroom7736 B(_file_vital_end 0x11ce90of0x120000, warning< 8192 B),gcc stage1-secure-audit12832 B,gcc stage1-secure-enforce12832 B.format-check(138792012537) andPytest (ubuntu-24.04-arm, native start.S)(138792012572) passed (SUCCESS).
- Untested scope: no local Stage 1 link (
aarch64-unknown-none-softfloatRust target not installed in the review environment), no hardware boot testing, andstage1-size/{fedora,alarm,nix,clang-macos},build, and the remainingPytestmatrix legs were still running or queued at review time.
Evidence
- Exact inverse checks:
faf651db3c0dvs#470(7bc55feb0b9b): 0 differing lines across all 13 files.9901d706f46dvs#493(a7a616a10390): exact inverse of both files touched by#493(src/kboot.cand its Python handoff test; line-number shift only from subsequent merges).
- Local compilation at
9901d706f46d:make -j$(nproc) build/kboot.o build/kboot_display_handoff.o RELEASE=1 CHAINLOADING=1 BUILTIN_LOGO=aurorasucceeded.python3 -m py_compile tests/python/test_m4_dcp_handoff.pysucceeded.
stage1-size/gcc(138792013064) at9901d706f46d:gcc stage1: _file_vital_end 0x11ce90 of 0x120000; room text 7736, rodata 42544, data 12656; headroom 7736 B gcc stage1-secure-audit: _file_vital_end 0x11cde0 of 0x120000; room text 56040, rodata 46880, data 12832; headroom 12832 B gcc stage1-secure-enforce: _file_vital_end 0x11cde0 of 0x120000; room text 56112, rodata 46880, data 12832; headroom 12832 B
Contributor
|
Merge readiness at
Areas: none matched in CODEOWNERS Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
This was referenced Nov 24, 2026
RyanTheTide
pushed a commit
to techmore/aura
that referenced
this pull request
Nov 30, 2026
…rmware 27 from the ADT" This reverts commit faf651d, which reverted the merge of aurora-silicon#470 (7bc55fe), and so brings back Ryan Murray's change unchanged: the external display processors (dcpext0/1) that iBoot leaves running the internal DCP's image on firmware 27 are handed over from the ADT, beside a complete internal DCP handoff or on a board with no panel. aurora-silicon#511 reverted it because, built into every image, it pushed Stage 1 past the DCP log buffer on every toolchain. The following commits keep it out of Stage 1. Signed-off-by: Erik Bourget <erik@ebourget.net>
RyanTheTide
pushed a commit
to techmore/aura
that referenced
this pull request
Nov 30, 2026
…P Stage 2 only Built into every image, dt_set_dcpext_handoff() and its helpers (about 1,250 lines) push Stage 1 past the DCP log buffer (aurora-silicon#511). Stage 1 does not need them: its job on a Mac with an ESP is to chainload the ESP Stage 2 (payload_run(): chainload= from its embedded config), and that Stage 2 builds the devicetree, so a Stage 1 chainload never reaches dt_set_display(). Stage 1 prepares a devicetree only when it starts an OS itself (an appended kernel, boot=, or a payload sent over the proxy). There it keeps what it did before the handoff existed: the internal DCP handoff, then the firmware-ready path for the external processors (dt_reserve_j713_dcpext()) after a handoff that was not refused. On firmware 27 the kernel then does not drive them, as before aurora-silicon#470; nothing else changes. So the handoff is compiled only with ESP_STAGE2, the build switch the ESP Stage 2 already uses for its own code (chainload.c, payload.c, main.c): - kboot_display_handoff.c wraps the external processors' block in #ifdef ESP_STAGE2; the helpers it shares with the T6041 external handoff stay in both stages. - kboot.h declares dt_set_dcpext_handoff() in the ESP Stage 2 and gives every other build a static inline one that returns 0 (decline: keep the firmware-ready path), so dt_set_display()'s T8132 route is the same text in both stages. kboot.h now includes build_cfg.h, as secboot.h and smp.h do, so every file that includes it sees the same configuration; the FP objects (kboot_gpu*.o), which include it, now depend on build-cfg like every other object. - The dcpext host test builds the handoff with ESP_STAGE2 defined, and a Stage 1 route test checks that the Stage 1 stub keeps the firmware-ready path after any internal handoff that was not refused. Nothing is gated on a board, chip or firmware beyond what aurora-silicon#470 itself keys on (dt_dcp_fw_clocks(), the firmware-27 rule). Stage 1 headroom (tools/stage1_size.sh) is unchanged from main on gcc 16.2 (stage1 11808 B, secure-audit/enforce 11984 B) and clang 23.1 (stage1 10592 B, secure-audit/enforce 12464 B); the ESP Stage 2 links with dt_set_dcpext_handoff on both. Signed-off-by: Erik Bourget <erik@ebourget.net>
techmore
pushed a commit
to techmore/aura
that referenced
this pull request
Nov 30, 2026
The T6050 MCC handoff (aurora-silicon#493) was reverted in aurora-silicon#511 because Stage 1 ran out of room under the DCP log buffer. Build it into the ESP Stage 2 only, which is the stage that boots Linux in the normal Stage 1 -> ESP Stage 2 chain. A direct Stage 1 boot leaves the node disabled, so the system level cache stays off there, as on main today. Signed-off-by: DjDeveloperr <hey@djdev.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What: Revert merges
7bc55feb0b9b(#470, T8132 external DCP firmware-27 handoff) anda7a616a10390(#493, T6050 single-die MCC ADT handoff) cleanly on top ofmain(f52d8324) to restore a greenmaintip above the 4,096 B Stage 1 headroom floor on all toolchains.Tested: Bisected Stage 1 link headroom across every merge since
59af5065:7bc55feb(kboot: hand the T8132 external display processors over on firmware 27 from the ADT #470, +1,626 lines insrc/kboot_display_handoff.c) caused Stage 1 to overflow into the DCP log buffer on all toolchains.gcc stage1landed at 3,640 B headroom (456 B below the 4,096 B floor).Risk: Two-way (P0 red-tip revert; restores Stage 1 linkability and headroom on all toolchains).
Not yet: Confirming CI passes across all five
stage1-sizetoolchains,build, and test jobs, then re-landing #493 and #470 once they fit.