Skip to content

arm64: dts: apple: t8122-j615: leave the trackpad power method to the driver - #3323

Merged
RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
freber:t8122-j615-mtp-power-method
Nov 27, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
freber:t8122-j615-mtp-power-method

Conversation

@freber

@freber freber commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

What: #2576 pins apple,power-method = <2> on the J615 multi-touch node, because the 27.2 trackpad firmware rejects the one-stage power command. A J615 on the 14.7 stub boots the same t8122-j615.dtb. Its firmware rejects the first two-stage command instead, so the trackpad never opens. This drops the pin and leaves the choice to the driver, which since 6283432 (#3131) moves to power method 2 when method 1 is rejected.
Tested: J615 M3 Air 15" (14.7 stub) at 9915671b8e42. The trackpad works, Interface multi-touch is now ready at 0.70 s and 0 output report 0x40 errors. The same kernel with main's tree logged 11 of those errors and the trackpad never opened.
Risk: two-way door · J615 (M3 Air 15") on the 14.x and 27.2 stubs. The 25G83 tree keeps its own pin.
Not yet: a J615 on the 27.2 stub, where the driver now has to fall back from method 1 to method 2, also with the MTP handed over running. @RyanTheTide, could your lab J615 boot this tree?

Details

On main the failing path is dchid_pm2_set_power(). Its first command, the 9-byte 0x40 announce, gets 0xe00002c2 from the 14.7 firmware and returns -EIO. dchid_start_interface() fails and dchid_open() passes the error on to every opener. Hyprland's libseat then logs Could not take device: Input/output error for "Apple MTP multi-touch". The keyboard keeps working. The fallback from 6283432 doesn't run, because the DT pins the method.

Before #2576 the J615 used power method 1, which the 14.7 firmware takes. A build on integration/aurora at 24dc422 brought the trackpad up on this Mac in 2 of 2 boots. So the right power method depends on the trackpad firmware. A board tree that both firmwares boot can't pin it. The driver's fallback needs an unpinned method and an AFE reset line, which the J615 gets from t8122-j613-j615.dtsi.

A driver-side retry of method 1 after a rejected pinned method 2 would also work. I'd rather not, since it overrides a pinned value to work around a pin that shouldn't be there.

The J613 tree doesn't pin the method, so a J613 on 14.x isn't affected.

Separate from this fix, each failed open allocates a firmware copy and a DMA buffer of about 80 KB each. They are freed only at unbind.

Evidence
  • The kernel I booted is main 8c6992db4 with drm/asahi: m3: T8122 GPU states 6 to 8 under the thermal limit, with the J615 die zone and CPU thermal zones #2203 (d699fbb89867) and one local commit that keeps the DRM driver name "asahi" for my installed Mesa. Neither touches HID or the MTP nodes.
  • The tree I booted is t8122-j615.dtb built from that kernel plus this commit. Decompiled against the installed tree, the one difference is the dropped apple,power-method = <0x02> under /soc/fifo@2fab14000/input@0/multi-touch.
  • On that boot the kernel logged Interface keyboard is now ready and [Touch]: Touch initialized at 0.45 s, then Interface multi-touch is now ready at 0.70 s, then Touch interface ready and Touch MT ready from the MTP. There were no dockchannel-hid error lines. hyprctl devices lists apple-mtp-multi-touch under mice.
  • With main's tree the same kernel logged output report 0x40 to iface 0 (comm) failed with err 0xe00002c2 7 times during boot and 4 more each time udev reopened the device. The live tree had apple,power-method = <2> under multi-touch and no "power method 1 rejected" line.

… driver

Commit d5cc1f6 pinned apple,power-method = <2> on the J615
multi-touch node because the 27.2 MTP firmware rejects the one-stage
interface reset. A J615 on the 14.7 stub boots the same t8122-j615.dtb,
and its firmware rejects the first two-stage command instead:

  dockchannel-hid 2fab28000.input: output report 0x40 to iface 0 (comm)
  failed with err 0xe00002c2

dchid_pm2_set_power() then returns -EIO, dchid_start_interface() fails
and dchid_open() returns it, so every open of the multi-touch evdev
node fails with EIO. The keyboard works and the trackpad does not. The
same machine on the 14.7 stub brought the trackpad up with the method
left at its default, power method 1.

Commit 6283432 ("HID: dockchannel-hid: fall back to power method 2
when method 1 is rejected") has since made the pin unnecessary on 27.2.
When the DT does not pin the method, the transport is not the ring and
the node names an AFE reset line, a method 1 power-off rejected with
0xe00002c2 moves the interface to power method 2, including the path
for a session handed over running. t8122-j613-j615.dtsi gives the J615
apple,afe-reset-gpios, so the 27.2 firmware still ends up on power
method 2 and the 14.7 firmware keeps power method 1.

Drop the pin. t8122-j615-25g83.dts keeps its own
apple,power-method = <2>.

Fixes: d5cc1f6 ("arm64: dts: apple: t8122-j615: hand the MTP over running, two-stage trackpad power")
Signed-off-by: Fredrik Silfver <1684291+freber@users.noreply.github.com>
@freber
freber requested review from a team as code owners November 26, 2026 22:17
@freber
freber requested review from LiamRay11 and malik-na November 26, 2026 22:17
@github-actions github-actions Bot added area:platform Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 26, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at 9915671b: not ready yet

Check Detail
CI at head ok 3 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at 9915671b
Conflicts ok none
PR text ok Risk: two-way · J615 (M3 Air 15") on the 14.x and 27.2 stubs. The 25G83 tree keeps its own pin.

Areas: area:platform

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verdict: MERGE at 9915671b8e421fd854141f87e70ae2ea86524678 once the 27.2 fallback row is complete.

Blockers: No code or binding blocker found. Keep this unarmed until a 27.2 J615 with the retained MTP proves the retry and usable multi-touch. The 14.7 test shows the reason for the change and should be carried forward with exact DTB provenance.

Checked: The binding makes the pin optional and defaults to method 1. The J615 retains its inherited AFE reset, has no firmware-managed reset, and uses the non-ring path. With the pin gone, the driver's method-1 bad-argument predicate can retry method 2 and resend firmware under AFE reset on retained MTP. The 25G83 file is outside the diff. Read the author's 14.7 A/B and verified green DT/host CI at the exact head. No new per-board driver gating, private material, or attribution.

@RyanTheTide RyanTheTide 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.

Verdict at 9915671b: approve the code. Merge after a 27.2-stub J615 row, which we'll post.

Checked

  • This removes a per-board pin (apple,power-method = <2>) in favour of the driver's runtime fallback from 6283432 / #3131: method 1 first, method 2 when the firmware rejects it. That's the behaviour-from-the-hardware direction we want, and it fixes the 14.7 stub, whose firmware rejects the pinned method.
  • Your 14.7-stub row: trackpad ready at 0.70 s, 0 output report 0x40 errors, against 11 on main.
  • The 25G83 tree keeping its own pin is out of scope here.

Owed: the 27.2-stub J615, where the driver now has to fall back from method 1 to method 2, with the MTP handed over running. Our lab J615 will boot this head and post the row: trackpad ready, the fallback line, 0 report errors.

@RyanTheTide

Copy link
Copy Markdown
Contributor

9915671b8e42 J615 (M3 Air 15", 27.2 stub, 7.3.0-aurora-fleet90-airs2, DTB-only Stage 2 aura-try one-shot) PASS:

  • Live DT /sys/firmware/devicetree/base/soc/fifo@2fab14000/input@0/multi-touch: apple,power-method absent, apple,afe-reset-gpios present.
  • MTP handed over running (rtkit-helper 2fa400000.mtp: adopted the running RTKit session (4 retained buffers)), single expected method-1 probe rejection (output report 0x40 to iface 0 (comm) failed with err 0xe00002c2) immediately followed by dockchannel-hid 2fab28000.input: multi-touch: power method 1 rejected (0xe00002c2); retrying with power method 2 -> Interface multi-touch is now ready at 1.847 s, 0 post-fallback output report 0x40 errors; Interface keyboard is now ready, Interface actuator is now ready, and initialised MTP haptics all clean.
  • Evdev open/ioctl check (no uinput): /dev/input/event0 (Apple MTP keyboard) and /dev/input/event1 (Apple MTP multi-touch) both open cleanly with 0 errors.
  • Enforcing, 0 failed units, 0 AVC; cleanly restored to untouched stage2.bin (chosen/aurora,trial empty).

@RyanTheTide
RyanTheTide merged commit 486d009 into aurora-silicon:main Nov 27, 2026
6 checks passed
@ParaN3xus

Copy link
Copy Markdown

A J516s (M3 Pro, T6030) on the 27.2 stub gives the "not yet" data point: the method-1 → method-2 fallback with the MTP handed over running works on this firmware.

Setup: J516s, 27.2 stub (26B123), kernel 7.3.0.aurora1-46 (has the fallback from 6283432), MTP handed to Linux running (apple,rtkit-keep-running — with a stock U-Boot the MTP is dead before Linux on this machine; U-Boot has to leave it untouched, see aurora-silicon/u-boot#80). DT: apple,afe-reset-gpios on input@0, multi-touch method unpinned.

Boot log:

dockchannel-hid 37ab28000.input: Interface keyboard is now ready
dockchannel-hid 37ab28000.input: output report 0x40 to iface 0 (comm) failed with err 0xe00002c2
dockchannel-hid 37ab28000.input: multi-touch: power method 1 rejected (0xe00002c2); retrying with power method 2
rtkit-helper 37a400000.mtp: RTKit: syslog message: bootloader.c:537: (*)New AFE[0] cbor image received
dockchannel-hid 37ab28000.input: Interface multi-touch is now ready

Apple MTP multi-touch + Force Click register, cursor and clicks work, and there are no further output-report errors after the single rejected attempt (the firmware also logs comm_cr.c:393: Received unknown power state (1) request! for the method-1 command, which is the rejection the fallback keys on).

Two side observations from the same machine, in case they are useful:

  • With the method pinned to <2> in the DT the trackpad also comes up on this firmware, so both the pinned and the unpinned form work here; the unpinned form is what I am running now, matching this PR's direction.
  • With the AFE reset line absent from the DT (the 7.3.0.aurora1-46 snapshot predates the t603x dtsi carrying it), the method-1 rejection just wedges the interface: iface multi-touch start timed out and then Interface multi-touch is already starting forever, with the 0x40 error repeated at every re-open. So on 27.2 firmware the AFE reset line is the load-bearing property and the driver's fallback does the rest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:platform Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants