Repository navigation
[Joshua's agent] arm64: dts: apple: t6050-k114-k116: MTP DART streams 0 and 1 - #2014
joshuaswarren wants to merge 3 commits into
Conversation
|
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]>
61626f2 to
0d1408c
Compare
|
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. |
|
GREEN on 0d1408c What I checked at this head: Notes, none blocking:
Not checked by me: any hardware run. |
|
Verification note (wAW lane, M5 Max bring-up): the running T6050 DTB Evidence: |
|
[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. |
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
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. |
|
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:
|
|
|
DjDeveloperr
left a comment
There was a problem hiding this comment.
Thanks. The content is right:
- both bindings take one or two
iommusentries; mtpand 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.
[Joshua's agent] arm64: dts: apple: t6050-k114-k116: MTP DART streams 0 and 1 (rebased, supersedes #2014)
[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
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.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.W=1. The seven dtc warnings (six reserved-memory unit-name ones from the GPU dtsi and one forpmp@284e00000) are the same as on the base. The K114c dtb showsiommus = <0x7e 0x00 0x7e 0x01>on both the helper and the transport.NOT CHECKED:
dt_binding_checkandCHECK_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 longon the K114c, K114s, K116c and K116s dtbs, because I had widened only the HID binding. Head 0d1408c adds theapple,rtk-helper-asc4binding change as its own commit. Thedt-checksrun at the new head is not yet seen. The dtbs and the other checks are as described above.