igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH i-g-t] igt/pm_rpm: Test incomplete(debug) suspends vs rpm
@ 2018-08-07  7:43 Chris Wilson
  2018-08-07  8:05 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Chris Wilson @ 2018-08-07  7:43 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev

Check that we restore runtime pm around debug suspends and hibernates.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/pm_rpm.c | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
index 4268bb19a..9bf718d63 100644
--- a/tests/pm_rpm.c
+++ b/tests/pm_rpm.c
@@ -1372,10 +1372,10 @@ static void __attribute__((noreturn)) stay_subtest(void)
 		sleep(600);
 }
 
-static void system_suspend_subtest(void)
+static void system_suspend_subtest(int state, int debug)
 {
 	disable_all_screens_and_wait(&ms_data);
-	igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
+	igt_system_suspend_autoresume(state, debug);
 	igt_assert(wait_for_suspended());
 }
 
@@ -1992,12 +1992,19 @@ int main(int argc, char *argv[])
 				WAIT_STATUS | WAIT_EXTRA);
 
 	/* System suspend */
+	igt_subtest("system-suspend-devices")
+		system_suspend_subtest(SUSPEND_STATE_MEM, SUSPEND_TEST_DEVICES);
 	igt_subtest("system-suspend")
-		system_suspend_subtest();
+		system_suspend_subtest(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
 	igt_subtest("system-suspend-execbuf")
 		system_suspend_execbuf_subtest();
 	igt_subtest("system-suspend-modeset")
 		system_suspend_modeset_subtest();
+	igt_subtest("system-hibernate-devices")
+		system_suspend_subtest(SUSPEND_STATE_DISK,
+				       SUSPEND_TEST_DEVICES);
+	igt_subtest("system-hibernate")
+		system_suspend_subtest(SUSPEND_STATE_DISK, SUSPEND_TEST_NONE);
 
 	/* GEM stress */
 	igt_subtest("gem-execbuf-stress")
-- 
2.18.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-08-07 19:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-07  7:43 [Intel-gfx] [PATCH i-g-t] igt/pm_rpm: Test incomplete(debug) suspends vs rpm Chris Wilson
2018-08-07  8:05 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-08-07  8:54 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2018-08-07 16:58 ` [Intel-gfx] [PATCH i-g-t] " Chris Wilson
2018-08-07 17:48 ` [igt-dev] ✓ Fi.CI.BAT: success for igt/pm_rpm: Test incomplete(debug) suspends vs rpm (rev2) Patchwork
2018-08-07 19:04 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-08-07 19:17   ` Chris Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).