Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suspend fails on ASUS TUF A16
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
quirkyaurora64
n00b
n00b


Joined: 20 Jul 2024
Posts: 2

PostPosted: Sat Jul 20, 2024 9:28 am    Post subject: Suspend fails on ASUS TUF A16 Reply with quote

Hello,

I recently bought an AMD TUF A16 Advantage Edition laptop with an AMD Ryzen 7 7735HS CPU, Radeon 680M integrated GPU, and Radeon RX 7700S GPU.
I installed Gentoo with a custom kernel (6.10.0) and have tried to suspend the system with both loginctl suspend and s2ram. Doing so causes the screen to go black momentarily, followed by the fans spinning up to full speed and the screen waking up.
I tried downgrading the kernel to 6.6.38, which did not fix the problem.

Following suspending, dmesg returns the following:
Code:

[   25.960160] amdgpu 0000:78:00.0: amdgpu: SMU is resuming...
[   25.960176] [drm] PCIE GART of 512M enabled (table at 0x00000081FEB00000).
[   25.960210] amdgpu 0000:03:00.0: amdgpu: PSP is resuming...
[   25.961872] amdgpu 0000:78:00.0: amdgpu: SMU is resumed successfully!
[   25.969576] nvme nvme1: 16/0/0 default/read/poll queues
[   25.970157] nvme nvme0: 16/0/0 default/read/poll queues
[   25.997020] amdgpu 0000:03:00.0: amdgpu: reserve 0x1300000 from 0x81fc000000 for PSP TMR
[   26.087680] [drm] JPEG decode initialized successfully.
[   26.087684] amdgpu 0000:78:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[   26.087686] amdgpu 0000:78:00.0: amdgpu: ring gfx_0.1.0 uses VM inv eng 1 on hub 0
[   26.087687] amdgpu 0000:78:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 4 on hub 0
[   26.087688] amdgpu 0000:78:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 5 on hub 0
[   26.087689] amdgpu 0000:78:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 6 on hub 0
[   26.087691] amdgpu 0000:78:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 7 on hub 0
[   26.087692] amdgpu 0000:78:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 8 on hub 0
[   26.087693] amdgpu 0000:78:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 9 on hub 0
[   26.087694] amdgpu 0000:78:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 10 on hub 0
[   26.087695] amdgpu 0000:78:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 11 on hub 0
[   26.087696] amdgpu 0000:78:00.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 12 on hub 0
[   26.087697] amdgpu 0000:78:00.0: amdgpu: ring sdma0 uses VM inv eng 13 on hub 0
[   26.087698] amdgpu 0000:78:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 8
[   26.087699] amdgpu 0000:78:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 8
[   26.087700] amdgpu 0000:78:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 8
[   26.087701] amdgpu 0000:78:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 8
[   26.142561] usb 5-1: reset full-speed USB device number 2 using xhci_hcd
[   26.197541] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
[   26.213581] amdgpu 0000:03:00.0: amdgpu: RAP: optional rap ta ucode is not available
[   26.213583] amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[   26.213586] amdgpu 0000:03:00.0: amdgpu: SMU is resuming...
[   26.213590] amdgpu 0000:03:00.0: amdgpu: smu driver if version = 0x00000035, smu fw if version = 0x00000040, smu fw program = 0, smu fw version = 0x00525b00 (82.91.0)
[   26.213594] amdgpu 0000:03:00.0: amdgpu: SMU driver if version not matched
[   30.906689] amdgpu 0000:03:00.0: amdgpu: SMU: I'm not done with your previous command: SMN_C2PMSG_66:0x00000006 SMN_C2PMSG_82:0x00000000
[   30.906691] amdgpu 0000:03:00.0: amdgpu: Failed to enable requested dpm features!
[   30.906693] amdgpu 0000:03:00.0: amdgpu: Failed to setup smc hw!
[   30.906694] [drm:amdgpu_device_ip_resume_phase2] *ERROR* resume of IP block <smu> failed -62
[   30.906699] amdgpu 0000:03:00.0: amdgpu: amdgpu_device_ip_resume failed (-62).
[   30.906701] amdgpu 0000:03:00.0: PM: dpm_run_callback(): pci_pm_resume returns -62
[   30.906705] amdgpu 0000:03:00.0: PM: failed to resume async: error -62
[   30.910825] OOM killer enabled.
[   30.910826] Restarting tasks ... done.
[   30.911093] random: crng reseeded on system resumption
[   30.913793] PM: suspend exit


I have tried suspending the system in Ubuntu with kernel version 6.9.3, which seems to have worked perfectly, so I suspect I have an issue in my Gentoo kernel configuration.

Any help or advice would be greatly appreciated.
Thank you!
Back to top
View user's profile Send private message
jpsollie
Apprentice
Apprentice


Joined: 17 Aug 2013
Posts: 299

PostPosted: Sat Jul 20, 2024 12:49 pm    Post subject: Reply with quote

if you want to check whether it really is your kernel or some unknown userspace wakeup event, try this in console mode:
Code:

echo mem > /sys/power/state

and then check if your laptop sleeps,
and whether you can wake it up again.

It's not much, but actually bypasses all wakeup event handlers some userspace stuff installs.
if it doesn't work, then there's probably some hardware not listening properly, or your kernel isn't configured properly, we'll see....
_________________
The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img]
Back to top
View user's profile Send private message
quirkyaurora64
n00b
n00b


Joined: 20 Jul 2024
Posts: 2

PostPosted: Sun Jul 21, 2024 3:29 pm    Post subject: Reply with quote

Using that command causes my screen to go black for 3 seconds, followed by the computer immediately waking up.
Back to top
View user's profile Send private message
sublogic
Apprentice
Apprentice


Joined: 21 Mar 2022
Posts: 264
Location: Pennsylvania, USA

PostPosted: Sun Jul 21, 2024 11:05 pm    Post subject: Reply with quote

To dig deeper: /usr/src/linux/Documentation/power/basic-pm-debugging.rst .
(Also online at https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/power/basic-pm-debugging.rst?h=v6.10 .
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2107

PostPosted: Mon Jul 22, 2024 8:00 am    Post subject: Reply with quote

Googling the message
Code:
[drm:amdgpu_device_ip_resume_phase2] *ERROR* resume of IP block <smu> failed

brings the following two items that look relevant:
https://github.com/NixOS/nixpkgs/issues/287586
https://github.com/Nitrux/nitrux-bug-tracker/issues/183
(the first refers to the second; IIUC the second contains a bypass and blames elogind.)
_________________
Greybeard
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22366

PostPosted: Mon Jul 22, 2024 12:05 pm    Post subject: Reply with quote

I agree with the reporter of https://github.com/elogind/elogind/issues/285 that using s2idle is not a good default choice, but s2idle is a kernel feature that ought to either work fully or abort with a clear error saying "You cannot do that." In the reported Github issue, the kernel attempted the s2idle and did not abort, but did experience those odd errors. s2idle can be triggered without using elogind, so while elogind might have caused people to hit it who otherwise would not, elogind is not at fault for the underlying problem that s2idle is not playing well with amdgpu.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum