[Intel-gfx] [PATCH i-g-t 5/5] kms_psr_sink_crc: Add suspend/resume sub test.
Rodrigo Vivi
rodrigo.vivi at intel.com
Thu Dec 3 08:39:18 PST 2015
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.
Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
tests/kms_psr_sink_crc.c | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c
index b2f88ea..7768a60 100644
--- a/tests/kms_psr_sink_crc.c
+++ b/tests/kms_psr_sink_crc.c
@@ -626,6 +626,36 @@ int main(int argc, char *argv[])
test_cleanup(&data);
}
+ igt_subtest_f("suspend_psr_active") {
+
+ igt_skip_on(no_suspend);
+
+ 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") {
+
+ igt_skip_on(no_suspend);
+
+ 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);
--
2.4.3
More information about the Intel-gfx
mailing list