Repository navigation
arm64: dts: apple: t8122-j615: leave the trackpad power method to the driver - #3323
Conversation
… 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>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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 0x40errors, 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.
|
|
|
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 ( Boot log:
Two side observations from the same machine, in case they are useful:
|
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 samet8122-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 readyat 0.70 s and 0output report 0x40errors. 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 anddchid_open()passes the error on to every opener. Hyprland's libseat then logsCould not take device: Input/output errorfor "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
8c6992db4with 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.t8122-j615.dtbbuilt from that kernel plus this commit. Decompiled against the installed tree, the one difference is the droppedapple,power-method = <0x02>under/soc/fifo@2fab14000/input@0/multi-touch.Interface keyboard is now readyand[Touch]: Touch initializedat 0.45 s, thenInterface multi-touch is now readyat 0.70 s, thenTouch interface readyandTouch MT readyfrom the MTP. There were no dockchannel-hid error lines.hyprctl deviceslistsapple-mtp-multi-touchunder mice.output report 0x40 to iface 0 (comm) failed with err 0xe00002c27 times during boot and 4 more each time udev reopened the device. The live tree hadapple,power-method = <2>undermulti-touchand no "power method 1 rejected" line.