Need S3 stress test for discrete graphic

Bug #1712301 reported by Jerry Kao
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Expired
High
Unassigned

Bug Description

We do have S3 single test for discrete graphic (Nvidia graphic) but no stress test. It would be better to have S3 stress for Nvidia and AMD dGPUs as it is cert blocker.

How to switch graphic
To switch to Nvidia card:
1. sudo prime-select nvidia
2. reboot system
3. prime-select query to check which card is being used right now

To switch to Intel card:
sudo prime-select intel

For amdgpu-pro stack, it is also switchable (amdgpu is not). We need S3 stress test for amdgpu-pro stack as well. Checkbox already has a way to identify amdgpu and amdgpu-pro.

To switch graphic mode on amdgpu-pro stack
sudo /opt/amdgpu-pro/bin/amdgpu-pro-px --mode performance/powersaving

The idea is to have S3 stress test for discrete graphic in stress test plan and can be completed without interaction.
The critical part is system needs reboot after switching graphic mode (performance-discrete and power saving-UMA).

Jerry Kao (jerry.kao)
tags: added: ce-qa-concern
Changed in plainbox-provider-checkbox:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Chris Wayne (cwayne18)
Chris Wayne (cwayne)
Changed in plainbox-provider-checkbox:
assignee: Chris Wayne (cwayne18) → Sylvain Pineau (sylvain-pineau)
status: Confirmed → In Progress
milestone: none → 0.40.0
Changed in plainbox-provider-checkbox:
milestone: 0.40.0 → 0.41.0
Changed in plainbox-provider-checkbox:
status: In Progress → New
Jerry Kao (jerry.kao)
description: updated
description: updated
description: updated
Jerry Kao (jerry.kao)
description: updated
Changed in plainbox-provider-checkbox:
status: New → Confirmed
Jerry Kao (jerry.kao)
description: updated
Chris Wayne (cwayne)
Changed in plainbox-provider-checkbox:
assignee: Sylvain Pineau (sylvain-pineau) → Maciej Kisielewski (kissiel)
Changed in plainbox-provider-checkbox:
status: Confirmed → In Progress
Revision history for this message
Maciej Kisielewski (kissiel) wrote :
Changed in plainbox-provider-checkbox:
status: In Progress → Fix Committed
Changed in plainbox-provider-checkbox:
status: Fix Committed → Fix Released
status: Fix Released → Fix Committed
milestone: 0.41.0 → 0.42.0
Changed in plainbox-provider-checkbox:
status: Fix Committed → Fix Released
Revision history for this message
Ray Chen (ray.chen) wrote :

The fix was only fixed dual graphic auto switch, OEM projects need a suspend_30_cycles_with_reboots/logs for dual graphic like

1. Add new “suspend 30 with reboot” template for dual graphics based on /stress/jobs.pxu #68~#83 to /suspend/suspend-graphics.pxu
unit: template
template-resource: graphics_card
template-filter: graphics_card.prime_gpu_offload == 'Off'
id: power-management/{index}_suspend_30_cycles_with_reboots_{product_slug}
plugin: shell
category_id: com.canonical.plainbox::stress
depends:
 power-management/rtc
 suspend/suspend_advanced
 graphics/{index}_auto_switch_card_{product_slug}
requires: ……
flags: noreturn autorestart
user: root
environ: PM_TEST_DRY_RUN
command: …..

2. Add new nested plan for dual graphics into /stress/test-plan.pxu for example
Id: com.canonical.certification::stress-suspend-30-cycles-with-reboots-automated-dual-graphics
unit: test plan
_name: Suspend stress tests (with reboots) for dual graphics
_description: Suspend stress tests (with reboots) for dual graphics
include:
power-management/1_suspend_30_cycles_with_reboots_.*
power-management/1_suspend-30-cycle-log-attach-with-reboots_.*
…...
power-management/2_suspend_30_cycles_with_reboots_.*
power-management/2_suspend-30-cycle-log-attach-with-reboots_.*
….

Changed in plainbox-provider-checkbox:
status: Fix Released → Confirmed
Revision history for this message
Ray Chen (ray.chen) wrote :
Revision history for this message
Jonathan Cave (jocave) wrote :

Discussion on irc, the effective operations that checkbox should carry out are:

switch to iGPU, reboot, 30 S3, reboot, 30 S3, reboot, 30 S3, attach logs
switch to dGPU, reboot, 30 S3, reboot, 30 S3, reboot, 30 S3, attach logs

Betty Lin (bettyl)
Changed in plainbox-provider-checkbox:
milestone: 0.42.0 → none
Changed in plainbox-provider-checkbox:
assignee: Maciej Kisielewski (kissiel) → nobody
Revision history for this message
Maksim Beliaev (beliaev-maksim) wrote :

Bug was migrated to GitHub: https://github.com/canonical/checkbox/issues/60.
Bug is no more monitored here.

Changed in plainbox-provider-checkbox:
status: Confirmed → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.