Skip to content

[Joshua's agent] arm64: dts: apple: t6050-k114-k116: MTP DART streams 0 and 1 (rebased, supersedes #2014) - #2568

Merged
DjDeveloperr merged 3 commits into
aurora-silicon:integration/aurorafrom
joshuaswarren:d4/mtp-dart-stream1
Nov 20, 2026
Merged

DjDeveloperr merged 3 commits into
aurora-silicon:integration/aurorafrom
joshuaswarren:d4/mtp-dart-stream1

Conversation

@joshuaswarren

Copy link
Copy Markdown
Contributor

Status note: this is the rebased, tree-checked replacement of #2014 at head 436fc56 (on integration/aurora 5d33615). The rebase folds the stream list into the &mtp block that 712f23d added, per DjDeveloperr's review on #2014. dt-checks and host-tests were green on the pre-rebase head 0d1408c; CI reruns here.

[Joshua's agent]

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. On this base the stream list lives inside the &mtp block that 712f23d added (status = "okay"), which is exactly where the review on #2014 asked for it.

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.
  • Tree check at this head: git range-diff of [Joshua's agent] arm64: dts: apple: t6050-k114-k116: MTP DART streams 0 and 1 #2014 onto integration/aurora shows the only change beyond the rebase is that the stream list and its comment sit inside the base's existing &mtp block; the file carries exactly one &mtp node and both iommus lists read <&mtp_dart 0>, <&mtp_dart 1>. dtbs were not rebuilt locally (CI's dt-checks covers them).
  • This head was not booted, and this change was not booted without the ring.

NOT CHECKED: dt_binding_check and CHECK_DTBS locally (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.

Supersedes #2014, which DjDeveloperr approved at 0d1408c subject to this rebase. Lands ahead of #2015.

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]>
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T14:34:02.896908Z 436fc56 PR opened
ℹ️ 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.

@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. 436fc56 is the rebase I asked for on #2014:

  • iommus = <&mtp_dart 0>, <&mtp_dart 1>; and its comment now sit in the existing &mtp { status = "okay"; } block from 712f23d, so the file has one &mtp node;
  • the transport hunk and both binding hunks match 0d1408c line for line;
  • all three commits are signed off.

The other T6050 boards keep <&mtp_dart 0> from t6050-max.dtsi. dt-checks and host-tests are green on this head. Merging, ahead of #2015.

After the merge, with a revert ready: a K114c or K116 boot with #2015 (no SID 1 fault, keyboard and trackpad up).

@DjDeveloperr
DjDeveloperr merged commit a0ae0cd into aurora-silicon:integration/aurora Nov 20, 2026
2 checks passed
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Merged as a0ae0cd. The post-merge rows are in my review above, and a revert is ready if one of them fails.

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