summaryrefslogtreecommitdiff
path: root/lib/igt_aux.h
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2016-09-30 17:28:53 +0300
committerImre Deak <imre.deak@intel.com>2016-10-13 15:08:55 +0300
commit022e6f8ae7c853e221eb9d8344cf1aa27c5fbe57 (patch)
treeea9d7a00ee3e675c3ae5fbd5063572bc816dc352 /lib/igt_aux.h
parente442481c9cf35a1c509b836cf076bae597296200 (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 'lib/igt_aux.h')
-rw-r--r--lib/igt_aux.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/lib/igt_aux.h b/lib/igt_aux.h
index 7f5a7cfd..39fd8ea6 100644
--- a/lib/igt_aux.h
+++ b/lib/igt_aux.h
@@ -115,8 +115,29 @@ void igt_trash_aperture(void);
void igt_cleanup_aperture_trashers(void);
/* suspend/hibernate and auto-resume system */
-void igt_system_suspend_autoresume(void);
-void igt_system_hibernate_autoresume(void);
+
+enum igt_suspend_state {
+ SUSPEND_STATE_FREEZE,
+ SUSPEND_STATE_MEM,
+ SUSPEND_STATE_STANDBY,
+ SUSPEND_STATE_DISK,
+
+ SUSPEND_STATE_NUM,
+};
+
+enum igt_suspend_test {
+ SUSPEND_TEST_NONE,
+ SUSPEND_TEST_FREEZER,
+ SUSPEND_TEST_DEVICES,
+ SUSPEND_TEST_PLATFORM,
+ SUSPEND_TEST_PROCESSORS,
+ SUSPEND_TEST_CORE,
+
+ SUSPEND_TEST_NUM,
+};
+
+void igt_system_suspend_autoresume(enum igt_suspend_state state,
+ enum igt_suspend_test test);
/* dropping priviledges */
void igt_drop_root(void);