Repository navigation
kboot: t6050: check external engine placement before handing it over - #471
Draft
RyanTheTide wants to merge 1 commit into
Draft
RyanTheTide wants to merge 1 commit into
RyanTheTide wants to merge 1 commit into
Conversation
The internal DCP is handed over only if its firmware segments (but __OS_LOG, which is reserved on its own) lie outside the RAM the OS gets [phys_base, +mem_size). t6050_ext_one() hands an external engine over after checking that its DARTs are locked on the ADT's l1-tt roots, but it never checks where the engine's firmware and page tables live, and the headless path checks /vram only against existing reservations. Factor the segment check of t6050_check_adt() into t6050_check_placement(), parameterised by the nub path and a list of DART streams. For each stream it also requires the DART's ADT pt-region-<sid> to be page-aligned, to hold the stream's l1-tt root page and to lie outside the OS's RAM. The internal DCP passes no streams, so its checks are unchanged. t6050_ext_one() runs it on iop-dcpextN-nub with SID 23 of dart-dcpextN and SID 16 of dart-dispextN before it looks at anything else; an engine that fails stays with iBoot, as on its other checks (headless: the display handoff is refused). t6050_headless_check() now also refuses a /vram that overlaps the OS's RAM, as t6050_check_adt() does for the internal display. Reported-by: erikwb <169195+erikwb@users.noreply.github.com> Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Contributor
Author
|
Review at d753e35 (non-author, draft). No blocker; it waits on the T6050 external-engine boot rows, as listed.
Small points, not blocking:
Assisted-by: LLM (Claude:Opus 5.5) |
This was referenced Nov 22, 2026
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.
Problem
t6050_ext_one()hands an external T6050 display engine over after checking that its DARTs are locked on the ADT's l1-tt roots, but it does not check where the engine's firmware segments and DART page tables lie. The internal display only gets handed over when its segments are outside the RAM the OS receives. The headless path also checks/vramonly against existing reservations, not against that RAM range.Change
t6050_check_placement()takes the segment check out oft6050_check_adt(), parameterised by the nub path and a list of DART streams. For each stream it also requires the DART'spt-region-<sid>to be page-aligned, to contain that stream'sl1-ttroot page and to lie outside[phys_base, +mem_size). The internal display passes no streams, so its behaviour is unchanged.t6050_ext_one()runs it oniop-dcpextN-nubwith SID 23 ofdart-dcpextNand SID 16 ofdart-dispextNbefore enabling anything. An engine that fails stays with iBoot, like on its other checks; on a headless board the display handoff is refused.t6050_headless_check()also refuses a/vramthat overlaps the OS's RAM, ast6050_check_adt()already does for the internal display.No new options or board conditions; everything is read from the ADT.
Testing
kboot_display_handoff.ccompiles cleanly with the Makefile's flags under aarch64-linux-gnu-gcc and clang; clang-format clean.tests/run-t8122-display-handoff.shand the t6041 / t6041-27 / dcp6_max_brightness pytest cases still pass.tests/t8122_display_host/t6050_unmodelled.haborts there), so there is no new unit test.Still to run
pt-region-23/-16on its dcpext DARTs would now keep that engine with iBoot.