intel / S0ixSelftestTool

S0ix Selftest Tool is designed to do the initial debugging for the S2idle path CPU Package C-state and S0ix failures in Linux OS for Intel® Client platforms, it also supports the basic runtime PC10 status check.
GNU General Public License v2.0
132 stars 18 forks source link

Running this tool hangs the system #9

Open project-administrator opened 2 years ago

project-administrator commented 2 years ago

I ran the following command:

./s0ix-selftest-tool.sh -s

The system suspended into s2idle. After 5 seconds or so it wakes up and shows messages on the console about "read-error swap device" and "buffer IO error on device" of my boot partition. From this moment the system is frozen and I have to hold the power button for a few seconds to turn it off. Logs of the s0ix:

$ cat 20221017-09-44-s0ix-output.log

---Check S2idle path S0ix Residency---:

The system OS Kernel version is:
Linux kl02 5.18.0-kali7-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.16-1kali1 (2022-08-31) x86_64 GNU/Linux

---Check whether your system supports S0ix or not---:

Low Power S0 Idle is:1
Your system supports low power S0 idle capability.

---Check whether intel_pmc_core sysfs files exit---:

The pmc_core debug sysfs files are OK on your system.

---Judge PC10, S0ix residency available status---:

Test system supports S0ix.y substate

S0ix substate before S2idle:
  S0i2.0

S0ix substate residency before S2idle:
  0
qwang59 commented 2 years ago

From your description, your system have issue to suspend to idle(s2idle). Suggestion, trying to disable all the ACPI wakeup device: cat /proc/acpi/wakeup echo XHC > /proc/acpi/wakeup

Then try commands: echo 0 > /sys/class/rtc/rtc0/wakealarm echo +30> /sys/class/rtc/rtc0/wakealarm echo freeze > /sys/power/state