Bug 218209 - ThinkPad P14s G4 AMD instantly wakes up from suspend
Summary: ThinkPad P14s G4 AMD instantly wakes up from suspend
Status: RESOLVED DUPLICATE of bug 217239
Alias: None
Product: Power Management
Classification: Unclassified
Component: Hibernation/Suspend (show other bugs)
Hardware: AMD Linux
: P3 normal
Assignee: Rafael J. Wysocki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-29 21:50 UTC by Daniel Kolesa
Modified: 2024-02-05 03:03 UTC (History)
3 users (show)

See Also:
Kernel Version: 6.5.x, 6.6.x
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments

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 ***

Note You need to log in before you can comment on or make changes to this bug.