Repository navigation
arm: apple: publish MTP handoff transactionally - #6
Closed
RyanTheTide wants to merge 1 commit into
Closed
RyanTheTide wants to merge 1 commit into
RyanTheTide wants to merge 1 commit into
Conversation
Repeated OS device-tree fixup encounters existing MTP reservations and clears the live-session flag while leaving the old handoff contract in the blob. The helper is then shut down despite the advertised session. Build the complete contract in a scratch FDT and retain bypass only after all writes succeed. Reuse matching reservations and deduplicate references while preserving unrelated regions and streams. Reject conflicting or malformed metadata, invalid buffer ranges, overlap and incomplete writes. On failure preserve the original blob and session state and propagate the error through board setup so no partial contract reaches the OS. Add real-libfdt host tests of the production publisher and board admission: repeat fixup, every publication-write failure, allocation and bypass failures, malformed references, conflicting reservations and bounded buffers. The repeated-fixup and write-failure regressions fail on c523219. Retain the latest public default-on MTP configuration and DJ's kernel adoption help unchanged; this rebased change only updates the transaction code, board admission and host fixture. (cherry picked from commit 444ef2a655def03c46b333282051b59a4869a305) Signed-off-by: Ryan Murray <[email protected]> Assisted-by: LLM
RyanTheTide
force-pushed
the
fix/mtp-handoff-transaction-20261013
branch
from
October 13, 2026 15:21
08d604c to
f72abc5
Compare
Contributor
Author
|
Closing as a stale draft (13/10). The loader is frozen except for bug fixes, and this change has not had a Neo boot test. Reopen with a boot test if it is still wanted. |
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.
Repeated device-tree fixup could retain an advertised MTP handoff after clearing its live-session flag, causing the helper to shut down. Build and validate the complete handoff in a scratch FDT, publish it transactionally, and preserve the original blob and session on failure. Matching reservations and references are reused; conflicting or malformed metadata is rejected.
Based on current
aurora-wip(0cb6fed6a105), preserving DJ's default-on MTP configuration and keyboard adoption help. Exact source:08d604cdbfa3d32f2387e41a3eb3bdd022d86d83.Validation: strict full build with
CONFIG_WERROR; 23 real-libfdt host cases, including repeat fixup, publication/allocation failure injection, malformed references, reservation conflicts and buffer bounds. Independent cross-bootloader source review completed. Hardware Stage 1/2 and keyboard handoff qualification are still pending; keep draft until those pass.Public-source implementation with author, LLM assistance and Signed-off-by provenance retained in the commit.