Bug 214855

Summary: S0ix: resume on lid close on ThinkPad X1 Carbon Gen 9
Product: Power Management Reporter: Thomas Weißschuh (linux)
Component: Hibernation/SuspendAssignee: Rafael J. Wysocki (rjw)
Status: RESOLVED CODE_FIX    
Severity: normal CC: devilqueen19, linux, littlelife173
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 5.14.14, 5.15-rc7 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmidecode
lspci -vvnn
ACPI DSDT

Description Thomas Weißschuh 2021-10-27 21:09:44 UTC
Created attachment 299343 [details]
dmidecode

When suspending the machine via s2idle and then closing the lid, the machine will wake up again.

Debugging has show that before the normal ACPI interrupt is received another interrupt from the internal sensor hub (ISH) is received which unconditionally triggers a wakeup.

The problem can avoided in one of the following ways:
* add to the kernel cmdline: modprobe.blacklist=intel_ish_ipc
* remove the calls to enable_irq_wake()/disable_irq_wake() in drivers/hid/intel-ish-hid/ipc/pci-ish.c

This happens on the latest kernel and UEFI.
Comment 1 Thomas Weißschuh 2021-10-27 21:10:12 UTC
Created attachment 299345 [details]
lspci -vvnn
Comment 2 Thomas Weißschuh 2021-10-27 21:10:51 UTC
Created attachment 299347 [details]
ACPI DSDT
Comment 3 Thomas Weißschuh 2021-11-26 14:12:44 UTC
Seems to also affect X1 Yoga Gen6 (which is mostly the same device):
https://forums.lenovo.com/t5/Other-Linux-Discussions/Wake-from-suspend-on-lid-close-on-X1-Yoga-Gen6-under-Linux/m-p/5085290
Comment 4 Thomas Weißschuh 2021-12-09 19:46:42 UTC
This is going to be fixed in 5.16 through
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=086e81f6b90e41a07a1a885bb11e93daa6915747

(Which will most probably be backported to stable kernels, too)