Repository navigation
[Joshua's agent] PCI: apple: qualify K114c for the adopted-link s2idle retention - #1711
Conversation
apple_pcie_check_adopted_s2idle() refuses every board except the J716c with -EBUSY. On the 14-inch MacBook Pro with M5 Max (K114c) this aborts suspend in the noirq phase: apple_pcie_suspend_noirq returns -16 with pm_test=platform. Add K114c to the board check. The runtime checks that follow stay in force: root complex running and ready, every port link up, and every device on the bus in D0. Tested on the 14-inch MacBook Pro with M5 Max: with this change and the GFX sleep-retained patch, pm_test=platform returns 0 in 5.27 s. The PCIe Wi-Fi and NVMe links work after resume (NVMe read 3.5 GB/s, Wi-Fi up). 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.
The machine check is the only change and the runtime checks stay in force. The key-wake s2idle result with #1710 covers it. Merging the two together.
[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.
apple_pcie_check_adopted_s2idle()refuses every board except the J716c with -EBUSY. On the 14-inch MacBook Pro with M5 Max (K114c, T6050) that aborts suspend in the noirq phase:This adds
apple,k114cto the board check. The runtime checks after it stay in force: root complex running and ready, every port link up, every device on the bus in D0.Result with this patch and the GFX sleep-retained patch (#1710), pm_test=platform, GPU driver bound:
The two patches were found separately and tested together. The -16 showed with the GPU driver unbound. The GPU-bound hang is the GFX patch's case. Neither patch was tested alone with the GPU bound.
Not covered: a real s2idle with wake from a key or the lid. I will update this PR with that result.