Repository navigation
arm: apple: hand every unparked MTP over live, the same way - #57
Draft
RyanTheTide wants to merge 1 commit into
Draft
RyanTheTide wants to merge 1 commit into
RyanTheTide wants to merge 1 commit into
Conversation
Without a park, the live handoff is the only path that keeps both the U-Boot keyboard and a working MTP in the OS on firmware that cannot be restarted. It is qualified on the J700, J613, J713 and J614s. Drop the per-board fallback table so every such MTP gets it: the J604, J715, J616s and J614c/J616c move from a cold MTP, and the remaining M3 boards from the restart path that firmware does not survive. Publish the live session the same way everywhere: always with the buffer inventory, and only once the keyboard is ready. Check the DART bypass at probe, before starting a firmware the OS could not start again. Refuse OS entry when a published session's DART retention fails. On a failed publication, stop the MTP and disable it and its keyboard in the OS tree. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Blockers: 3.
HW row: on the rebased head with the matching kernel, one-shot U-Boot boots:
All with 0 AVC, 0 failed units and no new kernel errors. 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.
Stacked on #55. The base is
sweep/mtp-one-handoff-policy, so this diff holds only the behaviour change. Draft until the hardware rows below are run.#55 picks the MTP handoff in one place. For an MTP that is not parked, it still keeps each board's current path from a qualification table. This PR removes that table and makes the live handoff the one fallback for every MTP that cannot be restarted. Parking stays the intended path (
/chosen/aurora,mtp-handoff = "off", #49): this PR only changes what happens when the MTP is not parked.Changes
With no park, every non-restartable MTP gets the live handoff:
One live publication form everywhere. The buffer inventory is always published (T8140 had none), and nothing is published before the keyboard's READY (before, only J613 waited).
The DART bypass is checked at probe, before the firmware is started, on every live MTP. Before, only T6041 checked it there.
A published session whose DART retention fails refuses OS entry. Before, T8140 stopped the firmware it had just promised to the OS.
A failed publication stops the MTP and disables it and its keyboard in the OS tree. Before, T8140 left the nodes in place.
Tests
apple_m1_defconfig, GCC 16.1 aarch64,KCFLAGS=-Werror: builds clean.test/py/tests/test_apple_*.pywith--noconftest: 36 passed, 2 skipped. The policy rows are updated: J604/J715/J616s/J616c are retained live, and J504/J514c are live. The live publication test now always expects the inventory and READY, with and without DRAM buffers. The remove test now expects every published session to fail closed.Hardware rows owed
One-shot U-Boot boots, each checking the keyboard at the U-Boot prompt and in GRUB, then Linux "adopted the running RTKit session" and a working keyboard and trackpad:
strict_buffers).drivers/soc/apple/rtkit-helper.c, theof_machine_is_compatible("apple,j614s")checks next toapple,t6041-mtp(ininherit_buffers,preservedandstrict_buffers) must become compatible-only, like the T8132 ones.