Bug 217082

Summary: Clevo X170KM does not sleep without specific Ubuntu only patch
Product: Power Management Reporter: Werner Sembach [TUXEDO] (wse)
Component: Hibernation/SuspendAssignee: Rafael J. Wysocki (rjw)
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.15, 5.19, 6.0, 6.1, 6.2, propably all Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg while borked
echo PEG1 > /proc/acpi/wakeup + 2 suspends
suspend with bootparameter pci=noaer

Description Werner Sembach [TUXEDO] 2023-02-24 12:55:17 UTC
Created attachment 303778 [details]
dmesg while borked

I realized that the Clevo X170KM only suspends correctly on the Ubuntu kernels except the 6.1-oem kernel. All the mainline kernels I tested (5.15, 5.19, 6.0, 6.1, 6.2) only suspend to "screen of".

I bisected it down to this patch (missing also in Ubuntu in 6.1-oem kernel which I used to create the dumps): https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/jammy/commit/?id=e82f15f1a26273b004054a81ef45937fb1b632e5

dmesgdump is the dmesg after resume when the laptop failed to suspend

with "echo PEG1 > /proc/acpi/wakeup" to disable the wakeup for that device the laptop successfully suspends once, but throws a crashdump to dmesg. After that it is borked again. This is seen in dmesgwakedisabled (one with the crash and then another try)

I found PEG1 with "dmesg | grep AER" which gives 5 devices which I then individually tested via /proc/acpi/wakeup

"cat /sys/kernel/irq/*/wakeup" shows everything as disabled by default

with boot parameter "pci=noaer" the laptop can suspend normally
Comment 1 Werner Sembach [TUXEDO] 2023-02-24 12:56:21 UTC
Created attachment 303779 [details]
echo PEG1 > /proc/acpi/wakeup + 2 suspends
Comment 2 Werner Sembach [TUXEDO] 2023-02-24 12:58:28 UTC
Created attachment 303780 [details]
suspend with bootparameter pci=noaer
Comment 4 Werner Sembach [TUXEDO] 2023-09-05 16:38:48 UTC

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