Skip to content

soc: apple: retain the live J614s MTP handoff - #817

Merged
RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
notmysegv:codex/j614s-mtp-handoff
Nov 4, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
notmysegv:codex/j614s-mtp-handoff

Conversation

@notmysegv

@notmysegv notmysegv commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

On a J614s whose bootloader has used the built-in keyboard, the MTP coprocessor and its DART can still be live when Linux starts. Resetting the DART or starting a new RTKit session would discard that handoff.

For the J614s MTP DART, retain the bypass only when the advertised mtp-live-v1 handoff names the matching MTP and the DART passes the existing hardware checks. Reject an invalid advertised handoff. Extend the RTKit helper's existing buffer-inventory and retained-session handling to the J614s T6041 MTP. Without the advertised handoff the normal initialization path remains unchanged.

Validation

  • On a J614s running a patched Aurora 9.3 kernel and the matching local Aura/U-Boot handoff, the live tree advertises mtp-live-v1; the kernel reports retaining the J614s MTP DART and adopting three RTKit buffers. The keyboard and trackpad initialized and the owner reported the system worked after the recent device-tree trial.
  • The running 7.3.0-1-14-ARCH kernel was built from the integrated J614s source 24bfd5ba2c182bf67d40c7d02f4947d124f04fa4, which includes this PR alongside other J614s changes. The matching U-Boot was built from power: supply: macsmc: J700 battery reporting (reworked, 3 patches) #29's original source commit 7a6dc91397981d52339be0fa7cce981bc5d47c2d. The current boot log reports that U-Boot revision, retaining the live MTP bypass and adopting three buffers; keyboard and trackpad initialized. This is a combined-stack boot, not a boot of the standalone kernel PR branch.
  • checkpatch.pl --strict reports no errors, warnings or checks on the diff.

The matching U-Boot producer is proposed in aurora-silicon/u-boot#29; the two changes should land together. This kernel-side change does not by itself provide a bootloader handoff.

When the bootloader advertises a running J614s MTP session, validate
its DART bypass and retain the session and its reserved buffer inventory
for the RTKit helper. A malformed advertised handoff is refused; a boot
without one retains the existing initialization path.

On a J614s using the matching bootloader, the MTP DART was retained,
three shared buffers were adopted, and keyboard and trackpad worked.

Generated-by: LLM
Assisted-by: LLM
Signed-off-by: Michal S. <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor

Reviewed for the M4 merge train. Same two blockers as #804:

  • No Signed-off-by: on the commit. Please amend with git commit --amend -s.
  • The base is aurora-wip, now a fast-forward mirror. Please retarget to integration/aurora (it merges cleanly onto 19f71a1).

It pairs with aurora-silicon/u-boot#29, so the two should land together. The description says this exact branch hasn't been built or booted as a standalone stack. A boot of the standalone branch with the matching U-Boot on the J614s would close that gap. On our side we'll check that the J616s and J614s paths without an advertised mtp-live-v1 handoff are unchanged.

@notmysegv
notmysegv force-pushed the codex/j614s-mtp-handoff branch from f015a5c to 2eef04d Compare November 3, 2026 01:21
@notmysegv
notmysegv changed the base branch from aurora-wip to integration/aurora November 3, 2026 01:21
@notmysegv
notmysegv force-pushed the codex/j614s-mtp-handoff branch from 2eef04d to 49d9477 Compare November 3, 2026 01:21

Copy link
Copy Markdown
Member Author

Added the author sign-off and LLM disclosure, and retargeted this to integration/aurora. I also updated the test details: the current J614s boot uses U-Boot built from the original aurora-silicon/u-boot#29 source commit and an integrated kernel containing this change. The boot log confirms the retained MTP bypass and three adopted RTKit buffers; the keyboard and trackpad initialized. This is combined-stack evidence rather than a standalone kernel-branch boot.

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.

2 participants