[igt-dev] [PATCH i-g-t 08/20] tests/psr: Merge PSR dpms and suspend variants.
Dhinakaran Pandiyan
dhinakaran.pandiyan at intel.com
Wed Apr 11 02:37:20 UTC 2018
I don't see a big difference in what {dpms,suspend}_psr_exit and
{dpms_off, suspend}_psr_active tests uniquely achieve. Combine them so
that we have one dpms and one suspend test.
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan at intel.com>
---
tests/kms_psr_sink_crc.c | 34 +++-------------------------------
1 file changed, 3 insertions(+), 31 deletions(-)
diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c
index d9cce5ea..e04e0f6a 100644
--- a/tests/kms_psr_sink_crc.c
+++ b/tests/kms_psr_sink_crc.c
@@ -522,51 +522,23 @@ int main(int argc, char *argv[])
}
}
- igt_subtest_f("dpms_off_psr_active") {
+ igt_subtest_f("dpms") {
data.test_plane = DRM_PLANE_TYPE_PRIMARY;
data.op = RENDER;
setup_test_plane(&data);
igt_assert(wait_psr_entry(&data));
-
dpms_off_on(data);
-
- run_test(&data);
- test_cleanup(&data);
- }
-
- igt_subtest_f("dpms_off_psr_exit") {
- data.test_plane = DRM_PLANE_TYPE_OVERLAY;
- data.op = PLANE_ONOFF;
- setup_test_plane(&data);
-
- dpms_off_on(data);
-
- igt_assert(wait_psr_entry(&data));
- run_test(&data);
- test_cleanup(&data);
- }
-
- igt_subtest_f("suspend_psr_active") {
- data.test_plane = DRM_PLANE_TYPE_PRIMARY;
- data.op = PAGE_FLIP;
- setup_test_plane(&data);
- igt_assert(wait_psr_entry(&data));
-
- igt_system_suspend_autoresume(SUSPEND_STATE_MEM,
- SUSPEND_TEST_NONE);
-
run_test(&data);
test_cleanup(&data);
}
- igt_subtest_f("suspend_psr_exit") {
+ igt_subtest_f("suspend") {
data.test_plane = DRM_PLANE_TYPE_CURSOR;
data.op = PLANE_ONOFF;
setup_test_plane(&data);
-
+ igt_assert(wait_psr_entry(&data));
igt_system_suspend_autoresume(SUSPEND_STATE_MEM,
SUSPEND_TEST_NONE);
-
igt_assert(wait_psr_entry(&data));
run_test(&data);
test_cleanup(&data);
--
2.14.1
More information about the igt-dev
mailing list