apt history and firmware inventory from the dist-upgraded system

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

** 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.
  
  This is a regression against 6.17.0-oem: nothing in userspace is needed to 
reproduce it, only the
  7.0 kernel is.
  
  [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:
  
       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'
  
  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>'
  
  [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.
  
  [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:
  
    Expected slp_s0_residency_usec to increase from 0, got 0
  
  [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.
  
  [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
  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)
  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
  
  [Kernel Switch Matrix]
  All rows use the 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:
  
    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'
  
  [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:
  
    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.
  
  [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.
  
  [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.
  
  [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.
  
  [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.
  
  [Additional Information]
  - Full apport report collected on the failing kernel (7.0.0-44-generic) is 
attached.
  - 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.
  - 7.0.0 builds published in noble-updates/security at the time of testing: 
14, 28, 29, 30, 31, 34,
    38, 42, 43, 44.
  
  [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: ptl

-- 
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: s2idle never enters S0ix
  (slp_s0_residency_usec delta 0) on Dell Pro 3 14 P314260, 6.17.0-oem
  is 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