s2idle entry fails occasionally on Lenovo P14s Gen2
Brief summary of the problem:
I use a Lenovo Thinkpad P14s Gen2 and encounter various issues with s0ix. One of them resembles #1799 (closed) but for me this doesn't happen all the time when on battery power, only occasionally. After reading comment 17 by @superm1 on the related Kernel issue I decided to open another issue. Please close this one if I should append my findings to an existing issue instead.
In my case, after closing the laptop lid, the power LED stays on. If I open lid again, the display turns on and I can see the background of my display manager, but the system doesn't respond to keyboard or mouse/trackpad input (connecting a USB keyboard also doesn't help). I'm able to login via ssh, however and can recover logs and STB output.
In dmesg I can see amd_pmc AMDI0005:00: SMU response timed out
like in the mentioned issue on kernel bugzilla.
This gets followed by amdgpu errors and traces (see full dmesg below).
Hardware description:
- CPU: AMD Ryzen 7 PRO 5850U with Radeon Graphics
- GPU: Cezanne [1002:1638] (rev d1)
- System Memory: 32GB DDR4
- Display(s): Laptop panel: California Institute of Technology, model: 'eDP-1-unknown', 3840x2160
- Type of Display Connection: eDP
System information:
- Distro name and Version: Arch Linux
- Kernel version: 5.15.2-1-s0ix-00021-g1082d37901c6
- Custom kernel: built from this tree
- Kernel command line:
iommu=pt amd_pmc.enable_stb=1
- AMD official driver version: N/A
- Desktop environment: KDE Plasma 5.23.3 on Wayland
How to reproduce the issue:
- enable "Windows 10" sleep mode in system firmware
- suspend/resume multiple times
Attached files:
Log files (for system lockups / game freezes / crashes)
- dmesg (failed s2idle starts at line 1402)
- stb_read before failed suspend
- stb_read after failed suspend
I can provide stb_read from before and after a successful suspend, too, if this helps.