Repository navigation
arm64: dts: apple: t8132-j715: hand the MTP over as a halted consumer - #2745
Conversation
|
The DT side matches t8132-j604.dts and aurora-silicon/aura#429: the J715 gets
Assisted-by: LLM (Claude:Opus 5.5) |
|
Thanks for the review. A J715 booted with the MTP left running. What I can say today, from source and from this unit:
Merge order: added to the description. This needs aurora-silicon/aura#429 in the shipped aura; with aura main alone, the J715 keeps its current MTP fault. |
249a224 to
8b51ad4
Compare
|
The J715 boot through U-Boot is done. It corrects one point of my earlier reply. Setup. J715, OS firmware 26.6.2, stage 1 → aura → U-Boot → Linux:
Two boots, differing only by one line in U-Boot. U-Boot was kept off NVMe, and the kernel came from the boot.bin (details in the U-Boot PR).
Correction. I wrote that with U-Boot in the chain "Linux should again get a halted MTP on stream 0". That part holds: the loader's halted filter and this tree's stream 0 layout were fine in both boots, with no DART faults. But a halted MTP is not a fresh one. The MTP firmware does not survive a second start, exactly as on the J604 (aurora-silicon/u-boot#44), so a U-Boot that runs it first breaks the keyboard and trackpad. The fix belongs in U-Boot, the same one-line change as u-boot#44: aurora-silicon/u-boot#69. With it, this tree works through U-Boot as it does without. The running-MTP case you asked about is still untested. This tree assumes a halted MTP. A boot that hands it over running would need the J713's stream 1 layout. That can't come from stage 1 → aura → Linux on 26.6.2, nor from U-Boot with the fix above. It would come from iBoot on other firmware, or from a U-Boot live handoff such as aurora-silicon/u-boot#57. I've added this to the commit message and force-pushed it (message only, no code change). |
|
Thanks for the U-Boot row and the correction. 8b51ad4 has the same tree as before (message only), so our earlier read stands. The keyboard loss is the U-Boot side's to fix (aurora-silicon/u-boot#69). I suggested there that it key on this tree's halted-handoff property rather than adding the J715 to a board list, so this PR and that one line up without another table entry. Assisted-by: LLM (Claude:Opus 5.5) |
There was a problem hiding this comment.
Adversarial review at head 8b51ad43a3d7b9154e2ebd1676a828eb25f37ec0 against pre-pr-checklist.md: Request changes — the devicetree change itself is clean and matches t8132-j604.dts, but there is a §6 naming violation in both the DTS comment and the commit message, and CI has not yet run.
Blocker
- §6 Naming (hard rule —
arch/arm64/boot/dts/apple/t8132-j715.dts:24& commit message):pre-pr-checklist.md§6 requires Aurora paths and names, notAsahiorm1n1.- Both the new comment in
arch/arm64/boot/dts/apple/t8132-j715.dts:24and the commit message of8b51ad43writem1n1 stage 1 -> aura -> Linux. (The PR description already usesstage 1 -> aura -> Linux, andt8132-j604.dtshas nom1n1reference.) - Please drop
m1n1from both the DTS comment and commit message (e.g.,stage 1 -> aura -> Linuxoraura stage 1 -> stage 2 -> Linux).
Technical, Policy & §5 Check
- DT correctness & §1 / §2 / §3: Matches
t8132-j604.dts(chosen/linux-enablement-mac,dapf-halted-handoff = "/arm-io/mtp",&mtp_dartapple,remap-streams = <1 0>, <2 0>, <3 0>,&mtpand&mtp_hidiommus = <&mtp_dart 0>). Default cmdline, board-scoped DT only, and pairs withaurora-silicon/aura#429(which removes the board list in aura). The U-Boot second-start crash (aurora-silicon/u-boot#69), running-MTP caveat, andaura#429merge order are clearly documented. - §4 Attribution: Clean — human author/committer (
Kazuhide Takahashi) andSigned-off-by:only. - CI (needs run): Both fork workflow runs (
Host tests,Device tree checks) on8b51ad43are currentlyaction_requiredawaiting maintainer approval; please ensureDevice tree checks/Host testsrun green after the naming update. - §5 Evidence (minor completeness): The direct and U-Boot J715 hardware rows confirm MTP cold-start, keyboard/trackpad, audio/display/GPU, and 0 DART faults; please also include the kernel build/version and the standard §5 regression counts (
0 SELinux denials,0 failed units,0 new kernel errors) in the PR description.
When the device tree names the MTP (/arm-io/mtp) in /chosen linux-enablement-mac,dapf-halted-handoff, the earlier stage hands it to the OS halted and Linux cold-starts it. U-Boot's MTP keyboard probe starts it first and stops it again at OS entry, and the firmware does not survive the second start: on the J715 (MacBook Air 15-inch, M4), Linux's RTKit init is followed 0.3 ms later by "co-processor has crashed", the same data abort as on the J604, and the internal keyboard and trackpad are gone. Refuse the keyboard whenever the tree says so, instead of listing boards. The J604's tree has the property, so its entry goes; the J715's gets it from aurora-silicon/linux#2745. The J813 and T6050 keep theirs, since their trees don't name the MTP there. U-Boot then has no internal keyboard on these boards, and Linux gets a firmware nobody ran. Tested on a J715 (OS firmware 26.6.2) with the #2745 tree: with aurora-wip as is, the MTP crashes in Linux; with this change, "MTP Says Hello" and the keyboard and trackpad work. Signed-off-by: Kazuhide Takahashi <[email protected]>
Without U-Boot (stage 1 -> aura -> Linux), nothing keeps the J715's MTP running, so Linux cold-starts it. As on the J604, name /arm-io/mtp in linux-enablement-mac,dapf-halted-handoff so the loader programs its DART filter as for a halted consumer, and put the MTP and its HID on DART stream 0 (streams 1 to 3 remapped to 0) instead of the stream 1 the J713's running MTP is handed over on. Before this, the MTP firmware's first access faulted with "CTE invalid" and the keyboard and trackpad never came up. With U-Boot in the chain, U-Boot has to leave the MTP alone, as on the J604: if it starts the MTP for its keyboard, it stops it again before Linux, and the firmware crashes on Linux's second start. Linux still finds it halted on stream 0. A boot that hands the MTP over running, as the J713 does, would need the J713's stream 1 layout instead. Neither stage 1 -> aura -> Linux on 26.6.2 nor U-Boot with the J715 in its keyboard skip list does that, and it has not been tested. Tested on a J715 with OS firmware 26.6.2 and aura main plus aurora-silicon/aura#429: the MTP says hello, and the keyboard and trackpad work, with no DART faults. Through U-Boot aurora-wip with the J715 in that skip list: the same. Through U-Boot aurora-wip as is: the MTP firmware crashes as on the J604. Signed-off-by: Kazuhide Takahashi <[email protected]>
8b51ad4 to
0388405
Compare
|
Thanks for the review.
|
|
Re-checked at 0388405. Against 8b51ad4 the only change is the one DTS comment line, and the commit message no longer mentions m1n1, so the DTB is the one I reviewed. Thanks for listing the counts as they are. One question about the test kernel. The rows ran on integration/aurora 0abc2f3 plus local J715 changes in four files, one of them the AIC driver. The MTP cold start and the keyboard depend on its interrupts, so could you say what the local AIC change does, and whether the MTP comes up the same without it? If the J715 needs any of those four changes to boot from integration/aurora, a link to where they are going would help. That way the row can be repeated on a plain tree once they land. Assisted-by: LLM (Claude:Opus 5.5) |
|
@kazuhidet status against integration/aurora daa9e2d: this merges cleanly; t8132-j715.dts has not changed on the tip since b8c5bb0 and the J604 still carries the same three pieces, so it is still needed. The naming point from the change request is fixed at 0388405 and needs a re-review, and the CI runs on this head still have to be approved. It only takes effect together with aurora-silicon/aura#429, which is still open; the U-Boot path additionally needs aurora-silicon/u-boot#69. One question is still open: what the local AIC change in the test kernel does, and whether the MTP comes up the same without it. |
|
Thanks for checking against The local AIC change is #2666, one line in Without it, this J715 doesn't boot at all. Its stage 1 arms no CTXR exec window. On that chain, the write to The MTP part of this PR doesn't depend on it:
A J715 booted through an aura that publishes a CTXR window wouldn't need #2666. I can't produce that boot here, because this unit's stage 1 is the one that arms no window. |
There was a problem hiding this comment.
Formal adversarial §1–§6 pre-PR checklist re-review at 03884056556a2680b41f2e3b5bebcf878f56dc6c (against live integration/aurora 70a00e583b03; still needed — t8132-j715.dts on integration/aurora still lacks halted-handoff and stream 0 remap).
Prior Blocker Verification
- §6 Naming (fixed):
m1n1has been removed from botharch/arm64/boot/dts/apple/t8132-j715.dts:24and the commit message (stage 1 -> aura -> Linux). - §5 Evidence & AIC follow-up (resolved): Kernel version (
7.3.0-j715-aurora+), regression counts (Arch/no SELinux, 2 pre-existing local units, 0 new kernel errors), and the local AIC change (aurora-silicon/linux#2666, required only for stage 1 without CTXR window and orthogonal to MTP) are documented alongside the J715 direct and U-Boot hardware rows.
Checklist Summary
- §1 No model gating: Pass — board-scoped DT matching
t8132-j604.dts; merge dependency withaurora-silicon/aura#429(still open; no-op/no regression without it) and U-Boot skip-list dependency (aurora-silicon/u-boot#69, still open) are documented. - §2 Production-ready, no hacks: Pass — default command line, clean DT diff (
chosen/linux-enablement-mac,dapf-halted-handoff = "/arm-io/mtp",&mtp_dartstream remap1..3 -> 0,&mtp&&mtp_hidiommus = <&mtp_dart 0>). - §3 Safety: Pass.
- §4 Clean-room & attribution: Pass — human author/committer (
Kazuhide Takahashi <[email protected]>) and humanSigned-off-by:only, zero AI trailers in commit. - §5 Evidence: Pass.
- §6 Naming: Pass.
Remaining Blocker
- Live CI not green (
action_required): Both fork workflow runs at03884056556a(Host testsandDevice tree checks) are inaction_requiredawaiting maintainer approval and have not executed yet. Code, attribution, naming, and hardware evidence are all clean; once CI runs green at this head, this is ready to approve.
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge at 03884056556a: the code is ready; it needs only a row at this head.
Blockers: none in the code. Missing row: none beyond CI: I've approved the two waiting runs, and once they pass this merges. Your J715 evidence covers the halted MTP handoff. Thanks.
Checked: no Apple material, DT only (t8132-j715.dts hands the MTP over as a halted consumer, which pairs with u-boot#69).
Superseded by the review at 0388405
|
About the The new warnings are for
I checked this locally at the PR head with dtschema 2026.9 (
So the J715 now matches the J604, and the check counts that as new only because the J715 didn't have the property before. A schema for the |
|
aurora-silicon/aura#429 is merged ( I haven't booted aura main itself on this J715. Its stage 1 still needs the local-only parts listed in aura#429 (the f0c15a12 revert and the AOP/ATC gates), so the J715 rows here are from main plus those parts. The only open item here is the |
|
Thanks for #3106 and for updating the branch. At I reproduced it locally with dtschema 2026.9:
I don't see a way to clear it from the kernel tree alone short of a dtschema change, so I'd leave it as the known On the hardware row: the J715 DTB built at |
Upstream dtschema's chosen.yaml sets additionalProperties: false, so dt-validate still reports every in-tree /chosen property (even those documented under Documentation/devicetree/bindings/chosen/*.yaml as in PR aurora-silicon#3106) as not matching any regex in chosen.yaml. Adding another documented /chosen property (such as linux-enablement-mac,dapf-halted-handoff in aurora-silicon#2745 for t8132-j715.dtb) changes the quoted property list in that warning line, causing apple-dt-check.sh to fail with a false positive. Fix this without shadowing upstream chosen.yaml: - Document linux-enablement-mac,disk-boot (used in t8132-jxxx.dtsi) in Documentation/devicetree/bindings/chosen/linux-enablement-mac,disk-boot.yaml. - In scripts/dtc/apple-dt-check.sh, parse properties documented under Documentation/devicetree/bindings/chosen/*.yaml for each checked revision and subtract only those documented property names from 'chosen: ... do(es) not match any of the regexes:' lines. Lines are dropped only when every listed property is documented in bindings/chosen/*.yaml. Any undocumented /chosen property remains reported (with singular/plural verb normalized), and all non-/chosen warnings and schema type/value checks continue to fail as before. Signed-off-by: Diljit Singh <[email protected]>
|
#3122 ( Updating or rebasing this branch onto current |
|
@DjDeveloperr thanks for #3122. I updated the branch onto main ( What the CI run shows. In
So the filter removed nothing in that run. Cause. dtschema writes the I ran The CI log doesn't print the dtschema version, so I can't confirm the runner got 2026.9. But a filter that removes nothing on any board fits this cause. Check. On that log (J715 and J713 DTBs), I ran
A minimal fix would be to compare without the fragment, for example: if schema_id is None or schema_id.rstrip("#") != CHOSEN_SCHEMA_ID.rstrip("#"):I haven't run the full |
RyanTheTide
left a comment
There was a problem hiding this comment.
Verdict at c4dd42b2: two questions before merge.
1. Board or boot state? This hands the MTP over as halted on the J715 only, mirroring the J604. The J713 is the same SoC (T8132, 13-inch Air), and its MTP is handed over running, on stream 1. dt-checks flags the same split as sibling drift: apple,remap-streams on mtp_dart is on the j604 and j715 only, while j623, j624, j713 and j773g have the node without it.
Is "iBoot leaves the MTP stopped" really a property of these two boards, or of the boot path, with the J713 different only because of how it's booted today? Our rules want behaviour chosen by what the hardware or firmware describes, not by board. Ideally the loader would see that the MTP is stopped at handoff (from its DART/ASC state) and pick halted versus running from that, with no per-board dapf-halted-handoff. If it truly is per board (iBoot differs by model), please say so in the commit message, with the evidence: the J715 and J713 ADT or iBoot state of mtp at handoff.
2. dt-checks fails at this head. The new linux-enablement-mac,dapf-halted-handoff adds to the existing unknown-chosen-property warning for j715, and the drift warning above is new. If the property stays, it needs a binding entry, or the existing j604 schema gap fixed for both boards.
The fix itself (the MTP on stream 0 with remap-streams, cold-started by Linux) matches the J604, and your J715 row looks good.
|
Thanks for the review. Some new data on question 1, which I couldn't collect before. 1. Board or boot state. This J715 now boots the way the docs describe for an OS at EL2:
So the loader path is now the aurora-installer one. On that path, with linux main There is no keyboard or trackpad. With the stream 0 layout this PR uses (the MTP and What this J715 has shown, on every chain I can boot:
In every case iBoot left the MTP stopped. What I can't tell from here is why the J713 gets a running MTP. I have no J713. If the J713's rows go through U-Boot, U-Boot may be the one starting it. A J713 boot on Stage 1 → aura → Linux would separate board from path. On detecting it in the loader: aura already checks the CPU state for a consumer named in I'll add the evidence to the commit message: the J715 states above, the boot chains, and that the J713 was not observed. 2. dt-checks.
|
|
I am preparing a focused follow-up for the chosen.yaml schema-ID mismatch reported here on November 26: normalize only an optional empty fragment, retain unknown-property and other-schema warnings, and add production-filter fixtures to dt-checks. The fixtures reproduce the reported failure and pass with the normalization, including the actual four-property J715 diagnostic. No device-tree or runtime changes are included. |
What: without U-Boot, iBoot leaves the J715's MTP stopped, so its firmware faults and the keyboard and trackpad stay dead. Hand the MTP over as a halted consumer, as
t8132-j604.dtsdoes.Tested: J715 M4 Air with this tree, aura main
58e712b9+ aura#429, booted direct and through a U-Boot with u-boot#69's fix (now merged): MTP cold-started by Linux, keyboard and trackpad work, 0 new kernel errors. Through unpatched U-Boot the MTP crashes on its second start, which u-boot#69 fixes.Risk: two-way · J715 only
Not yet: nothing on the J715 side. Needs aura#429 in the shipped aura; without it the J715 stays as it is today.
On a J715 (15-inch M4 Air) booted stage 1 → aura → Linux, the MTP is stopped when Linux takes over, as on the J604. This mirrors
t8132-j604.dts:/chosen:linux-enablement-mac,dapf-halted-handoff = "/arm-io/mtp", so aura programs dart-mtp's filter as for a halted consumer;&mtp_dart:apple,remap-streams = <1 0>, <2 0>, <3 0>;&mtpand&mtp_hid:iommus = <&mtp_dart 0>.Without it, the MTP firmware's first access faults ("CTE invalid") and the keyboard and trackpad stay dead.
Tested on a J715, OS firmware 26.6.2, aura main 58e712b9 with aurora-silicon/aura#429 (the T8132 board list dropped from
dapf_init_fdt()):AppleMTPFirmwareMac-5340.61.4), no DART faults;This replaces the board exception proposed in aurora-silicon/aura#430. J715 report: #2663.
Merge order: this needs aurora-silicon/aura#429 in the shipped aura, and the two should land together. With aura main alone, the board list skips the J715, and the MTP faults as it does today. That is not a regression.
Kernel and regression counts. The kernel is the J715's everyday build,
7.3.0-j715-aurora+. It isintegration/aurora0abc2f3 with local J715 bring-up changes in four files (EFI earlycon, the Apple DRM driver, the GPUhw.rs, the AIC driver), none of them in this PR. The DTB is this PR's tree. Counts from the three recorded boots (direct, through U-Boot with aurora-silicon/u-boot#69's fix, and through unpatched U-Boot):j713-owner-assets.serviceandm4-j715-backlight.service. Both are local services of this install (speaker filter assets and a backlight guard) and fail the same way without this change.error above:avd ... probe with driver avd failed with error -2(no AVD firmware).hid-generic ... device has no listeners.apple-dcp ... external DCP not handed over.