Repository navigation
[Joshua's agent] arm64: dts: apple: t6050-k114-k116: MTP DART streams 0 and 1 (rebased, supersedes #2014) - #2568
Conversation
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]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
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&mtpnode;- 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).
a0ae0cd
into
aurora-silicon:integration/aurora
|
Merged as a0ae0cd. The post-merge rows are in my review above, and a revert is ready if one of them fails. |
[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
iommusentry, so the first two commits allow two:apple,dockchannel-hidandapple,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 sharedt6050-max.dtsi, so the other T6050 boards keep stream 0 only. On this base the stream list lives inside the&mtpblock that 712f23d added (status = "okay"), which is exactly where the review on #2014 asked for it.Validated on, and reach
What ran where:
iommuslists, with the helper's list set int6050-max.dtsiand with the ring driver change applied.translation fault: SID:1 write BPF rejectat the ring address 47 us after the firmware logged the buffer, thenRTKit: co-processor has crashed, then no keyboard events.apple-dart ... probe failed with error -22, so the keyboard and trackpad never appeared.git range-diffof [Joshua's agent] arm64: dts: apple: t6050-k114-k116: MTP DART streams 0 and 1 #2014 ontointegration/aurorashows the only change beyond the rebase is that the stream list and its comment sit inside the base's existing&mtpblock; the file carries exactly one&mtpnode and bothiommuslists read<&mtp_dart 0>, <&mtp_dart 1>. dtbs were not rebuilt locally (CI's dt-checks covers them).NOT CHECKED:
dt_binding_checkandCHECK_DTBSlocally (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.