Bug 218209

Summary: ThinkPad P14s G4 AMD instantly wakes up from suspend
Product: Power Management Reporter: Daniel Kolesa (linux)
Component: Hibernation/SuspendAssignee: Rafael J. Wysocki (rjw)
Status: RESOLVED DUPLICATE    
Severity: normal CC: bagasdotme, mario.limonciello, ulf
Priority: P3    
Hardware: AMD   
OS: Linux   
Kernel Version: 6.5.x, 6.6.x Subsystem:
Regression: Yes Bisected commit-id:

Description Daniel Kolesa 2023-11-29 21:50:01 UTC
Tested on kernels 6.5 and 6.6. On ThinkPad P14s AMD, with latest firmware, AMD Ryzen 7 PRO 7840U, the device wakes up from suspend instantly after being put to sleep using any method. There are no errors in dmesg, and everything looks like a clean suspend/resume.

On kernel 6.1 however, the device is fully functional and stays asleep when suspended.

I have not tested any inbetween kernels (I have 6.1 around because it's an LTS).

Common advice like disabling wakeup sources have no effect, the device still wakes up.
Comment 1 Bagas Sanjaya 2023-11-30 04:42:02 UTC
(In reply to Daniel Kolesa from comment #0)
> Tested on kernels 6.5 and 6.6. On ThinkPad P14s AMD, with latest firmware,
> AMD Ryzen 7 PRO 7840U, the device wakes up from suspend instantly after
> being put to sleep using any method. There are no errors in dmesg, and
> everything looks like a clean suspend/resume.
> 
> On kernel 6.1 however, the device is fully functional and stays asleep when
> suspended.
> 
> I have not tested any inbetween kernels (I have 6.1 around because it's an
> LTS).
> 

Please do bisection to find the exact culprit (see Documentation/admin-guide/bug-bisect.rst in the kernel sources for how to do that).

> Common advice like disabling wakeup sources have no effect, the device still
> wakes up.

Can you also attach full system logs (like dmesg or journalctl)?
Comment 2 Daniel Kolesa 2023-12-13 00:42:03 UTC
I found that it's actually not 6.1 kernel that fixes it, even though it seems that way; I noticed that 6.1 also sometimes immediately wakes. Then I figured out that it only wakes if I wait long enough for networkmanager to reconnect to wifi.

So I tried turning off wifi from gnome, and... it stays asleep on all kernels.

The wifi is this:

02:00.0 Network controller: Qualcomm Technologies, Inc QCNFA765 Wireless Network Adapter (rev 01)

It uses the ath11k driver.
Comment 3 Ulf Winkelvos 2024-01-20 20:16:44 UTC
This could very well be this firmware related issue: https://bugzilla.kernel.org/show_bug.cgi?id=217239
Comment 4 Mario Limonciello (AMD) 2024-02-05 03:03:04 UTC
Yes; it should be a duplicate of that.  Please update to .37 firmware, which is the fix for that.

*** This bug has been marked as a duplicate of bug 217239 ***