diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2024-05-13 09:24:34 -0700 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2024-05-14 06:04:43 -0700 |
commit | b6c459b99abc85cad050b0b04faaca9fc3568a69 (patch) | |
tree | 203130b784484160779d259aa4fe62a8b94877b1 /tests | |
parent | 7b6bc4b4fc691e89a9fbcfd76319ab033ca9f591 (diff) |
tests/intel/xe_pm: Fix S4 testing
The additional s4-mocs implementation crossed with the change of how S4
is tested in commit 4b767566bbc6 ("tests/intel/xe_pm: S4 to go up to
devices only"). Apply the same logic as in other tests.
Fixes: 1a77ac56d453 ("tests/intel/xe_pm: Add mocs S2-idle/S3/S4 suspend resume test")
Acked-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/20240513162435.952578-3-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/intel/xe_pm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/intel/xe_pm.c b/tests/intel/xe_pm.c index 584cb8548..3cbdb6a96 100644 --- a/tests/intel/xe_pm.c +++ b/tests/intel/xe_pm.c @@ -655,7 +655,10 @@ static void test_mocs_suspend_resume(device_t device, int s_state) close(fw_handle); igt_assert(igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED)); } else { - igt_system_suspend_autoresume(s_state, SUSPEND_TEST_NONE); + enum igt_suspend_test test = s_state == SUSPEND_STATE_DISK ? + SUSPEND_TEST_DEVICES : SUSPEND_TEST_NONE; + + igt_system_suspend_autoresume(s_state, test); } igt_assert(igt_debugfs_exists(device.fd_xe, path, O_RDONLY)); igt_debugfs_dump(device.fd_xe, path); |