** Description changed:

  [Summary]
  The machine failed on the OEM SRU job 
"cert-oem-sru-noble-desktop-dell-pro-3-14-p314260-c39019",
  build #4 
(http://10.102.156.15:8080/job/cert-oem-sru-noble-desktop-dell-pro-3-14-p314260-c39019/4/),
  on the suspend tests:
  
    suspend/suspend_advanced_auto (fwts s3):
      S2idleNotDeepest (CRITICAL): Expected 
/sys/kernel/debug/pmc_core/slp_s0_residency_usec to
        increase from 0, got 0
      LongSuspend (HIGH): s2idle duration = 83 s, much longer than expected
      PmDevicesFailedToSuspend (CRITICAL): PM: Some devices failed to suspend, 
or early wake event
        detected
    suspend/validate_suspend_status: success:0, last_failed_errno:-110, 
total_hw_sleep:0
  
  The machine suspends and resumes by itself; the failure is in what the 
counters report, not in the
  wake-up.
  
  [Steps to Reproduce]
  1. Install GM image (somerville-noble-oem-24.04d-20260701-98).
  2. Run the full OEM SRU suite.
  3. Observe the suspend test result on the machine:
     - S2idleNotDeepest (CRITICAL): Expected 
/sys/kernel/debug/pmc_core/slp_s0_residency_usec to
       increase from 0, got 0
     - LongSuspend (HIGH): s2idle duration = 83 s, much longer than expected
     - PmDevicesFailedToSuspend (CRITICAL): PM: Some devices failed to suspend, 
or early wake event
       detected
     The machine comes back from suspend normally (wakeup source PNP0B00:00, 
pm-action returned 0);
     the failure is in what the counters report, not in the wake-up.
  
  [Affected Machines]
  202606-39019 - Dell Inc. Dell Pro 3 14 P314260 (SKU 0EA3, BIOS 2.1.6)
  C3: https://certification.canonical.com/hardware/202606-39019/
  
  [Failure Rate]
  100% on 7.0.0-44, 7.0.0-43 and 7.0.0-14. 0% on 6.17.0-oem (11 builds, GM 
image and dist-upgraded
  image).
  
  [Environment]
  Machine:        Dell Inc. Dell Pro 3 14 P314260 (Intel Core Ultra 7 365)
  System SKU:     0EA3
  BIOS:           2.1.6
  OS:             Ubuntu 24.04.4 LTS (noble), amd64
  Image:          GM image somerville-noble-oem-24.04d-20260701-98
  Failing kernel: 7.0.0-44-generic (linux-hwe-7.0 7.0.0-44.44~24.04.1)
  Good kernel:    6.17.0-1028-oem (linux-oem-6.17 6.17.0-1028.28, meta 
linux-oem-24.04d)
  Suspend mode:   s2idle
  
  ---
  
  [Notes]
  
- Measurement setup: rtcwake -m mem -s N, started only after /proc/uptime >= 
110 s, reading
- /sys/kernel/debug/pmc_core/slp_s0_residency_usec, substate_residencies 
(S0i2.2) and
- package_cstate_show (Package C10) before and after each cycle.
- 
  After debugging, the platform really does reach deep sleep: Package C10 
advances by 93-99 % of the
  requested sleep time on 7.0.0-44. What is broken is the S0ix accounting: 
slp_s0_residency_usec and
  the S0i2.x substate counters stay frozen at the value they had when the 
kernel booted, while the
  same machine and userspace on 6.17.0-1028-oem report all three counters 
consistently. So this is a
  7.0 regression in the PMC/S0ix reporting (intel_pmc_core / 
intel_pmc_core_pltdrv) rather than a
  failure to suspend, and the certification test fails on a metric that no 
longer updates.
  
- Expected result: for a suspend cycle of N seconds, the S0ix residency 
counters increase by roughly
+ [Expected Result]
+ For a suspend cycle of N seconds, the S0ix residency counters increase by 
roughly
  N. On 6.17.0-1028-oem a 30 s rtcwake cycle gives slp_s0_residency_usec +25.92 
s, S0i2.2 +25.91 s
  and Package C10 +26.50 s, and the suspend test passes.
  
- Actual result, 7.0.0-44-generic, 60 s rtcwake cycle (fresh boot, uptime
- 116 s):
+ [Actual Result]
+ 7.0.0-44-generic, 60 s rtcwake cycle (fresh boot, uptime 116 s):
  
    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                : one "PM: suspend entry (s2idle)" / "PM: suspend 
exit" pair
  
- Actual result, 7.0.0-44-generic, 30 s cycle (uptime 552 s): slp_s0 delta 0, 
S0i2.2 delta 0,
+ 7.0.0-44-generic, 30 s cycle (uptime 552 s): slp_s0 delta 0, S0i2.2 delta 0,
  Package C10 +27.93 s.
  
- Affected test cases:
+ [Affected Test Cases]
  - suspend/suspend_advanced_auto (Category: Suspend tests) runs fwts "s3" and 
fails with
    S2idleNotDeepest (CRITICAL), LongSuspend (HIGH) and 
PmDevicesFailedToSuspend (CRITICAL).
  - suspend/validate_suspend_status (Category: Suspend tests) validates the 
last suspend against
    /sys/kernel/debug/suspend_stats; on the failing run it reports success:0,
    last_failed_errno:-110, total_hw_sleep:0.
  - suspend/any_suspend_failure reads the same suspend_stats block and also 
fails.
  
- Kernel switch matrix, same 20 s rtcwake cycle, measured at uptime >= 100
- s:
+ [Kernel Switch Matrix]
+ 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 installed side by side from the archive and selected 
with a one-shot
+ [Bisect Method]
+ Kernels 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 until /proc/uptime >= 110 before measuring
    S0=/sys/kernel/debug/pmc_core/slp_s0_residency_usec
    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))"
  
- Upgrade scope: the dist-upgrade that introduces 7.0 (2026-12-01 07:04:09, 
"apt-get -y dist-upgrade
+ [Upgrade Scope]
+ 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. Only the kernel 
matters: with that
  same upgraded userspace all 11 6.17.0-oem builds pass.
  
- Isolation experiments:
+ [Isolation Experiments]
  - 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 in the manual cycles: suspend_stats fail: 0, 
no "Some devices failed
    to suspend" in the 20/30/60 s rtcwake runs, and the active wakeup_sources 
set on 7.0 is a subset
    of the 6.17 one. (The SRU run does log one "failed to suspend, or early 
wake event detected" at
    uptime 913 s.)
  - 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: the platform sleeps; the S0ix residency reporting in the 7.0 PMC 
path does not update
+ [Root Cause]
+ The platform sleeps; 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.
  
  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 points at a driver-side read that no longer reaches the live register 
(or reaches a register
  that is not updated on this platform/stepping) rather than at a platform that 
stays awake.
  
  The 83 s s2idle duration and the single "Some devices failed to suspend" in 
the suite run are
  separate symptoms of the same area; they do not reproduce in the isolated 
rtcwake cycles.
  
- Proposed fix: no patch yet. Candidate areas:
+ [Proposed Fix / Patch]
+ 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
    mapping changed, or the driver reads a latch that is only refreshed on cold 
boot, or the counters
    moved to a different register block on this stepping.
  - The debugfs layout changed between the two kernels (6.17 prints the 
substate rows without a
    "pmc0" prefix and reports live values; 7.0 prints a "pmc0 Substate 
Residency" header and both
    counters are static), which is a useful pointer for the bisect.
  
- Verification plan: on the fixed kernel, a 60 s rtcwake cycle at uptime >= 110 
s must show
+ [Verification Plan]
+ 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 OEM 
SRU suspend tests
  (S2idleNotDeepest, LongSuspend, PmDevicesFailedToSuspend) must pass. Keep the 
11 x 6.17.0-oem rows
  as the control group.
  
- Additional information:
+ [Additional Information]
  - Attachments: switch matrix, apt history/firmware inventory, full apport 
report from the failing
    kernel, raw pmc_core/suspend_stats/dmesg 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.
  - 7.0.0 builds published in noble-updates/security at the time of testing: 
14, 28, 29, 30, 31, 34,
    38, 42, 43, 44.

-- 
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:
  [SRU] Dell Pro 3 14 P314260 Fails on suspend test

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