Bug 215797

Summary: Lenovo IdeaPad won't resume from suspend while plugged into AC adapter - AMD Ryzen 7 3700U
Product: ACPI Reporter: Tim S (tsweet64)
Component: Power-ProcessorAssignee: acpi_power-processor
Status: RESOLVED CODE_FIX    
Severity: normal CC: larsch, mario.limonciello, rui.zhang, spielkind
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 5.17.1 Subsystem:
Regression: Yes Bisected commit-id:

Description Tim S 2022-04-03 23:53:51 UTC
I am experiencing this bug on a Lenovo IdeaPad S340 with an AMD Ryzen 7 3700U, running Arch.

Upon pressing the power button to wake the system (while plugged into power; on battery it seems fine), the keyboard lights up and the caps lock key blinks, nothing is displayed on the screen and the system must be forcibly powered off. Nothing is logged to system journal (at least, that can be seen from the next boot)

Bisecting the kernel tree (between 5.16.16 and 5.17.1) has revealed the following commit as apparently the first bad one:

```
[87ebbb8c612b1214f227ebb8f25442c6d163e802] ACPI: processor: idle: Only flush cache on entering C3
```

I believe this is likely distinct from https://bugzilla.kernel.org/show_bug.cgi?id=215768 since it still occurred with Always On USB disabled, and this is an issue with failing at resuming from suspend, not suspending in the first place.

I originally suspected https://bugzilla.kernel.org/show_bug.cgi?id=215742 but I now think it is probably distinct from that bug since I identified the ACPI commit above as the first bad one. This laptop does have an nvme drive, however, so it isn't 100% ruled out.

Relevant downstream bug report (Arch) with other users experiencing this (and potentially related) issues: https://bugs.archlinux.org/task/74285

If needed, let me know about other ways to try to collect data about the error and I can try to do so.
Comment 1 Lars Christensen 2022-04-04 16:03:09 UTC
A patch has been submitted to revert 87ebbb8c: https://lkml.org/lkml/2022/4/3/35
Comment 2 Mario Limonciello (AMD) 2022-10-31 00:55:11 UTC
Since that revert was accepted (https://github.com/torvalds/linux/commit/dfbba2518aac4204203b0697a894d3b2f80134d3) closing this issue.