Skip to content

[Joshua's agent] arm64: dts: apple: t6050-k114-k116: MTP DART streams 0 and 1 - #2014

Closed
joshuaswarren wants to merge 3 commits into
aurora-silicon:integration/aurorafrom
joshuaswarren:dhp4/mtp-dart-stream1
Closed

joshuaswarren wants to merge 3 commits into
aurora-silicon:integration/aurorafrom
joshuaswarren:dhp4/mtp-dart-stream1

Conversation

@joshuaswarren

@joshuaswarren joshuaswarren commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

[Joshua's agent] Draft. Not booted at this head.

The K114c MTP coprocessor writes its receive ring over DART stream 1 of the MTP DART. The transport node listed stream 0 only, so with the ring on, the write faulted and the firmware crashed. This lists streams 0 and 1 on the HID transport, and on the MTP helper too (the DART needs every stream of a device in one IOMMU group), for the K114 and K116 boards. The bindings of both nodes allowed one iommus entry, so the first two commits allow two: apple,dockchannel-hid and apple,rtk-helper-asc4.

Nothing in the base uses stream 1 yet. The ring driver change is #2015; it needs this one first, and without it the ring kills keyboard and trackpad on a K114c.

The helper's list is set in t6050-k114-k116.dtsi, not in the shared t6050-max.dtsi, so the other T6050 boards keep stream 0 only.

Validated on, and reach

What ran where:

  • 14-inch M5 Max MacBook Pro (K114c, T6050), booted, on an earlier form: the same two iommus lists, with the helper's list set in t6050-max.dtsi and with the ring driver change applied.
    • Transport on stream 0 only, ring on: translation fault: SID:1 write BPF reject at the ring address 47 us after the firmware logged the buffer, then RTKit: co-processor has crashed, then no keyboard events.
    • Transport on both streams, helper on stream 0 only: apple-dart ... probe failed with error -22, so the keyboard and trackpad never appeared.
    • Both nodes on both streams, with the ring on: no DART fault, no RTKit crash, keyboard, multi-touch and touch screen ready in 4.3 s.
  • 13-inch M1 MacBook, build only, at this head: the K114c and K116s dtbs build with gcc 16.1.1 and W=1. The seven dtc warnings (six reserved-memory unit-name ones from the GPU dtsi and one for pmp@284e00000) are the same as on the base. The K114c dtb shows iommus = <0x7e 0x00 0x7e 0x01> on both the helper and the transport.
  • This head was not booted, and this change was not booted without the ring.

NOT CHECKED: dt_binding_check and CHECK_DTBS (no dt-schema here; CI runs them). The helper node keeps stream 0 only on every other T6050 board, and the K116 boards were not run.

Applies beyond the M4: no. It is a T6050 device-tree change. No other Mac was run.

m tester run (omarchy-m-testing.org): feature row Keyboard and trackpad. The tester needs the hardware; no tester run is linked to this change.

Changed after CI

Head 61626f2 failed dt-checks: mtp@294600000 (apple,t6050-mtp): iommus: [[N, N], [N, N]] is too long on the K114c, K114s, K116c and K116s dtbs, because I had widened only the HID binding. Head 0d1408c adds the apple,rtk-helper-asc4 binding change as its own commit. The dt-checks run at the new head is not yet seen. The dtbs and the other checks are as described above.

@joshuaswarren

joshuaswarren commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

GREEN on 61626f2

The diff matches the body exactly: the binding widens iommus from exactly one entry to one-or-two with the second-stream rationale in the description, and the two nodes in t6050-k114-k116.dtsi (the MTP helper and the HID transport, which share one IOMMU group) each list streams 0 and 1 - with the scoping claim verified: the change is in the K114/K116 dtsi, not the shared max dtsi, so other T6050 boards keep stream 0 only. The Validated-on section is the strong form: the three-way boot evidence from the earlier form names each failure mode (SID:1 write fault and RTKit crash with the transport on stream 0 only; probe -22 with mismatched group membership; both-working at 4.3 s), the build-only scope at this head names the same seven base dtc warnings, the dtb content is quoted, and the not-checked list keeps dt_binding_check, CHECK_DTBS and the K116 boards honestly open. Merge order (before #2015, and the ring kills input without this) is stated with the reason.

The T6050 MTP firmware writes its receive ring through DART stream 1 of the
MTP DART, in addition to the transport's own stream 0. Allow the transport to
list two iommus entries.

Signed-off-by: Joshua Warren <[email protected]>
The MTP helper shares its IOMMU group with the DockChannel HID transport, and
apple_dart_device_group() needs every stream of a device in one group, so the
helper lists the same two streams as the transport. Allow two iommus entries.

Signed-off-by: Joshua Warren <[email protected]>
… to the transport

With the MTP receive ring enabled on a K114c, the coprocessor wrote the ring
over DART stream 1 while the transport listed stream 0 only. The DART reported
"translation fault: SID:1 write BPF reject" at the ring address, the
coprocessor crashed with a DMA error, and the keyboard and trackpad stopped.

List both streams on the HID transport. apple_dart_device_group() needs every
stream of a device in one IOMMU group, and the MTP helper shares stream 0 with
the transport. With the helper on stream 0 only, the DART probe failed with
-22 on a K114c boot, so the helper lists both streams too. The helper's list is
set here, for the K114 and K116 boards, and not in t6050-max.dtsi, so other
T6050 boards keep stream 0 only.

Nothing in the base uses stream 1 yet; the ring driver change is a separate PR.

Signed-off-by: Joshua Warren <[email protected]>
@joshuaswarren

joshuaswarren commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

GREEN on 0d1408c

Re-review at the dt-checks fix head: the new middle commit widens the rtk-helper-asc4 binding's iommus from exactly one to one-or-two, mirroring the dockchannel-hid widening in the first commit, so the helper node's two-stream list in the dtsi now validates against its binding - the exact failure the earlier head hit. The dts and first commits are as previously reviewed, and the commit subjects still tell the three-step story (transport binding, helper binding, the dts listing both streams). Everything from my verdict at 61626f2 carries: the scoping to the K114/K116 dtsi, the three-way boot evidence, and the honest not-checked list.

@joshuaswarren

joshuaswarren commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

GREEN on 0d1408c

What I checked at this head: dt-checks (12m57s) and host-tests (6m46s) both pass. This covers the failure the PR text reports at 61626f26 (the mtp@294600000 iommus list too long). The two binding changes (minItems: 1, maxItems: 2) match what the dtsi now sets. In t6050-max.dtsi, mtp_dart has #iommu-cells = <1>, so <&mtp_dart 0>, <&mtp_dart 1> is a valid list. mtp in the same file keeps <&mtp_dart 0>, so the other T6050 boards stay on stream 0 only, as the PR says. The &mtp override sits in t6050-k114-k116.dtsi, so it only reaches the K114 and K116 boards.

Notes, none blocking:

  • This head was not booted. The boot evidence is for an earlier form with the helper list in t6050-max.dtsi. The final node placement differs, and the build evidence covers it.
  • The K116 boards were not run.
  • Merge order: HID: dockchannel-hid: receive T6050 MTP reports through the receive ring #2015 needs this PR first, as the PR text says. Without stream 1 in the group, the ring write faults.

Not checked by me: any hardware run.

@joshuaswarren

joshuaswarren commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

Ready for Dj. Head 0d1408c: dt-checks and host-tests pass. Two reviews marked this head GREEN. Not booted at this head; the lab form of the two stream lists booted on the 14-inch M5 Max (K114c). Merge first: #2015 depends on it, and #2016 sits on #2015.

@joshuaswarren

Copy link
Copy Markdown
Contributor Author

Verification note (wAW lane, M5 Max bring-up): the running T6050 DTB
(k114t, built out-of-tree because the in-tree t6050-k114c.dtb lacked the
USB4/ACIO nodes) carries exactly this change — iommus = <&mtp_dart 0>, <&mtp_dart 1> on mtp and the dockchannel HID transport, where the
in-tree DTS has only <&mtp_dart 0>. Decompile diff vs
t6050-k114c.dtb @ integration/aurora shows the two stream-1 additions
and nothing else in the MTP IOMMU space, so this PR covers the DT side
of the MTP stream-1 work; #2015/#2016 carry the HID driver side.

Evidence: ~/scratch/w7h/dtb/k114t.dts (out-of-tree source, sha256
prefix f9e5e51a3cc42071, identical to k114q-acio.dts) vs in-tree
t6050-k114-k116.dtsi.

@joshuaswarren

Copy link
Copy Markdown
Contributor Author

[Joshua's agent] Marked ready. Evidence: the Nov 16 verification note on this PR states the running T6050 DTB (k114t, built out-of-tree) carries exactly this change - the strongest run evidence in this set - plus two GREEN reviews at the current head 0d1408c and carriage in the daily kernel tree (a3m) the 14-inch M5 Max has run since Nov 16, 21:03 CST. Nothing left unexercised for this change's own scope. Unvoiced; checked by hand.

@joshuaswarren
joshuaswarren marked this pull request as ready for review November 18, 2026 05:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-18T05:56:28.480878Z
We couldn’t complete this review. Comment @codex review to try again.
0d1408c Draft marked ready
🔒 Security Review ❌ Failed 2026-11-18T05:56:37.192724Z
We couldn’t complete this review. Comment @codex security review to try again.
0d1408c Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks. This one is ready from our side. It is a board description for K114/K116: both nodes list MTP DART streams 0 and 1, the other T6050 boards keep stream 0, and both bindings are widened to allow it. dt-checks and host-tests are green, it's CLEAN, and the K114c has run a DTB with exactly these two lists since Nov 16. The Codex runs failed on quota, so there are no bot findings to answer.

It's now waiting for maintainer review. It lands first, before #2015.

Two small things, neither blocking:

@joshuaswarren joshuaswarren changed the title [Joshua's agent] arm64: dts: apple: t6050-k114-k116: MTP DART streams 0 and 1 (draft) [Joshua's agent] arm64: dts: apple: t6050-k114-k116: MTP DART streams 0 and 1 Nov 20, 2026
@joshuaswarren

joshuaswarren commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor Author

dt-checks and host-tests passed on 0d1408c7df79. The daily2 K114c DT lists streams 0 and 1 for both MTP and DockChannel HID. That verifies the stream lists, not a boot of this head. GitHub now reports a conflict against the base. That needs clearing before #2015 can follow. The combined K114c run is pending; a K116s run would add separate coverage. The title now omits “draft.”

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. The content is right:

  • both bindings take one or two iommus entries;
  • mtp and the HID transport list streams 0 and 1, so the helper and its transport stay in one IOMMU group;
  • the change sits in t6050-k114-k116.dtsi, so the other T6050 boards keep stream 0 only.

The boot evidence for the two lists (the SID 1 fault with stream 0 only, the -22 with mismatched groups, both working together) makes the case. dt-checks and host-tests were green on 0d1408c. Approving.

It needs a rebase before it can merge. 712f23d ("arm64: dts: apple: t6050: describe the MTP only on the laptops") now adds &mtp_mbox, &mtp_dart and an &mtp { status = "okay"; }; block at the same spot in t6050-k114-k116.dtsi. On rebase, put your iommus = <&mtp_dart 0>, <&mtp_dart 1>; (and its comment) into that existing &mtp block instead of adding a second one. Keep the transport hunk as it is. Once CI is green on the rebased head, I'll merge it, ahead of #2015.

A K116 boot with #2015 comes after the merge, with a revert ready.

@joshuaswarren

Copy link
Copy Markdown
Contributor Author

[Joshua's agent] Rebased onto integration/aurora (5d336151) as #2568 at 436fc56a: the stream list and its comment now live inside the &mtp block that 712f23d added, the transport hunk is unchanged, and git range-diff shows no other drift. CI is rerunning there.

DjDeveloperr added a commit that referenced this pull request Nov 20, 2026
[Joshua's agent] arm64: dts: apple: t6050-k114-k116: MTP DART streams 0 and 1 (rebased, supersedes #2014)
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Superseded by #2568, merged as a0ae0cd. Same change, rebased with the stream list in the existing &mtp block. Closing. #2015 can follow; the K116 row with #2015 carries over to #2568.

@joshuaswarren

Copy link
Copy Markdown
Contributor Author

Thanks — superseded by #2568 and merged as a0ae0cd. Appreciated.

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.

3 participants