Repository navigation
input: apple_mtp_kbd: leave the T6020 MTP to the OS - #82
Conversation
On T6020 (M2 Pro, J414s) running the 27.2 system firmware stub, U-Boot's MTP keyboard probe starts the MTP RTKit helper and quiesces it before booting the OS. The 27.2 MTP firmware does not survive a second start: Linux's RTKit init crashes immediately (PC=0x10359b4, empty crashlog version) and the internal keyboard and trackpad never appear. Exclude apple,t6020 in apple_mtp_kbd_probe() alongside apple,j813 and apple,t6050 so U-Boot leaves the helper and its FIFOs untouched and Linux owns the first MTP boot. Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Retargeted base branch from |
satchlj
left a comment
There was a problem hiding this comment.
Two items before merge at 41e527fa2b72
- PR base branch (confirming
@RyanTheTide): This PR currently targetsmain(6e3be568), which produces a 161-commit / 76-file diff instead of the single testeddrivers/input/apple_mtp_kbd.cchange on top of5c0d5fe1. Please retarget it onto the branch containing5c0d5fe1. - DT property vs per-SoC list: Once retargeted, note this follows the same pattern flagged on
u-boot#80(apple,t6030): extending theof_machine_is_compatible(...)chain (apple,j813,apple,t6050,apple,t6030, nowapple,t6020, witht6021/t6031likely next) grows a per-SoC/board allowlist in U-Boot. Gating on a device-tree property on the MTP node instead would cover all non-restartable 27.2 MTP controllers uniformly without requiring a new U-Boot patch per SoC.
|
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. |
Signed-off-by: DjDeveloperr <hey@djdev.me>
|
I merged This fix follows the file's existing machine-compatible list. Moving those exclusions to an MTP device-tree property would be a separate cleanup across all the listed SoCs. |
RyanTheTide
left a comment
There was a problem hiding this comment.
The retarget and merge-up leave one change against aurora-wip: T6020 is excluded from the U-Boot MTP probe. The T8142 helper check from #51 and the existing halted-MTP and T6050 checks are preserved. The T6020 condition exercised in the two J414s cold boots is unchanged.
What: Exclude
apple,t6020indrivers/input/apple_mtp_kbd.c(apple_mtp_kbd_probe()) alongsideapple,j813andapple,t6050so U-Boot leaves the T6020 (M2 Pro) MTP helper and DockChannel FIFOs untouched and Linux owns the first MTP boot. On J414s running the 27.2 system firmware stub, U-Boot's MTP keyboard probe starts and quiesces the MTP helper before OS entry; the 27.2 MTP firmware does not survive a second start and crashes immediately in Linux (PC=0x10359b4, empty RTKit crashlog version), leaving the internal keyboard and trackpad dead (J414s NIGHTLY-CUT row 7 gap).Tested: Re-checked the
apple_m1_defconfigAArch64 cross-build withWERROR=yat merged head6476b5be65b77f8db06fa860ba40f15ae92880c4with 0 warnings or errors. Hardware test on J414s M2 Pro (T6020, 27.2 stubmBoot-20457.41.3) at41e527fa2b72c9f4b5ad6a9971a9c73d6966381b(apple_m1_defconfigwithWERROR=y;u-boot-nodtb.bin.gzSHA-2564660321d89b6cb8102cf84ea27dad0e99d556d2d6f1e8d237b57ad18b11dd1be): 2/2 consecutive cold boots (boot 1 on stock7.3.0-47.fc45.aurora.aarch64+ mergedauramain,boot_id=b0a1621e-8ef7-4353-8f8d-5c184ec440d2; boot 2 on7.3.0+ #3,boot_id=60aed4bd-4009-42c8-8da5-cee653fdc059):co-processor has crashedcount 0 (vs deterministic crashPC=0x10359b4on stock5c0d5fe1a222),MTP Says Hello(AppleMTPFirmware-6310.85.7~37), all interfaces ready (stm,multi-touch,keyboard,actuator),Apple MTP keyboard,Apple MTP multi-touch,Apple MTP multi-touch Force Click, andkbd_backlightregistered,devices_deferredempty.Risk: two-way · T6020 (
apple,t6020) only — U-Boot does not bind the internal MTP keyboard in the boot menu and leaves MTP for Linux; a plain revert restores the previous binding.Not yet: Hardware verification on J416s (16-inch M2 Pro) and T6021 (M2 Max, J414c/J416c) on 27.2; T6021 uses
apple,t6021so it is untouched until tested.Evidence
main5c0d5fe1a222edac2ffad2face9c720a443b7c0641e527fa2b72c9f4b5ad6a9971a9c73d6966381bapple_m1_defconfig+WERROR=y(aarch64-linux-gnu-gcc), 0 warnings/errorsu-boot-nodtb.binSHA-256:e7fb9fe65e9552a22bc25f0d0bf275ebb3d7a951dd334a8db22da579cc076aacu-boot-nodtb.bin.gzSHA-256:4660321d89b6cb8102cf84ea27dad0e99d556d2d6f1e8d237b57ad18b11dd1beu-boot5c0d5fe1a222on J414s,7.3.0-nightly-9177b2d474f8,boot_id=d230d37a-8755-4aca-bc45-800db6d59141):rtkit-helper 2a9400000.mtp: RTKit: co-processor has crashed(PC = 0x10359b4,FAR = 0x3958ed08aa0003f3), no internal keyboard or trackpad in/proc/bus/input/devices.41e527fa2b72on J414s, 2/2 boots):7.3.0-47.fc45.aurora.aarch64,boot_id=b0a1621e-8ef7-4353-8f8d-5c184ec440d2, assembledboot.binSHA-256685a008f646c):MTP Says Hello,AppleMTPFirmware-6310.85.7~37,Apple MTP keyboard,Apple MTP multi-touch,Apple MTP multi-touch Force Click,kbd_backlight,devices_deferredempty, 0 MTP crashes.7.3.0+ #3,boot_id=60aed4bd-4009-42c8-8da5-cee653fdc059, assembledboot.binSHA-256b669e68a955d): identical clean bring-up,mtp_crash_count=0,devices_deferred=0.