Repository navigation
Conversation
The J715 (15-inch M4 Air, Mac16,13) shares t8132-j713-j715.dtsi with the J713 and states the same DAPF handoff contract in its tree (linux-enablement-mac,dapf-handoff lists the AOP, MTP and PMP). dapf_init_fdt() only knew the J713 and J604, so on a J715 it returned without handing anything off. Add apple,j715 to that list. Tested on a J715 with OS firmware 26.5 (AOP microphone capture) and 26.6.2 (desktop boot). Signed-off-by: Kazuhide Takahashi <kazuhide.t@linux-powered.com>
… MTP on the J715 When the J715 boots without U-Boot (m1n1 stage 1 -> aura -> Linux), nothing keeps the MTP helper alive, so Linux cold-starts the MTP. On T8132, dapf_init() preserves the filter state instead of programming it. The MTP firmware's first access (an AOP-side PMGR register, SID 0) then faults with "CTE invalid", and the keyboard and trackpad never come up (RTKit endpoint discovery -62). On the J715, program dart-mtp's DAPF with the legacy m1n1 writer, as m1n1 stage 2 does, before the handoff and power checks. With this, and with the tree's cold-start layout for the MTP (DART stream 0 and the 16 KiB SRAM window), the MTP says hello and the keyboard and trackpad work. Not meant to be merged as is: a board exception for one boot flow. A halted or cold-start handoff mode for the MTP is probably the better fix. Signed-off-by: Kazuhide Takahashi <kazuhide.t@linux-powered.com>
Contributor
|
Early note on this draft (no full review yet):
Assisted-by: LLM (Claude:Opus 5.5) |
Contributor
Author
|
Closing: as suggested in #429, the existing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the J715 boots without U-Boot (m1n1 stage 1 -> aura -> Linux),
nothing keeps the MTP helper alive, so Linux cold-starts the MTP. On
T8132, dapf_init() preserves the filter state instead of programming it.
The MTP firmware's first access (an AOP-side PMGR register, SID 0) then
faults with "CTE invalid", and the keyboard and trackpad never come up
(RTKit endpoint discovery -62).
On the J715, program dart-mtp's DAPF with the legacy m1n1 writer, as m1n1
stage 2 does, before the handoff and power checks. With this, and with
the tree's cold-start layout for the MTP (DART stream 0 and the 16 KiB
SRAM window), the MTP says hello and the keyboard and trackpad work.
Not meant to be merged as is: a board exception for one boot flow. A
halted or cold-start handoff mode for the MTP is probably the better fix.
This PR builds on #429, so it shows that commit too. The matching tree layout (
mtpand itsinput@0on DART stream 0, the SRAM window at 0x394050000/0x4000) is described in aurora-silicon/linux#2663. I'm happy to test another approach.