From 022e6f8ae7c853e221eb9d8344cf1aa27c5fbe57 Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Fri, 30 Sep 2016 17:28:53 +0300 Subject: lib/igt_aux: Add support for various system suspend/resume options To have a more accurate idea about any suspend/resume issues we can perform the s/r until various phases in the s/r sequence. This way we can isolate the given problem as being a device driver, kernel core or BIOS related issue. Actual subtests using these new s/r phases will be added as follow-up. While at it also add the freeze suspend target, it's something we also would need to test. Signed-off-by: Imre Deak --- tests/kms_flip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/kms_flip.c') diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 065ad66f..7646aafb 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -1013,7 +1013,8 @@ static unsigned int run_test_step(struct test_output *o) igt_assert(igt_wait_for_pm_status(IGT_RUNTIME_PM_STATUS_SUSPENDED)); if (o->flags & TEST_SUSPEND) - igt_system_suspend_autoresume(); + igt_system_suspend_autoresume(SUSPEND_STATE_MEM, + SUSPEND_TEST_NONE); if (do_vblank && (o->flags & TEST_EINVAL) && o->vblank_state.count > 0) igt_assert(do_wait_for_vblank(o, o->pipe, target_seq, &vbl_reply) -- cgit v1.2.3