diff options
author | Imre Deak <imre.deak@intel.com> | 2016-09-30 17:28:53 +0300 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2016-10-13 15:08:55 +0300 |
commit | 022e6f8ae7c853e221eb9d8344cf1aa27c5fbe57 (patch) | |
tree | ea9d7a00ee3e675c3ae5fbd5063572bc816dc352 /tests/kms_psr_sink_crc.c | |
parent | e442481c9cf35a1c509b836cf076bae597296200 (diff) |
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 <imre.deak@intel.com>
Diffstat (limited to 'tests/kms_psr_sink_crc.c')
-rw-r--r-- | tests/kms_psr_sink_crc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/kms_psr_sink_crc.c b/tests/kms_psr_sink_crc.c index 8aafedb0..926b8578 100644 --- a/tests/kms_psr_sink_crc.c +++ b/tests/kms_psr_sink_crc.c @@ -596,7 +596,8 @@ int main(int argc, char *argv[]) setup_test_plane(&data); igt_assert(wait_psr_entry(&data)); - igt_system_suspend_autoresume(); + igt_system_suspend_autoresume(SUSPEND_STATE_MEM, + SUSPEND_TEST_NONE); run_test(&data); test_cleanup(&data); @@ -607,7 +608,8 @@ int main(int argc, char *argv[]) data.op = PLANE_ONOFF; setup_test_plane(&data); - igt_system_suspend_autoresume(); + igt_system_suspend_autoresume(SUSPEND_STATE_MEM, + SUSPEND_TEST_NONE); igt_assert(wait_psr_entry(&data)); run_test(&data); |