S0ix / Package C10 measurements on 7.0.0-44 and 6.17.0-1028-oem

** Summary changed:

- [linux-hwe-7.0] 7.0.0-44: s2idle never enters S0ix (slp_s0_residency_usec 
delta 0) on Dell Pro 3 14 P314260, 6.17.0-oem is fine
+ [linux-hwe-7.0] 7.0.0-44: slp_s0_residency_usec and S0i2.x counters frozen on 
Dell Pro 3 14 P314260 while Package C10 still advances (6.17.0-oem fine)

** Description changed:

  [Summary]
- On Dell Pro 3 14 P314260 (Intel platform, SKU 0EA3, BIOS 2.1.6), s2idle never 
accumulates S0ix
- residency with the 7.0 kernel series. 
/sys/kernel/debug/pmc_core/slp_s0_residency_usec does not
- increase across a 20 s rtcwake cycle even though the system does enter and 
leave s2idle (a single
- "PM: suspend entry" / "PM: suspend exit" pair, ~21 s apart). The same 
machine, same userspace and
- same test on any 6.17.0-*-oem kernel accumulates ~15-16 s of S0ix per cycle.
+ On Dell Pro 3 14 P314260 (Intel PTL, SKU 0EA3, BIOS 2.1.6) running 
7.0.0-44-generic, the S0ix
+ residency counters exposed by intel_pmc_core are frozen:
  
- This is a regression against 6.17.0-oem: nothing in userspace is needed to 
reproduce it, only the
- 7.0 kernel is.
+   /sys/kernel/debug/pmc_core/slp_s0_residency_usec   does not change across a 
suspend
+   /sys/kernel/debug/pmc_core/substate_residencies    S0i2.x does not change 
either
+ 
+ while the platform demonstrably does enter a deep package state during the 
same suspend:
+ Package C10 advances by 93-99 % of the requested sleep time, and
+ /sys/kernel/debug/suspend_stats reports success:1 fail:0 with one normal
+ "PM: suspend entry (s2idle)" / "PM: suspend exit" pair.
+ 
+ On 6.17.0-1028-oem the same machine reports all three counters consistently, 
so this is a 7.0
+ regression in the S0ix/PMC reporting rather than a suspend regression. It 
breaks certification
+ because the suspend test asserts exactly on slp_s0_residency_usec.
  
  [Steps to Reproduce]
- 1. Install Ubuntu 24.04.4 LTS (noble) OEM image on the machine.
- 2. Boot 6.17.0-1028-oem (shipped OEM kernel) and confirm the baseline passes 
(see next step).
- 3. Wait until /proc/uptime >= 100 s. Measuring earlier than ~100 s after boot 
produces false
-    failures: devices are still initialising, s2idle aborts after a few 
seconds and the residency
-    counter never moves, on every kernel including known-good ones.
- 4. Read S0ix residency, suspend for 20 s, read it again:
+ 1. Install Ubuntu 24.04.4 LTS (noble) OEM image, boot 7.0.0-44-generic.
+ 2. Wait until /proc/uptime >= 110 s (measuring earlier than ~100 s after boot 
gives false
+    results on any kernel: devices are still initialising).
+ 3. Run a suspend cycle and read the counters as root:
  
       S0=/sys/kernel/debug/pmc_core/slp_s0_residency_usec
-      a=$(cat $S0)
-      rtcwake -m mem -s 20
-      b=$(cat $S0)
-      echo "$a -> $b"
+      PC=/sys/kernel/debug/pmc_core/package_cstate_show
+      SUB=/sys/kernel/debug/pmc_core/substate_residencies
+      a1=$(cat $S0); a2=$(awk '/S0i2.2/{print $2}' $SUB); a3=$(awk '/Package 
C10/{print $4}' $PC)
+      rtcwake -m mem -s 60
+      b1=$(cat $S0); b2=$(awk '/S0i2.2/{print $2}' $SUB); b3=$(awk '/Package 
C10/{print $4}' $PC)
+      echo "s0=$((b1-a1)) s0i2.2=$((b2-a2)) c10=$((b3-a3))"
+      cat /sys/kernel/debug/suspend_stats
  
-      dmesg | grep -E 'PM: suspend (entry|exit)|Some devices failed to
- suspend'
- 
- 5. apt-get update && apt-get -y dist-upgrade, reboot into 7.0.0-44-generic 
and repeat step 3-4.
- 6. To separate kernel from userspace, install every 6.17.0-*-oem kernel next 
to the upgraded
-    userspace and select them one at a time with
- 
-      sudo grub-reboot 'Advanced options for Ubuntu>Ubuntu, with Linux
- <version>'
+ 4. Repeat on 6.17.0-1028-oem (installed side by side, selected with
+    grub-reboot 'Advanced options for Ubuntu>Ubuntu, with Linux 
6.17.0-1028-oem').
  
  [Expected Result]
- For a 20 s rtcwake cycle the residency counter increases by roughly the sleep 
time (15.3-16.4 s
- measured across 11 different 6.17.0-oem builds) and the machine wakes ~21 s 
after the request.
+ For a 60 s rtcwake cycle, all residency counters increase by roughly the 
sleep time. On
+ 6.17.0-1028-oem a 30 s cycle gives s0=25.92 s, S0i2.2=25.91 s, Package 
C10=26.50 s.
  
  [Actual Result]
- With 7.0.0-44-generic the residency counter is unchanged across the cycle 
(delta 0 us) while the
- system still sleeps for 21.6 s. With 7.0.0-43-generic the delta is also 0 and 
the system wakes
- after 7.5 s. The certification test fails with:
+ 7.0.0-44-generic, 60 s cycle (fresh boot, uptime 116 s):
  
-   Expected slp_s0_residency_usec to increase from 0, got 0
+   slp_s0_residency_usec: 88420964 -> 88420964   delta 0 us
+   S0i2.2               : 88387383 -> 88387383   delta 0 us
+   Package C10          : 62298819 -> 122044385  delta 59,745,566 us (59.75 s)
+   suspend_stats        : success: 1, fail: 0
+   dmesg                : "PM: suspend entry (s2idle)" ... "PM: suspend exit" 
21.7 s for a 20 s sleep
+ 
+ 7.0.0-44-generic, 30 s cycle (uptime 552 s): s0 delta 0, S0i2.2 delta 0,
+ Package C10 +27.93 s.
+ 
+ The certification test therefore fails with "Expected slp_s0_residency_usec 
to increase from 0,
+ got 0" even though the machine suspends and reaches deep package state.
  
  [Failure Rate]
- 100% (3 of 3 testable 7.0.0 builds: -14, -43, -44). 0% on 6.17.0-oem: 11 
builds tested twice each,
- once on the GM image and once on the dist-upgraded image (22 measurements).
- 7.0.0-28 and 7.0.0-29 did not come back after reboot on this machine (no SSH, 
no ping); see
- Additional Information.
+ 100% on 7.0.0-44, 7.0.0-43 (also woke early at 7.5 s) and 7.0.0-14. 0% on 
6.17.0-oem: 11 builds,
+ 22 measurements (GM image and dist-upgraded image).
  
  [Affected Test Cases]
  Suspend / s2idle S0ix residency test used by the certification SRU run
  ("Expected slp_s0_residency_usec to increase from 0, got 0").
  
  [Environment]
- Machine:        Dell Inc. Dell Pro 3 14 P314260
+ Machine:        Dell Inc. Dell Pro 3 14 P314260 (CPU: Intel(R) Core(TM) Ultra 
7 365)
  System SKU:     0EA3
  BIOS:           2.1.6
  OS:             Ubuntu 24.04.4 LTS (noble), amd64
- Image:          OEM 24.04.4 desktop image, build 20260701-98 (clean install, 
no upgrade log at
-                 first boot)
+ Image:          OEM 24.04.4 desktop image, build 20260701-98
  Failing kernel: 7.0.0-44-generic (linux-hwe-7.0 7.0.0-44.44~24.04.1, 
noble-updates/security)
  Good kernel:    6.17.0-1028-oem (linux-oem-6.17 6.17.0-1028.28 via meta 
linux-oem-24.04d)
- Firmware pkg:   linux-firmware 20240318.git3b128b60.0ubuntu3.1 (split 
packages)
- Suspend mode:   s2idle (no "mem_sleep" override), /sys/power/state = freeze 
mem disk
+ PMC driver:     intel_pmc_core + intel_pmc_core_pltdrv (same modules present 
in both kernels)
+ Suspend mode:   s2idle ("[s2idle]" in /sys/power/mem_sleep)
  
  [Kernel Switch Matrix]
- All rows use the same 20 s rtcwake cycle, measured at uptime >= 100 s.
+ Same 20 s rtcwake cycle, measured at uptime >= 100 s.
  
    userspace            kernel                              S0ix delta     
entry->exit   result
    GM image             6.17.0-1028-oem                     +16.07 s       
21.5 s        PASS
    GM image             6.17.0-1011/1012/1017/1020/1023/    +15.4..16.4 s  
20.7..22.0 s  PASS (11/11)
                         1024/1025/1028/1030/1032/1033-oem
    dist-upgraded        6.17.0-1011..1033-oem (same 11)     +15.3..16.4 s  
20.7..21.9 s  PASS (11/11)
    dist-upgraded        7.0.0-44-generic                    0              
21.6 s        FAIL
    dist-upgraded        7.0.0-43-generic                    0               
7.5 s        FAIL
    dist-upgraded        7.0.0-14-generic                    0              
20.2 s        FAIL
    dist-upgraded        7.0.0-28-generic                    -              no 
boot       n/a
    dist-upgraded        7.0.0-29-generic                    -              no 
boot       n/a
  
  [Bisect Method]
- Kernels are installed side by side from the archive and selected with a 
one-shot grub-reboot entry,
- so a bad kernel never becomes the default:
+ Kernels installed side by side from the archive, selected with a one-shot 
grub-reboot entry so a
+ bad kernel never becomes the default:
  
    sudo apt-get install -y linux-image-<version>
    sudo grub-reboot 'Advanced options for Ubuntu>Ubuntu, with Linux <version>'
    sudo reboot
-   # wait for ssh, then wait until /proc/uptime >= 100 before measuring
-   S0=/sys/kernel/debug/pmc_core/slp_s0_residency_usec
-   a=$(cat $S0); rtcwake -m mem -s 20; b=$(cat $S0); echo "$a -> $b"
-   dmesg | grep -E 'PM: suspend (entry|exit)|Some devices failed to suspend'
+   # wait for ssh, then wait until /proc/uptime >= 110 before measuring
+   # measure s0 / S0i2.2 / Package C10 around rtcwake -m mem -s <n>
  
  [Upgrade Scope]
- The dist-upgrade that introduces the failure (2026-12-01 07:04:09, "apt-get 
-y dist-upgrade -q")
- upgraded 1126 packages and removed none. Relevant new installs:
+ The dist-upgrade that introduces 7.0 (2026-12-01 07:04:09, "apt-get -y 
dist-upgrade -q") upgraded
+ 1126 packages and removed none. Relevant new installs: 
linux-generic-hwe-24.04 7.0.0-44.44~24.04.1
+ (linux-image-7.0.0-44-generic and modules) and linux-firmware 
20240318.git3b128b60.0ubuntu3.1 with
+ its new split packages.
  
-   linux-generic-hwe-24.04 7.0.0-44.44~24.04.1
-   linux-image-generic-hwe-24.04 / linux-image-7.0.0-44-generic / 
linux-modules-7.0.0-44-generic
-   linux-firmware 20240318.git3b128b60.0ubuntu3.1 and its new split packages
-   (linux-firmware-intel-* / -amd-* / -nvidia-* / -mediatek / -qualcomm-* ...)
- 
- The kernel is the only variable that matters: with that same upgraded 
userspace, all 11 6.17.0-oem
- builds pass, and only 7.0.0 builds fail.
+ Only the kernel matters: with that same upgraded userspace all 11
+ 6.17.0-oem builds pass.
  
  [Isolation Experiments]
- - Userspace held constant (dist-upgraded), kernel varied: 11 x 6.17.0-oem 
PASS, 3 x 7.0.0 FAIL.
-   This rules out the userspace/firmware delta introduced by the dist-upgrade 
as the trigger.
- - Kernel held constant (7.0.0-44), measuring too early after boot produces 
the same "delta 0"
-   symptom on known-good kernels, so every measurement in the matrix above 
gates on
-   /proc/uptime >= 100 s.
- - The system does reach s2idle: one "PM: suspend entry" ... "PM: suspend 
exit" pair per cycle and
-   the wall clock advances by the sleep time, so this is not an aborted 
suspend. The SoC simply
-   never accumulates S0ix residency, i.e. something keeps the platform in a 
shallower state for
-   the whole sleep.
+ - ISH LTR is not the blocker: PMC0:ISH shows LTR RAW 0x0 / Non-Snoop 0 / 
Snoop 0, and writing 17
+   to pmc_core/ltr_ignore (confirmed via LTR_IGNORE: 1 in ltr_show) does not 
change the result.
+ - LTR values are identical between 6.17 and 7.0 (aggregated 189440 ns, GbE 
189440 ns, current
+   platform 40960 ns), so an LTR-based S0ix veto does not explain it.
+ - No device blocks the suspend: suspend_stats shows fail: 0 and 
failed_suspend: 0, dmesg has no
+   "Some devices failed to suspend", and the active wakeup_sources set on 7.0 
is a subset of the
+   6.17 one.
+ - PCI 0000:00:0d.3 (USB4 host interface 8086:e434, driver thunderbolt) 
runtime-suspends normally
+   on 7.0 (runtime_status=suspended, runtime_suspended_time advancing); it 
only appears active in
+   the immediate post-resume snapshot.
+ - Package C10 advances for 93-99 % of the sleep time on 7.0, which is the 
decisive evidence that
+   the platform itself sleeps deeply and only the S0ix counters are stale.
  
  [Root Cause]
- Not yet isolated to a driver or commit. Proven: the failure is introduced by 
the 7.0 kernel series
- (earliest testable build -14 already fails) and disappears with 6.17.0-oem on 
identical userspace.
- Next steps to pin it:
- - /sys/kernel/debug/pmc_core/substate_residencies and ltr_show while in 
s2idle, to see which
-   substate/device is held off, and dmesg for "Some devices failed to suspend".
- - On Intel PTL, the ISH LTR is a known S0ix blocker; echo 17 > 
/sys/kernel/debug/pmc_core/ltr_ignore
-   and re-run the cycle. If residency recovers, the blocker is the ISH/PMC 
path and the 7.0 change
-   that exposes it can be bisected in the kernel tree.
+ The platform sleeps correctly; the S0ix residency reporting in the 7.0 PMC 
path does not update
+ for this platform. On 7.0 both slp_s0_residency_usec and the S0i2.x substate 
counters stay at the
+ value they had when the kernel booted, while Package C10 keeps advancing and 
suspend_stats
+ reports successful suspends. On 6.17.0-oem all three counters advance 
consistently.
+ 
+ Note that the hardware counter persists across warm reboots: after the 6.17 
run ended at
+ slp_s0_residency_usec=88420964, the 7.0 boot started from that same value and 
never moved it,
+ which is consistent with a driver-side read that never reaches the live 
register (or reaches a
+ register that is not updated on this platform) rather than with a genuinely 
idle platform.
  
  [Proposed Fix / Patch]
- No patch yet. Two candidates depending on the outcome of the LTR test above:
- - If ltr_ignore restores S0ix: the fix belongs to the ISH/PMC 
power-management path in 7.0 (LTR
-   handling or the ISH driver change that started programming the LTR 
differently).
- - If it does not: bisect 7.0.0 between the first failing build and a working 
baseline on the
-   platform, focusing on PCIe/USB/xHCI runtime PM and the s2idle entry path.
+ No patch yet. Candidate areas:
+ - intel_pmc_core / intel_pmc_core_pltdrv: check which register is read for
+   slp_s0_residency_usec and for the S0i2.x substate counters on PTL in 7.0, 
and compare with the
+   6.17 driver. Either the PTL mapping changed, or the driver reads a latch 
that is only updated
+   on cold boot, or the counters moved to a different register block on this 
stepping.
+ - Compare intel_pmc_core debugfs contents on 6.17 vs 7.0 for the same 
platform: 6.17 prints
+   "Substate Residency" rows without the "pmc0" prefix and reports live 
values, 7.0 prints a
+   "pmc0 Substate Residency" header and both counters are static.
  
  [Verification Plan]
- Re-run the matrix row for the fixed kernel on this machine: 20 s rtcwake at 
uptime >= 100 s must
- show slp_s0_residency_usec growing by ~15-16 s, wake at ~21 s, no "Some 
devices failed to suspend",
- and the certification suspend test must pass. The 11 x 6.17.0-oem rows are 
the control group.
+ On the fixed kernel, a 60 s rtcwake cycle at uptime >= 110 s must show 
slp_s0_residency_usec and
+ S0i2.2 growing by roughly the sleep time (as 6.17.0-oem does), Package C10 
growing by the same
+ amount, suspend_stats success/fail = 1/0, and the certification suspend test 
must pass. Keep the
+ 11 x 6.17.0-oem rows as the control group.
  
  [Additional Information]
- - Full apport report collected on the failing kernel (7.0.0-44-generic) is 
attached.
+ - Attachments: switch matrix, apt history/firmware inventory, full apport 
report from the failing
+   kernel, raw debug dumps for both kernels, and the measurement log.
  - 7.0.0-28 and 7.0.0-29 did not come back after reboot on this machine (no 
SSH, no ping, power
-   button required). Not yet confirmed through a serial console; reported here 
because it affects
-   how far the bisect can go.
+   button required). Not yet confirmed through a serial console.
  - 7.0.0 builds published in noble-updates/security at the time of testing: 
14, 28, 29, 30, 31, 34,
    38, 42, 43, 44.
  
+ [Worklog]
+ 2026-12-02: filed from the certification SRU regression analysis, then 
corrected after deeper
+ instrumentation: the suspend itself is fine, the S0ix counters are the 
regression.
+ 
  [Stage]
  Right after it happened
- 
- 
- [Worklog]
- 2026-12-02: filed from the certification SRU regression analysis. The full 
apport report and the s2idle debug data (ltr_show / substate_residencies) will 
be attached as they are collected.

** Tags added: intel-pmc-core regression

** Attachment added: "39019_s0ix_measurements.txt"
   
https://bugs.launchpad.net/bugs/2179434/+attachment/6022753/+files/39019_s0ix_measurements.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2179434

Title:
  [linux-hwe-7.0] 7.0.0-44: slp_s0_residency_usec and S0i2.x counters
  frozen on Dell Pro 3 14 P314260 while Package C10 still advances
  (6.17.0-oem fine)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-hwe-7.0/+bug/2179434/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to