@@ -626,6 +626,30 @@ int main(int argc, char *argv[])
test_cleanup(&data);
}
+ igt_subtest_f("suspend_psr_active") {
+ data.test_plane = PRIMARY;
+ data.op = PAGE_FLIP;
+ setup_test_plane(&data);
+ igt_assert(wait_psr_entry(&data));
+
+ igt_system_suspend_autoresume();
+
+ run_test(&data);
+ test_cleanup(&data);
+ }
+
+ igt_subtest_f("suspend_psr_exit") {
+ data.test_plane = CURSOR;
+ data.op = PLANE_ONOFF;
+ setup_test_plane(&data);
+
+ igt_system_suspend_autoresume();
+
+ igt_assert(wait_psr_entry(&data));
+ run_test(&data);
+ test_cleanup(&data);
+ }
+
igt_fixture {
drm_intel_bufmgr_destroy(data.bufmgr);
display_fini(&data);
Although kms_frontbuffer_tracking already has psr-suspend testcase this one here can complement it by testing different combination and mainly covering 2 different cases individually: 1. wait-for-psr, suspend-resume tehn run 1 operation. 2. suspend-resume, wait-for-psr then run 1 operation. v2: Remove no-suspend option since this should be done with piglit if necessary for now. v3: argh! remove remaining no-suspend checks... Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com> --- tests/kms_psr_sink_crc.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)