[Intel-gfx] [PATCH igt 2/2] tests/gem_exec_suspend: Add basic s4-devices subtest

Imre Deak imre.deak at intel.com
Wed Oct 5 09:04:53 UTC 2016


Add a new subtest that performs suspend-to-disk, but instead of doing
the full sequence it suspends/resumes only devices. A failed s4 subtest
and a successful s4-devices subtest would indicate a kernel core or BIOS
problem as opposed to some issue in the driver.

Signed-off-by: Imre Deak <imre.deak at intel.com>
---
 tests/gem_exec_suspend.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/tests/gem_exec_suspend.c b/tests/gem_exec_suspend.c
index b953afb..e85d877 100644
--- a/tests/gem_exec_suspend.c
+++ b/tests/gem_exec_suspend.c
@@ -32,7 +32,8 @@
 
 #define NOSLEEP 0
 #define SUSPEND 1
-#define HIBERNATE 2
+#define HIBERNATE_DEVICES 3
+#define HIBERNATE 4
 #define mode(x) ((x) & 0xff)
 
 #define LOCAL_I915_EXEC_BSD_SHIFT      (13)
@@ -210,6 +211,11 @@ static void run_test(int fd, unsigned engine, unsigned flags)
 					      SUSPEND_TEST_NONE);
 		break;
 
+	case HIBERNATE_DEVICES:
+		igt_system_suspend_autoresume(SUSPEND_STATE_DISK,
+					      SUSPEND_TEST_DEVICES);
+		break;
+
 	case HIBERNATE:
 		igt_system_suspend_autoresume(SUSPEND_STATE_DISK,
 					      SUSPEND_TEST_NONE);
@@ -250,6 +256,8 @@ igt_main
 		run_test(fd, -1, NOSLEEP);
 	igt_subtest("basic-S3")
 		run_test(fd, -1, SUSPEND);
+	igt_subtest("basic-S4-devices")
+		run_test(fd, -1, HIBERNATE_DEVICES);
 	igt_subtest("basic-S4")
 		run_test(fd, -1, HIBERNATE);
 
-- 
2.5.0



More information about the Intel-gfx mailing list