summaryrefslogtreecommitdiff
path: root/tests/kms_psr_sink_crc.c
diff options
context:
space:
mode:
authorRodrigo Vivi <rodrigo.vivi@intel.com>2015-11-03 10:02:14 -0800
committerRodrigo Vivi <rodrigo.vivi@intel.com>2015-12-07 09:06:53 -0800
commit7bd31d090e78d87076f736071a9302aa349164e2 (patch)
treefd2766216eeba7bfb0cc6b5137fa9ef2d1bffd1b /tests/kms_psr_sink_crc.c
parent63980babcf9a104b12a726953cbe7d946a0aadd2 (diff)
kms_psr_sink_crc: Add suspend/resume sub test.
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>
Diffstat (limited to 'tests/kms_psr_sink_crc.c')
-rw-r--r--tests/kms_psr_sink_crc.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c
index b2f88ea9..8843ed87 100644
--- a/tests/kms_psr_sink_crc.c
+++ b/tests/kms_psr_sink_crc.c
@@ -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);