Skip to content

input: apple_mtp_kbd: leave J813 MTP cold for Linux - #4

Merged
Acelogic merged 1 commit into
aurora-wipfrom
j813-mtp-cold
Oct 3, 2026
Merged

Acelogic merged 1 commit into
aurora-wipfrom
j813-mtp-cold

Conversation

@Acelogic

@Acelogic Acelogic commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Leave the J813 (M5) keyboard coprocessor cold for Linux.

On J813, U-Boot's MTP keyboard driver starts MTP and shuts it down again before booting the OS. Linux's later restart then crashes the MTP firmware while it restores its logging state (PC 0x102a73c), which takes the built-in keyboard and trackpad down. A cold start from Linux works. This skips the probe on apple,j813 only, before touching the helper or FIFOs.

The crash is timing dependent; it became reliable once the J813 display driver probed before MTP. With public m1n1 and the aurora-wip J813 kernel plus native display, unmodified U-Boot crashed MTP in 2 of 2 boots. With this change, MTP started cleanly on every boot since, and the keyboard and trackpad worked in a KDE Plasma session.

Other boards keep their probe path. U-Boot keyboard input on J813 stays off until a warm MTP handoff is qualified.

Companion PRs: aurora-silicon/linux#166 · aurora-silicon/m1n1#19 · #4

Skip the U-Boot keyboard probe on J813 before touching the helper or
FIFOs. After U-Boot's RTKit shutdown, restarting the MTP coprocessor from
Linux crashes the firmware while it restores its logging state (PC
0x102a73c, ESR 0x96000004), which takes the built-in keyboard and trackpad
down with it. A cold start from Linux initializes STM, the keyboard and the
multi-touch interface normally.

The failure is timing dependent: it showed up reliably once the J813
display driver probed before MTP. With public m1n1 and the aurora-wip J813
kernel plus native display, unmodified U-Boot crashed MTP in 2 of 2 boots;
with this change MTP started cleanly in all 27 boots since, and the
keyboard and trackpad worked in a KDE Plasma session.

Other boards keep their existing probe path. U-Boot keyboard input on J813
stays disabled until a warm MTP handoff is qualified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant