summaryrefslogtreecommitdiff
path: root/units
diff options
authorPMR <pmr@pmr-lander>2021-06-02 12:50:51 +0000
committerPMR <pmr@pmr-lander>2021-06-02 12:50:51 +0000
commitc083349cfc93d40f7bca3f38abcc2163e305b19c (patch)
tree572940a164a01d7c220138103b1aa71dbb879b54 /units
parent1d99eeda6a86a3edc948599835e834f5501fd17d (diff)
parent188023521d796352e9e6ac78e0e5e0952bf3c452 (diff)
Merge #403303 from ~kchsieh/plainbox-provider-checkbox/+git/plainbox-provider-checkbox:short-idle-check
Add: check package cstate during short idle
Diffstat (limited to 'units')
-rw-r--r--units/cpu/test-plan.pxu2
-rw-r--r--units/power-management/jobs.pxu25
-rw-r--r--units/power-management/test-plan.pxu9
3 files changed, 34 insertions, 2 deletions
diff --git a/units/cpu/test-plan.pxu b/units/cpu/test-plan.pxu
index eb2dabb..46e9ac4 100644
--- a/units/cpu/test-plan.pxu
+++ b/units/cpu/test-plan.pxu
@@ -32,8 +32,6 @@ include:
cpu/offlining_test certification-status=blocker
cpu/topology certification-status=blocker
cpu/clocktest
- power-management/cpu-low-power-idle
- power-management/system-low-power-idle
id: cpu-cert-blockers
unit: test plan
diff --git a/units/power-management/jobs.pxu b/units/power-management/jobs.pxu
index d2ef21b..726b4ae 100644
--- a/units/power-management/jobs.pxu
+++ b/units/power-management/jobs.pxu
@@ -331,6 +331,31 @@ plugin: shell
command: failed_service_check.sh
estimated_duration: 1.0
+id: power-management/idle-screen-on-residency-check
+category_id: com.canonical.plainbox::power-management
+_summary: Test if CPU records time in desired low power C-state when idle
+_description:
+ When the system has the screen on, but the CPU is idle, it should enter deeper idle state
+ to reduce power consumption. The expected states are identified as PC8, PC9 and PC10.
+ For more detail refer to https://01.org/blogs/qwang59/2020/linux-s0ix-troubleshooting
+unit: job
+plugin: shell
+requires:
+ cpuinfo.type == 'GenuineIntel'
+ package.name == 'msr-tools'
+ sleep.mem_sleep == 's2idle'
+command:
+ short-idle-check.sh -s 20
+ RET=$?
+ if [ $RET -ne 0 ]; then
+ echo "The CPU package target idle state residency is 0."
+ echo "It will consume more power when the system has the screen on, but the CPU is idle."
+ echo "More detail is in https://01.org/blogs/qwang59/2020/linux-s0ix-troubleshooting."
+ exit 1
+ fi
+user: root
+estimated_duration: 22
+
id: power-management/cpu-low-power-idle
category_id: com.canonical.plainbox::power-management
_summary: CPU low power idle residency check
diff --git a/units/power-management/test-plan.pxu b/units/power-management/test-plan.pxu
index 8391bca..0cc9997 100644
--- a/units/power-management/test-plan.pxu
+++ b/units/power-management/test-plan.pxu
@@ -86,3 +86,12 @@ _description: Manual power tests for Snappy Ubuntu Core devices
include:
power-management/poweroff-manual
power-management/reboot-manual
+
+id: power-management-cpu-cstate-cert-automated
+unit: test plan
+_name: CPU package cstate tests
+_description: CPU package cstate tests for Ubuntu PC devices
+include:
+ power-management/idle-screen-on-residency-check
+ power-management/cpu-low-power-idle
+ power-management/system-low-power-idle