Repository navigation
Conversation
…mailboxes On T8152 the NVMe (ANS), display (DCP), keyboard and trackpad (MTP) and SEP coprocessors talk through windows of the same post-office block as the SMC: counted FIFOs sharing one status register, with interrupt masking left to the interrupt controller. The register layout is the one apple,t8152-smc-mailbox already describes. Add a compatible per coprocessor, each with apple,t8152-smc-mailbox as its fallback, so the existing driver match serves them without a code change and a later difference can still be keyed on the specific compatible. All four carry traffic on a MacBook Pro (M6, J804), with the single-compatible form of these nodes: NVMe, the keyboard and trackpad, and Touch ID run through them, and the DCP driver exchanges its messages through the DCP window. Signed-off-by: LiamRay11 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
sithglan
left a comment
There was a problem hiding this comment.
Test report, 2026-11-17: Apple Mac mini M6 (J873g/T8152, board 0x24). PR revision tested: 31fe98769029f1fbdd7e5e74e93672a372b63018.
Host validation used the combined #2105–2108/#2110–2112 series (54742c617db4 on 677be395b9d2) with Clang 22. All changed driver objects built with W=1 and no new warnings; two pre-existing DART unused-helper warnings were unchanged.
The changed mailbox binding passed dt_binding_check as part of validation of all ten changed bindings in the related series. All 137 Apple DTBs built at both base and combined head: zero new warning lines and eight removed. This is schema/DT build coverage; no new mailbox endpoint was independently exercised on hardware.
|
Thanks, LiamRay11. Using One thing to sort out before this can go in: #1797 adds The binding has no code of its own, so the remaining row is for the windows that have not run on this base yet:
After that we will run a no-regression row for the shared mailbox driver on our A18 Pro (Neo) and M4 Pro. |
…mailboxes On T8152 the NVMe (ANS), display (DCP), keyboard and trackpad (MTP) and SEP coprocessors talk through windows of the same post-office block as the SMC: counted FIFOs sharing one status register, with interrupt masking left to the interrupt controller. The register layout is the one apple,t8152-smc-mailbox already describes. Add a compatible per coprocessor, each with apple,t8152-smc-mailbox as its fallback, so the existing driver match serves them without a code change and a later difference can still be keyed on the specific compatible. All four carry traffic on a MacBook Pro (M6, J804), with the single-compatible form of these nodes: NVMe, the keyboard and trackpad, and Touch ID run through them, and the DCP driver exchanges its messages through the DCP window. Signed-off-by: LiamRay11 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]> [Thomas: taken from aurora-silicon#2105 for the J873g ANS node; placed before the T8152 ASCWrap v8 entry this branch adds] Signed-off-by: Thomas Glanzmann <[email protected]>
|
For the overlap with #1797: as of |
|
Merge-train adversarial review (MERGETRAIN-LINUX2) at 31fe987: NO BLOCKERS. Code read only, nothing built here. Before the merge it still needs Dj's verdict at this head; the missing rows are listed below. Full review#2105 dt-bindings: mailbox: apple,mailbox: T8152 post-office mailboxes for ANS, DCP, MTP and SEP @31fe9876VERDICT: NO BLOCKERS Code checks out:
Nits:
Missing rows:
|
…mailboxes On T8152 the NVMe (ANS), display (DCP), keyboard and trackpad (MTP) and SEP coprocessors talk through windows of the same post-office block as the SMC: counted FIFOs sharing one status register, with interrupt masking left to the interrupt controller. The register layout is the one apple,t8152-smc-mailbox already describes. Add a compatible per coprocessor, each with apple,t8152-smc-mailbox as its fallback, so the existing driver match serves them without a code change and a later difference can still be keyed on the specific compatible. All four carry traffic on a MacBook Pro (M6, J804), with the single-compatible form of these nodes: NVMe, the keyboard and trackpad, and Touch ID run through them, and the DCP driver exchanges its messages through the DCP window. Signed-off-by: LiamRay11 <[email protected]> [Thomas: taken from aurora-silicon#2105 for the J873g ANS node; placed before the T8152 ASCWrap v8 entry this branch adds] Signed-off-by: Thomas Glanzmann <[email protected]>
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: HOLD at 31fe98769029
Blockers:
Documentation/devicetree/bindings/mailbox/apple,mailbox.yaml:30-39,:257-270: Merge conflict (mergeable_state: dirty) againstmain(83950d093e1b) because both hunks are already landed verbatim onmainin commitc96f8d562763(merged via #1797, merge commitdaa9e2de18bd). Close this PR as superseded by #1797 (rebasing ontomainproduces an empty diff).- Commit
31fe98769029and PR description (§4): The commit message ends with a non-human co-author trailer and the PR description ends with a tool-generator footer line; both violate §4. If this branch is ever rebased rather than closed, drop both lines (note thatc96f8d562763onmainalready omitted the trailer).
Checked: DT schema validity (compatible oneOf, allOf interrupt/property constraints, additionalProperties: false, example), mergeability and overlap against main, CI checks (dt-checks, host-tests), and commit/PR hygiene (§1–§6).
Evidence
- Head SHA:
31fe98769029f1fbdd7e5e74e93672a372b63018(fork PRLiamRay11:j804/t8152-mailboxes,state: open,mergeable: false,mergeable_state: dirtyagainstmain83950d093e1b). - Superseded on
main: Commitc96f8d562763abe640920b2011cdfe1a97fd7679(authored byLiamRay11, merged in #1797 atdaa9e2de18bdon 2026-11-23) already contains the exactapple,t8152-{ans,dcp,mtp,sep}-mailbox+apple,t8152-smc-mailboxoneOfbranch andmailbox@316020300example inDocumentation/devicetree/bindings/mailbox/apple,mailbox.yaml. - Schema: Valid;
containsmatchesapple,t8152-smc-mailboxfor the 2-interrupt (send-empty,recv-not-empty) constraint, excludes it from the 4-interrupt default andiommus/apple,dma-rangerules, and keepsadditionalProperties: false. - CI at
31fe98769029:dt-checksSUCCESS (run 43992611229),host-testsSUCCESS (run 43992611196) — both ran 2026-11-17 before #1797 landed onmain. - Checklist §1–§6: §1–§3 pass (fallback binding, no model gating/hacks/hardcoded safety values); §4 fails on commit trailer and PR body footer (no Apple IP issues); §5 hardware note: J804 ANS fallback tested on combined tree, DCP/MTP/SEP fallback and regression rows not yet run at PR head (moot if closed as superseded); §6 passes (uses
aura, no forbidden naming).
Summary
On T8152 (M6), the NVMe (ANS), display (DCP), keyboard/trackpad (MTP) and SEP coprocessors use windows of the same post-office block as the SMC. That block has counted FIFOs sharing one status register, and interrupt masking is left to the interrupt controller.
apple,t8152-smc-mailboxalready describes this register layout. This PR adds a compatible for each of these coprocessors, withapple,t8152-smc-mailboxas the fallback.Why bindings only
The bring-up tree added four identical entries to the driver's match table, all pointing at
apple_mbox_t8152_smc_hw. A fallback compatible gives the same result without a code change. If the windows ever differ, the specific compatible is still there to key on. If reviewers prefer driver match entries, or a single genericapple,t8152-po-mailbox, that is an easy change.Changes
Documentation/devicetree/bindings/mailbox/apple,mailbox.yaml: one newoneOfbranch:apple,t8152-{ans,dcp,mtp,sep}-mailboxfollowed byapple,t8152-smc-mailbox. The existing T8152 conditions on interrupts (send-empty,recv-not-empty) apply throughcontains. Also adds an example.Testing
On hardware: MacBook Pro 14-inch (M6, J804), 2026-11-16, tested by LiamRay11.
bf423bf0ewith all nine J804 linux PRs merged (t8152-mailboxes, dart-gen3, dt-board, centauri, g18-fast-retire, cfg80211-stale-scan, smc, cs42l84-jack, and an NVMe PR that is not sent yet), plus retest-only device-tree changes that are not part of these PRs: SSD nodes (ANS mailbox, SART, NVMe), PCIe port 0 with the N1 Wi-Fi, the USB0 gadget console, and aread-onlyNVRAM partition. Those nodes were needed to reach the root filesystem and SSH.systemctl rebootfrom this kernel (watchdog restart) returned to the installed system.Results for this PR:
apple,t8152-ans-mailbox,apple,t8152-smc-mailbox) bound through the fallback, with no driver match entry. NVMe ran through it: the namespaces came up, two cold reads of the same large file gave equal hashes, and a package-manager integrity check reported 0 altered files.Checks on this base: no code change.
scripts/dtc/apple-dt-check.sh(basebf423bf0e, head = this series together with j804/dt-board, j804/dart-gen3 and the J804 NVMe change): 137 Apple DTBs built at both, 0 new CHECK_DTBS warnings (8 removed: the J873gapple,t8152-pmgr/-pmgr-pwrstateones), anddt_binding_checkpasses for every changed binding.integration/aurora has since moved to
677be395b; this branch still merges into it without conflicts.Dependencies
None. The users of these compatibles are the J804 NVMe, MTP, DCP and SEP nodes in later PRs. The ISP and PMP windows are not included: their consumers are not proposed yet.
🤖 Generated with Claude Code