Bug 217320 - S0ix: not able to enter S0ix - dell latitude 5520
Summary: S0ix: not able to enter S0ix - dell latitude 5520
Status: RESOLVED OBSOLETE
Alias: None
Product: Power Management
Classification: Unclassified
Component: Hibernation/Suspend (show other bugs)
Hardware: Intel Linux
: P1 normal
Assignee: Rafael J. Wysocki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-10 22:14 UTC by cuchac
Modified: 2024-03-19 10:47 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg of s2idle with warn_on_s0ix_failures (16.30 KB, text/plain)
2023-04-10 22:14 UTC, cuchac
Details
output of get_pcie_port_link_status in while loop (6.07 KB, text/plain)
2023-04-10 22:15 UTC, cuchac
Details

Description cuchac 2023-04-10 22:14:06 UTC
Created attachment 304112 [details]
dmesg of s2idle with warn_on_s0ix_failures

Hello,

using https://github.com/intel/S0ixSelftestTool I'm unable to enter S0ix on DELL latitude 5520. Battery drain is around 3% per hour.

It looks similar to bug 215367 but not the same. I'm using AHCI NVMe, so bug 211879 should not be an issue.

Attached is dmesg from sleep with warn_on_s0ix_failures enabled.

I did run get_pcie_port_link_status from bug 215367 and attached resulting log.

Following is report from S0ixSelftestTool:

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

The system OS Kernel version is:
Linux wpj 6.2.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 22 Mar 2023 22:52:35 +0000 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 S0i3.0

S0ix substate residency before S2idle:
  0 0

Turbostat output: 
16.099885 sec
CPU%c1  CPU%c6  CPU%c7  GFX%rc6 Pkg%pc2 Pkg%pc3 Pkg%pc6 Pkg%pc7 Pkg%pc8 Pkg%pc9 Pk%pc10 SYS%LPI
1.43    0.00    97.20   21388.15        3.47    5.60    0.29    0.37    84.56   0.00    0.00    0.00
1.08    0.00    97.04   21396.13        3.47    5.60    0.29    0.37    84.57   0.00    0.00    0.00
1.66
1.27    0.00    97.22
1.97
1.92    0.00    97.08
0.73
1.33    0.00    97.47
1.45

CPU Core C7 residency after S2idle is: 97.20
GFX RC6 residency after S2idle is: 21388.15
CPU Package C-state 2 residency after S2idle is: 3.47
CPU Package C-state 3 residency after S2idle is: 5.60
CPU Package C-state 8 residency after S2idle is: 84.56
CPU Package C-state 9 residency after S2idle is: 0.00
CPU Package C-state 10 residency after S2idle is: 0.00
S0ix residency after S2idle is: 0.00

Your system achieved PC8 residency: 84.56, but no PC10 residency:0.00,no S0ix residency: 0.00

---Debug no DC9 residency scenario---:

GFX DC5 before S2idle: 1
GFX DC6 before S2idle: 0

Turbostat output: 

15.978647 sec
CPU%c1  CPU%c6  CPU%c7  GFX%rc6 Pkg%pc2 Pkg%pc3 Pkg%pc6 Pkg%pc7 Pkg%pc8 Pkg%pc9 Pk%pc10 SYS%LPI
1.60    0.00    96.85   21678.99        6.92    1.19    0.02    0.34    84.71   0.00    0.00    0.00
1.90    0.00    95.52   21697.49        6.92    1.19    0.02    0.34    84.71   0.00    0.00    0.00
2.48
0.93    0.00    98.15
0.70
1.71    0.00    97.31
1.44
1.72    0.00    96.43
1.95

GFX DC5 after S2idle: 2
GFX DC6 after S2idle: 0

Your system CPU Model ID is: 140, and the graphics DC5 value is not expected to enter DC9,     
please check the latest display DMC FW load status.

Your system Intel graphics DMC FW loaded status is:yes




---Debug no PC10 residency scenario--Ignore IP LTR value---:

Turbostat output: 
11.644611 sec
CPU%c1  CPU%c6  CPU%c7  GFX%rc6 Pkg%pc2 Pkg%pc3 Pkg%pc6 Pkg%pc7 Pkg%pc8 Pkg%pc9 Pk%pc10 SYS%LPI
3.24    0.00    93.90   29882.13        31.82   2.34    0.02    0.52    49.72   0.00    0.00    0.00
1.71    0.00    95.47   29897.12        31.83   2.34    0.02    0.52    49.73   0.00    0.00    0.00
2.34
1.76    0.00    96.61
2.03
4.33    0.00    94.08
2.20
2.15    0.00    89.45
9.40

IP LTR Number: 24   
Please be patient, system will do 24 cycles S2idle below, check if ignoring   
the IP LTR value is helpful to the PC10 and S0ix residency one by one.

LTR ignore for IP 0
PC10 residency is:0.00
S0ix residency is:0.00

IP Number 0 LTR ignore is not helpful to the PC10 and S0ix state.

LTR ignore for IP 1
PC10 residency is:39.49
S0ix residency is:0.00

No S0ix residency, only PC10 is available after IP number 1 LTR ignore:


This script detects PC10 residency after IP LTR ignore.       
Please consider reporting a bug against the potential IP LTR issue if the test platform is stable. 
Meanwhile this script will continue to check
the potential S0ix blocker since PC10 is available.


Your system south port controller did not meet S0ix requirement: SPB
SPC

---Debug S0ix failure scenario--Setting No ACPI DSM Callback---:

Setting no ACPI DSM callback is not helpful to the S0ix residency.

---Debug PCIeports D states and link PM states---

Checking PCI Devices D3 States:
[633896.454277] snd_hda_intel 0000:00:1f.3: PCI PM: Suspend power state: D3hot
[633896.473732] i801_smbus 0000:00:1f.4: PCI PM: Suspend power state: D0
[633896.473734] i801_smbus 0000:00:1f.4: PCI PM: Skipped
[633896.474448] intel_ish_ipc 0000:00:12.0: PCI PM: Suspend power state: D0
[633896.474450] intel_ish_ipc 0000:00:12.0: PCI PM: Skipped
[633896.475311] i915 0000:00:02.0: PCI PM: Suspend power state: D3hot
[633896.486625] e1000e 0000:00:1f.6: PCI PM: Suspend power state: D3hot
[633896.487109] mei_me 0000:00:16.0: PCI PM: Suspend power state: D3hot
[633896.487758] rtsx_pci 0000:55:00.0: PCI PM: Suspend power state: D3hot
[633896.487800] intel-lpss 0000:00:15.1: PCI PM: Suspend power state: D3hot
[633896.488078] nvme 0000:56:00.0: PCI PM: Suspend power state: D3hot
[633896.488083] proc_thermal 0000:00:04.0: PCI PM: Suspend power state: D3hot
[633896.489607] xhci_hcd 0000:00:14.0: PCI PM: Suspend power state: D3hot
[633896.490696] xhci_hcd 0000:00:0d.0: PCI PM: Suspend power state: D3cold
[633896.490781] iwlwifi 0000:00:14.3: PCI PM: Suspend power state: D3hot
[633896.500896] pcieport 0000:00:1c.0: PCI PM: Suspend power state: D3hot
[633896.500905] pcieport 0000:00:1d.0: PCI PM: Suspend power state: D3hot
[633896.519425] thunderbolt 0000:00:0d.2: PCI PM: Suspend power state: D3cold


Checking PCI Devices tree diagram:
-[0000:00]-+-00.0  Intel Corporation 11th Gen Core Processor Host Bridge/DRAM Registers
           +-02.0  Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics]
           +-04.0  Intel Corporation TigerLake-LP Dynamic Tuning Processor Participant
           +-07.0-[01-2a]--
           +-07.1-[2b-54]--
           +-0d.0  Intel Corporation Tiger Lake-LP Thunderbolt 4 USB Controller
           +-0d.2  Intel Corporation Tiger Lake-LP Thunderbolt 4 NHI #0
           +-12.0  Intel Corporation Tiger Lake-LP Integrated Sensor Hub
           +-14.0  Intel Corporation Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller
           +-14.2  Intel Corporation Tiger Lake-LP Shared SRAM
           +-14.3  Intel Corporation Wi-Fi 6 AX201
           +-15.0  Intel Corporation Tiger Lake-LP Serial IO I2C Controller #0
           +-15.1  Intel Corporation Tiger Lake-LP Serial IO I2C Controller #1
           +-16.0  Intel Corporation Tiger Lake-LP Management Engine Interface
           +-1c.0-[55]----00.0  Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader
           +-1d.0-[56]----00.0  KIOXIA Corporation NVMe SSD Controller BG4
           +-1f.0  Intel Corporation Tiger Lake-LP LPC Controller
           +-1f.3  Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller
           +-1f.4  Intel Corporation Tiger Lake-LP SMBus Controller
           +-1f.5  Intel Corporation Tiger Lake-LP SPI Controller
           \-1f.6  Intel Corporation Ethernet Connection (13) I219-LM

Pcieport is not in D3cold:     
0000:00:1c.0
0000:00:1d.0


0000:00:07.0 Link is in Detect

The link power management state of PCIe bridge: 0000:00:07.0 is OK.

0000:00:07.1 Link is in Detect

The link power management state of PCIe bridge: 0000:00:07.1 is OK.

0000:00:1c.0 Link is in L1.2

The link power management state of PCIe bridge: 0000:00:1c.0 is OK.

0000:00:1d.0 Link is in L1.2

The link power management state of PCIe bridge: 0000:00:1d.0 is OK.

Your system default pcie_aspm policy setting is OK.
Comment 1 cuchac 2023-04-10 22:15:17 UTC
Created attachment 304113 [details]
output of get_pcie_port_link_status in while loop
Comment 2 cuchac 2023-04-10 22:25:20 UTC
The S0ixSelftestTool reports issue with PC10 residency, but if I run `turbostat --show Pk%pc10` and suspend, I get:

Pk%pc10
62.94
62.94

If I understand it correctly, I get PC10, but does not get S0ix. No idea why S0ixSelftestTool does not measure any PC10.
Comment 3 cuchac 2024-03-19 10:47:08 UTC
After several kernel/BIOS upgrades, S0ixSelftestTool reports success and battery drain is around 0.5% per hour.
I'm closing this.

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