Repository navigation
Conversation
Every agent that opens this repository loads the same rules, whoever runs it: the rulebook in aurora-silicon/agent-guidelines. This file keeps only the repo specifics. Route reviews to the teams that review and merge here with .github/CODEOWNERS; any one approval from a listed owner counts. Changes under .github/ need an Owner's review. No runtime change. [skip ci] Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
…ulebook No runtime change. [skip ci]
Runs the shared pr-text check from aurora-silicon/.github on pull requests: it asks for the Tested and Risk lines and rejects AI attribution in the PR text, saying which line to fix. Drafts and older PRs only get a warning. [skip ci] Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
…-check ci: add the org pr-text check
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
…-workflows github: add the organisation's pr-readiness caller
The file names @aurora-silicon/omarchy-m, but the team slug is omarchy-mac. GitHub reports every such line as an unknown owner, so an Omarchy Mac approval does not count as code-owner review. Name the team by its slug and add @aurora-silicon/aurora-maintainers wherever Omarchy Mac is listed: Aurora Maintainers review and merge with the same rights as Omarchy Mac. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
…rs-aurora-maintainers CODEOWNERS: add Aurora Maintainers and fix the Omarchy Mac team name
|
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. |
satchlj
left a comment
There was a problem hiding this comment.
Feedback before merge at 44b09fd4b7c2.
The bisection and J516s 27.2 reproduction data are clear and convincing, and the -ENODEV early exit in apple_mtp_kbd_probe() matches the existing J813 path cleanly.
One design point to address before merging:
- Extending
of_machine_is_compatible("apple,j813")withof_machine_is_compatible("apple,t6030")grows a per-SoC/board allowlist rather than selecting by a device-tree property. AsNot yetalready notes, T6031 likely needs the same handling too. Checking a DT property on the MTP node (for exampleapple,rtkit-keep-running, or a dedicated property populated on the MTP node for boards/SoCs whose firmware cannot survive a U-Boot RTKit restart before Linux) would avoid board/SoC-name gating and cover T6031 automatically without another U-Boot patch.
…ouched # Conflicts: # drivers/input/apple_mtp_kbd.c
Gate the keyboard on the MTP node instead of a per-SoC allowlist of machine names: it is skipped when its helper carries apple,rtkit-keep-running, the kernel binding for firmware the OS adopts running and that cannot survive U-Boot's RTKit restart (the aurora-silicon#55/aurora-silicon#57 class). On the T6030 (M3 Pro) 27.2 stub the restart burns the one-shot MTP epoch, and the t603x trees already mark &mtp keep-running, so T6031 is covered without another U-Boot patch. J813 keeps aurora-silicon#51's helper compatible check: its DT has no marker yet. Signed-off-by: paran3xus <im@paran3x.us>
|
Adopted in Coverage: the marker exists today in the t603x trees (T6030, tested here on J516s at the new head; T6031 auto-covered without another U-Boot patch), the T8112 macOS 27+ firmware profile and the T8122 J613/J615 trees — the latter two are covered by the marker's own semantics but untested on hardware here, flagged in Risk/Not yet. J813 keeps its compatible check for now: its DT has no marker, and adding one is a kernel-side change with its own row (noted under Not yet as the migration path that later lets U-Boot drop that line too). Rebased onto aurora-wip (a merge, no force-push), the PR is retargeted to aurora-wip, and the hardware row is re-run at the new head. Happy to rework any of this if the shape is not what you had in mind. |
|
Superseded by #83: this branch grew out of the pre-divergence |
What:
apple_mtp_kbd: leave the MTP to the OS when its device tree says the OS adopts it running — the keyboard is skipped when its helper carriesapple,rtkit-keep-running(the kernel binding) instead of extending a per-SoC compatible list. On the T6030 (J514s/J516s, M3 Pro) 27.2 stub, U-Boot's helper restart burns the one-shot MTP epoch and Linux finds a dead coprocessor (the #55/#57 class); J813 keeps #51's helper compatible check until its DT gains the marker.Tested: J516s (T6030, M3 Pro) at
ac7804dba1d, 27.2 stub, kernel7.3.0-t6030hdmi+(aurora nightly base + local HDMI patches), input node enabled: 1/1 cold boot,co-processor has crashed0, MTP alive and adopted (AppleMTPFirmwareMac-6310.85.7~38), Apple MTP keyboard and multi-touch interfaces register, keyboard, trackpad and keyboard backlight work,devices_deferredempty.Risk: two-way · T6030 (J514s/J516s) and any Mac whose DT carries
apple,rtkit-keep-running(t603x, the T8112 macOS 27+ firmware profile, T8122 J613/J615); boards without the marker keep byte-identical behaviour. A plain revert restores the binding.Not yet: a second cold boot on J516s (machine in daily use; follow-up row); T6031 (J514c/J516c/J514m/J516m) — auto-covered by the t603x marker, untested on hardware; the T8112 macOS 27+ profile and T8122 J613/J615 markers likewise; J813's DT has no marker yet (a small kernel-side DTS change migrates it and lets U-Boot drop that compatible check later).
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 #55/#57 document, 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.Change
The keyboard binds to
apple,dockchannel-hidand, through theapple,helper-cpuphandle, boots and quiesces the MTP helper. The probe now resolves that same phandle (the pathget_rtkit_helper()already uses) and skips the driver when the helper node carriesapple,rtkit-keep-running— the kernel binding for firmware the OS adopts running, i.e. exactly the firmware that cannot survive U-Boot's restart. In aurora-wip's probe the exclusion chain is the t8142 helper check (#51), the halted-for-os check,apple,t6020(#82) andapple,t6050; this adds the keep-running marker as a matching helper-node check beside #51's, replacing the earlierapple,t6030machine-compat entry. Boards whose DTs carry no marker keep byte-identical behaviour.Evidence
J516s, 27.2 stub, input node enabled:
ac7804dba1d(aurora-wip merge + the keep-running gate), kernel7.3.0-t6030hdmi+, boot id65df7b8f-8000-4c90-b3a7-f9d505bbff3d: 1/1 cold boot,co-processor has crashed0,MTP Says Hello, MTP alive and adopted (AppleMTPFirmwareMac-6310.85.7~38), Apple MTP keyboard and multi-touch interfaces register, keyboard, trackpad and keyboard backlight work,devices_deferredempty. The tested build's banner reads2026.07-g383f14e49232-dirty(merge commit plus the gate before commit); the committed head changes exactly that file to the tested bytes.Notes
lib/rsa/rsa-sign.cneeds#define OPENSSL_ENGINE_STUBS 1before the OpenSSL includes (OpenSSL's official stub switch) — a host-tool build issue only, not part of this change.