Re: Dell XPS 13 9360: `slp_s0_residency_usec` stays 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Mario, dear Linux folks,


Am 22.05.24 um 18:37 schrieb Mario Limonciello:
On 5/22/2024 10:52, Paul Menzel wrote:

On the Intel Kaby Lake laptop Dell XPS 13 9360, `/sys/kernel/debug/pmc_core/slp_s0_residency_usec` does stay 0 even after a s2idle suspend/resume cycle.

It won't change your numbers but FWIW you can also read from

$ cat /sys/power/suspend_stats/last_hw_sleep

which is also accessible under kernel lockdown.


     $ sudo dmesg
     […]
     [    0.000000] DMI: Dell Inc. XPS 13 9360/0596KF, BIOS 2.21.0 06/02/2022
     […]
     [10176.745124] PM: suspend entry (s2idle)
     [10176.757275] Filesystems sync: 0.012 seconds
     [10176.769118] Freezing user space processes
     [10176.771693] Freezing user space processes completed (elapsed 0.002 seconds)
     [10176.771710] OOM killer disabled.
     [10176.771714] Freezing remaining freezable tasks
     [10176.773487] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
     [10176.773504] printk: Suspending console(s) (use no_console_suspend to debug)
     [10176.948337] ACPI: EC: interrupt blocked
     [10176.951016] intel_pch_thermal 0000:00:14.2: CPU-PCH is cool [48C]
     [10181.281827] ACPI: EC: interrupt unblocked
     $ sudo more /sys/kernel/debug/pmc_core/slp_s0_residency_usec
     0

Is that expected?

Is it a regression?  If so; probably it's worth bisecting.

Sorry, I do not know. It’s the first time [1] I heard about this file, and that fwts [2] checks it. Do you remember, if Dell has any public logs from testing, containing `slp_s0_residency_usec`?

If it's not a regression IIUC you should probably run https://github.com/intel/S0ixSelftestTool for assistance in next steps on debugging why this is happening.

Thank you for the pointer. Please find the log file from `sudo ./s0ix-selftest-tool.sh -s` attached. Some PCIe ports are flagged.


Kind regards,

Paul


[1]: https://review.coreboot.org/c/coreboot/+/81595/10/src/mainboard/cwwk/adl/Kconfig#9
[2]: https://wiki.ubuntu.com/FirmwareTestSuite/


PS: Some system details:

```
$ LANG= lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers [8086:5904] (rev 02)
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 620 [8086:5916] (rev 02)
00:04.0 Signal processing controller [1180]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem [8086:1903] (rev 02)
00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller [8086:9d2f] (rev 21)

[…]
---Check S2idle path S0ix Residency---:

The system OS Kernel version is:
Linux abreu 6.9.0-12124-g6d69b6c12fce #160 SMP PREEMPT_DYNAMIC Fri May 24 05:50:25 CEST 2024 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 does not support S0ix.y substate

Turbostat output: 
14.948707 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
2.68	0.64	93.18	438.83	1.69	0.79	0.22	0.01	89.35	0.00	0.00	0.00
3.49	0.53	93.64	438.88	1.69	0.79	0.22	0.01	89.36	0.00	0.00	0.00
1.57
3.49	0.76	92.74
2.19

CPU Core C7 residency after S2idle is: 93.18
GFX RC6 residency after S2idle is: 438.83
CPU Package C-state 2 residency after S2idle is: 1.69
CPU Package C-state 3 residency after S2idle is: 0.79
CPU Package C-state 8 residency after S2idle is: 89.35
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: 89.35, but no PC10 residency:0.00,no S0ix residency: 0.00

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

GFX DC5 before S2idle: 50
GFX DC6 before S2idle: 0

Turbostat output: 

15.492066 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.08	0.51	96.58	554.72	1.32	0.62	0.13	0.00	94.00	0.00	0.00	0.00
0.82	0.42	96.82	554.71	1.32	0.62	0.13	0.00	94.00	0.00	0.00	0.00
1.13
1.52	0.60	96.33
0.84

GFX DC5 after S2idle: 59
GFX DC6 after S2idle: 0

Your system CPU Model ID is: 142, and the graphics DC6 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: 
9.924992 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.52	0.65	94.94	1016.13	1.64	2.81	0.04	0.00	89.91	0.00	0.00	0.00
1.54	0.69	94.90	1016.12	1.64	2.81	0.04	0.00	89.91	0.00	0.00	0.00
1.19
1.69	0.60	94.97
1.68

IP LTR Number: 18   
Please be patient, system will do 18 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:0.00
S0ix residency is:0.00

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

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

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

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

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

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

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

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

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

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

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

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

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

LTR ignore for IP 8
PC10 residency is:88.55
S0ix residency is:0.00

No S0ix residency, only PC10 is available after IP number 8 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: SPA
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:
[  222.064937] nvme 0000:3b:00.0: PCI PM: Suspend power state: D0
[  222.064949] nvme 0000:3b:00.0: PCI PM: Skipped
[  222.067947] i801_smbus 0000:00:1f.4: PCI PM: Suspend power state: D0
[  222.067955] i801_smbus 0000:00:1f.4: PCI PM: Skipped
[  222.071468] pcieport 0000:00:1d.0: PCI PM: Suspend power state: D0
[  222.071475] pcieport 0000:00:1d.0: PCI PM: Skipped
[  222.071658] pcieport 0000:00:1c.0: PCI PM: Suspend power state: D0
[  222.071663] pcieport 0000:00:1c.0: PCI PM: Skipped
[  222.073198] snd_hda_intel 0000:00:1f.3: PCI PM: Suspend power state: D3hot
[  222.073225] i915 0000:00:02.0: PCI PM: Suspend power state: D3hot
[  222.082393] intel_pch_thermal 0000:00:14.2: PCI PM: Suspend power state: D3hot
[  222.082402] ath10k_pci 0000:3a:00.0: PCI PM: Suspend power state: D3hot
[  222.082965] intel-lpss 0000:00:15.1: PCI PM: Suspend power state: D3hot
[  222.083743] mei_me 0000:00:16.0: PCI PM: Suspend power state: D3hot
[  222.084169] proc_thermal 0000:00:04.0: PCI PM: Suspend power state: D3hot
[  222.094075] pcieport 0000:00:1c.4: PCI PM: Suspend power state: D3hot
[  222.102251] xhci_hcd 0000:00:14.0: PCI PM: Suspend power state: D3hot


Checking PCI Devices tree diagram:
-[0000:00]-+-00.0  Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers
           +-02.0  Intel Corporation HD Graphics 620
           +-04.0  Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
           +-14.0  Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller
           +-14.2  Intel Corporation Sunrise Point-LP Thermal subsystem
           +-15.0  Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0
           +-15.1  Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1
           +-16.0  Intel Corporation Sunrise Point-LP CSME HECI #1
           +-1c.0-[01-39]--
           +-1c.4-[3a]----00.0  Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
           +-1d.0-[3b]----00.0  SK hynix PC300 NVMe Solid State Drive 512GB
           +-1f.0  Intel Corporation Sunrise Point-LP LPC Controller
           +-1f.2  Intel Corporation Sunrise Point-LP PMC
           +-1f.3  Intel Corporation Sunrise Point-LP HD Audio
           \-1f.4  Intel Corporation Sunrise Point-LP SMBus

The pcieport 0000:00:1d.0 ASPM enable status:
		LnkCtl:	ASPM L1 Enabled; RCB 64 bytes, LnkDisable- CommClk+

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

The pcieport 0000:00:1c.0 ASPM enable status:


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

Pcieport is not in D3cold:     
0000:00:1c.4


The PCIe bridge link power management state is:
0000:00:1c.0 Link is Retraining

The link power management state of PCIe bridge: 0000:00:1c.0 is not expected. 
which is expected to be L1.1 or L1.2, or user would run this script again.


The L1SubCap of the failed 0000:00:1c.0 is:


The L1SubCtl1 of the failed 0000:00:1c.0 is:



Checking PCI Devices tree diagram:
-[0000:00]-+-00.0  Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers
           +-02.0  Intel Corporation HD Graphics 620
           +-04.0  Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem
           +-14.0  Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller
           +-14.2  Intel Corporation Sunrise Point-LP Thermal subsystem
           +-15.0  Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0
           +-15.1  Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1
           +-16.0  Intel Corporation Sunrise Point-LP CSME HECI #1
           +-1c.0-[01-39]--
           +-1c.4-[3a]----00.0  Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
           +-1d.0-[3b]----00.0  SK hynix PC300 NVMe Solid State Drive 512GB
           +-1f.0  Intel Corporation Sunrise Point-LP LPC Controller
           +-1f.2  Intel Corporation Sunrise Point-LP PMC
           +-1f.3  Intel Corporation Sunrise Point-LP HD Audio
           \-1f.4  Intel Corporation Sunrise Point-LP SMBus


The pcieroot port 0000:00:1c.0 ASPM setting is Disabled, and its D state and Link PM are not expected,
please enable 0000:00:1c.0 ASPM setting to double check or report a bug.


[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux