Repository navigation
Conversation
|
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 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:
apple_mtp_kbd: leave the T6030 (J514s/J516s, M3 Pro) MTP to the OS by extending the J813-compatible exclusion — U-Boot's helper does a second RTKit boot against firmware iBoot, burns the one-shot MTP epoch, and Linux finds a dead coprocessor (the failure class #55/#57 document for J613/J604/J700/J813).Tested: J516s (T6030, M3 Pro) at
44b09fd4, 27.2 stub, kernellinux-aurora 7.3.0.aurora1-46, input node enabled: 2/2 cold boots, MTP alive and adopted, keyboard, trackpad and keyboard backlight working, 0 crashes.Risk: two-way · T6030 only (J514s/J516s, M3 Pro); a plain revert restores the old binding. Only the J813-compatible exclusion is extended, no other board in a selector list is touched.
Not yet: T6031 (J514c/J516c/J514m/J516m, M3 Max) — likely wants the same treatment, no hardware to test on; rebasing onto the #79 selector once it lands.
Problem
On T6030 (J514s/J516s, M3 Pro) with the input node enabled and the 27.2 stub,
apple_mtp_kbdbinds, the helper does a second RTKit boot against firmware iBoot already started, and at OS entry the helper is taken to QUIESCED and its RUN bit cleared. Post-M2 MTP firmware does not survive that (the class of failures PR #55/#57 document for J613/J604/J700/J813, and #79's "burning the one-shot MTP epoch"): the epoch is burned and Linux finds a dead coprocessor before any Linux driver touches it.On my J516s this was deterministic, 15/15 boots with the node enabled: PC
0x10371b4, garbage FAR, empty RTKit crash version (the firmware dies before its crashlog machinery is up),dockchannel-hiddeferring forever, no internal keyboard/trackpad. Zero faults with the node disabled (8/8) — a clean single-variable bisection.The J813 exclusion's comment describes exactly this class; T6030 was missing from the list.
Change
Leave the T6030 MTP untouched, like the J813: the keyboard driver does not bind, the helper is never started, and Linux owns the first boot. Linux then works via
apple,rtkit-keep-runningsession adoption (aurora-silicon/linux marks&mtpkeep-running for t603x) plus the dockchannel-hid AFE reset path for the touchpad.Only the J813-compatible exclusion is extended; no other behaviour changes. The live-handoff machinery and every board already in a selector list are untouched.
Evidence
J516s, 27.2 stub (26B123), kernel
linux-aurora 7.3.0.aurora1-46, input node enabled:co-processor has crashedcount 0, MTP alive and adopted (AppleMTPFirmwareMac-6310.85.7~38, all comm interfaces enumerated),Apple MTP keyboardand the multi-touch interfaces register, keyboard, trackpad and keyboard backlight all work,devices_deferredempty.Notes
OS-style row for T6030 — happy to rebase onto the selector once it lands.lib/rsa/rsa-sign.cneeds#define OPENSSL_ENGINE_STUBS 1before the OpenSSL includes (OpenSSL's official stub switch) — that is a host-tool build issue only and not part of this change.