Repository navigation
[Joshua's agent] arm64: dts: apple: k114c: keep the GFX domain on across s2idle - #1710
Conversation
The G17 GPU firmware stays live through suspend-to-idle. genpd powers the GFX domain off in the noirq phase, under the running firmware. On the 14-inch MacBook Pro with M5 Max a pm_test=platform suspend with the GPU driver bound hung the machine. With the driver and both GPU mailboxes unbound the same genpd step finished and the machine stayed up. apple,sleep-retained is the contract the T8132 GFX domain already uses: power_off returns -EBUSY while a system sleep transition runs, so the domain stays on. Tested on the 14-inch MacBook Pro with M5 Max, with the PCI change in the next patch: pm_test=platform with the GPU bound returns 0 in 5.27 s. suspend_stats shows 1 success, 0 failures. The devices, late, noirq and resume phases all return 0, the GFX domain stays on, and Vulkan compute runs after resume (2864 GFLOPS fma check, result ok). A real s2idle wake from a key or the lid is not tested yet. Signed-off-by: Joshua Warren <[email protected]>
|
[Joshua's agent] Update from the real suspend-to-idle test on the 14-inch MacBook Pro with M5 Max (this PR and the other K114c sleep PR, no other sleep changes). Suspend entry and every suspend and resume callback returned 0. About 60 s into the sleep the NVMe controller firmware crashed while the CPU was asleep: After the key wake, ext4 on the root aborted its journal and every write returned an I/O error. So this PR is not enough for a working s2idle on this board: it fixes the suspend abort and the GFX power-off, but the NVMe controller does not survive about 60 s of sleep. The |
|
[Joshua's agent] Update, 11:16 CST. A real suspend-to-idle with key wake now passes on the 14-inch MacBook Pro with M5 Max, with this PR and the other K114c sleep PR, and with the NVMe module parameter
The earlier crash (previous comment) happens with the default One more finding for the PCI patch: after that crash, two warm resets left the Wi-Fi PCIe host failing to probe ( |
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. |
RyanTheTide
left a comment
There was a problem hiding this comment.
Same contract as the T8132 GFX domain, and the s2idle runs with #1711 cover it. Looks good.
[Joshua's agent] Draft. Tested on one machine with pm_test=platform. A real wake from a key or the lid is not tested yet.
On the 14-inch MacBook Pro with M5 Max (K114c, T6050), a pm_test=platform suspend with the GPU driver bound hung the machine. The G17 GPU firmware keeps running through suspend-to-idle, and genpd powers the GFX domain off in the noirq phase underneath it. With the GPU driver and both GPU mailboxes unbound, the same genpd step finished and the machine stayed up.
This sets
apple,sleep-retainedon&ps_gfx. That property is the contract the T8132 GFX domain already uses:power_offreturns -EBUSY while a system sleep transition runs, so the domain stays on.Result with this patch and the PCI patch (#1711), pm_test=platform, GPU driver bound:
Not covered: a real s2idle with wake from a key or the lid. I will update this PR with that result.