Skip to content

input: apple_mtp_kbd: leave the T6030 MTP to the OS - #80

Open
ParaN3xus wants to merge 1 commit into
aurora-silicon:mainfrom
ParaN3xus:t6030-mtp-untouched
Open

ParaN3xus wants to merge 1 commit into
aurora-silicon:mainfrom
ParaN3xus:t6030-mtp-untouched

Conversation

@ParaN3xus

@ParaN3xus ParaN3xus commented Nov 29, 2026 •

Copy link
Copy Markdown

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, kernel linux-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_kbd binds, 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-hid deferring 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-running session adoption (aurora-silicon/linux marks &mtp keep-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:

  • Stock U-Boot (2026.07-g250385f8c8aa, this tree before the change): 15/15 boots with the MTP crashed before Linux, identical crash record each time; 8/8 healthy with the node disabled.
  • Same tree with this change: 2/2 cold boots, co-processor has crashed count 0, MTP alive and adopted (AppleMTPFirmwareMac-6310.85.7~38, all comm interfaces enumerated), Apple MTP keyboard and the multi-touch interfaces register, keyboard, trackpad and keyboard backlight all work, devices_deferred empty.

Notes

  • The M3 Max boards (T6031, J514c/J516c/J514m/J516m) very likely want the same treatment, but I only have the M3 Pro to test on — adding them needs a hardware row.
  • For arm: apple: choose the MTP handoff in one place #55/arm: apple: hand every unparked MTP over live, the same way #57: with the selector, this is an OS-style row for T6030 — happy to rebase onto the selector once it lands.
  • While building on ALARM with OpenSSL 4.1, lib/rsa/rsa-sign.c needs #define OPENSSL_ENGINE_STUBS 1 before the OpenSSL includes (OpenSSL's official stub switch) — that is a host-tool build issue only and not part of this change.

@ParaN3xus
ParaN3xus requested review from a team as code owners November 29, 2026 08:08
@github-actions github-actions Bot added needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks required sections (bot) labels Nov 29, 2026
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Merge readiness at 44b09fd4: not ready yet

Check Detail
CI at head ok no CI for this change (the hardware row is the gate)
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at 44b09fd4
Conflicts ok none
PR text ok 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.

Areas: none matched in CODEOWNERS

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@github-actions github-actions Bot added blast:m3 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) and removed needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks required sections (bot) labels Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blast:m3 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant