All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH igt] igt/gem_eio: Test we can suspend when the driver is already wedged
@ 2017-11-29 21:19 Chris Wilson
  2017-11-29 21:38 ` ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chris Wilson @ 2017-11-29 21:19 UTC (permalink / raw)
  To: intel-gfx

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
---
 tests/gem_eio.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/tests/gem_eio.c b/tests/gem_eio.c
index ca0020f1..7a6be393 100644
--- a/tests/gem_eio.c
+++ b/tests/gem_eio.c
@@ -82,6 +82,15 @@ static void wedge_gpu(int fd)
 	igt_assert(i915_reset_control(true));
 }
 
+static void wedgeme(int drm_fd)
+{
+	int dir = igt_debugfs_dir(drm_fd);
+
+	igt_sysfs_set(dir, "i915_wedged", "-1");
+
+	close(dir);
+}
+
 static int __gem_throttle(int fd)
 {
 	int err = 0;
@@ -159,6 +168,18 @@ static void test_wait(int fd)
 	trigger_reset(fd);
 }
 
+static void test_suspend(int fd, int state)
+{
+	/* Check we can suspend when the driver is already wedged */
+	igt_require(i915_reset_control(false));
+	wedgeme(fd);
+
+	igt_system_suspend_autoresume(state, SUSPEND_TEST_DEVICES);
+
+	igt_require(i915_reset_control(true));
+	trigger_reset(fd);
+}
+
 static void test_inflight(int fd)
 {
 	struct drm_i915_gem_execbuffer2 execbuf;
@@ -445,6 +466,12 @@ igt_main
 	igt_subtest("wait")
 		test_wait(fd);
 
+	igt_subtest("suspend")
+		test_suspend(fd, SUSPEND_STATE_MEM);
+
+	igt_subtest("hibernate")
+		test_suspend(fd, SUSPEND_STATE_DISK);
+
 	igt_subtest("in-flight")
 		test_inflight(fd);
 
-- 
2.15.0

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

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

* ✓ Fi.CI.BAT: success for igt/gem_eio: Test we can suspend when the driver is already wedged
  2017-11-29 21:19 [PATCH igt] igt/gem_eio: Test we can suspend when the driver is already wedged Chris Wilson
@ 2017-11-29 21:38 ` Patchwork
  2017-11-29 22:25 ` ✓ Fi.CI.IGT: " Patchwork
  2017-11-30 10:28 ` [PATCH igt] " Chris Wilson
  2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2017-11-29 21:38 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

== Series Details ==

Series: igt/gem_eio: Test we can suspend when the driver is already wedged
URL   : https://patchwork.freedesktop.org/series/34663/
State : success

== Summary ==

IGT patchset tested on top of latest successful build
62b7723e6bed126be4950223593a6fd3395c58a6 tools/intel_watermark: Right justify register names

with latest DRM-Tip kernel build CI_DRM_3411
8f873adc152c drm-tip: 2017y-11m-29d-16h-28m-40s UTC integration manifest

Testlist changes:
+igt@gem_eio@hibernate
+igt@gem_eio@suspend

Test debugfs_test:
        Subgroup read_all_entries:
                dmesg-fail -> DMESG-WARN (fi-elk-e7500)
Test kms_pipe_crc_basic:
        Subgroup suspend-read-crc-pipe-a:
                fail       -> PASS       (fi-hsw-4770)
        Subgroup suspend-read-crc-pipe-b:
                incomplete -> PASS       (fi-snb-2520m) fdo#103713

fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713

fi-bdw-5557u     total:288  pass:267  dwarn:0   dfail:0   fail:0   skip:21  time:448s
fi-bdw-gvtdvm    total:288  pass:264  dwarn:0   dfail:0   fail:0   skip:24  time:444s
fi-blb-e6850     total:288  pass:223  dwarn:1   dfail:0   fail:0   skip:64  time:388s
fi-bsw-n3050     total:288  pass:242  dwarn:0   dfail:0   fail:0   skip:46  time:533s
fi-bwr-2160      total:288  pass:183  dwarn:0   dfail:0   fail:0   skip:105 time:282s
fi-bxt-dsi       total:288  pass:258  dwarn:0   dfail:0   fail:0   skip:30  time:504s
fi-bxt-j4205     total:288  pass:259  dwarn:0   dfail:0   fail:0   skip:29  time:512s
fi-byt-j1900     total:288  pass:253  dwarn:0   dfail:0   fail:0   skip:35  time:495s
fi-byt-n2820     total:288  pass:249  dwarn:0   dfail:0   fail:0   skip:39  time:479s
fi-elk-e7500     total:224  pass:162  dwarn:16  dfail:0   fail:0   skip:45 
fi-gdg-551       total:288  pass:178  dwarn:1   dfail:0   fail:1   skip:108 time:272s
fi-glk-1         total:288  pass:260  dwarn:0   dfail:0   fail:0   skip:28  time:540s
fi-hsw-4770      total:288  pass:261  dwarn:0   dfail:0   fail:0   skip:27  time:372s
fi-hsw-4770r     total:288  pass:224  dwarn:0   dfail:0   fail:0   skip:64  time:268s
fi-ilk-650       total:288  pass:228  dwarn:0   dfail:0   fail:0   skip:60  time:439s
fi-ivb-3520m     total:288  pass:259  dwarn:0   dfail:0   fail:0   skip:29  time:485s
fi-ivb-3770      total:288  pass:259  dwarn:0   dfail:0   fail:0   skip:29  time:452s
fi-kbl-7500u     total:288  pass:263  dwarn:1   dfail:0   fail:0   skip:24  time:488s
fi-kbl-7560u     total:288  pass:269  dwarn:0   dfail:0   fail:0   skip:19  time:528s
fi-kbl-7567u     total:288  pass:268  dwarn:0   dfail:0   fail:0   skip:20  time:478s
fi-kbl-r         total:288  pass:261  dwarn:0   dfail:0   fail:0   skip:27  time:535s
fi-pnv-d510      total:288  pass:222  dwarn:1   dfail:0   fail:0   skip:65  time:593s
fi-skl-6260u     total:288  pass:268  dwarn:0   dfail:0   fail:0   skip:20  time:454s
fi-skl-6600u     total:288  pass:261  dwarn:0   dfail:0   fail:0   skip:27  time:541s
fi-skl-6700hq    total:288  pass:262  dwarn:0   dfail:0   fail:0   skip:26  time:568s
fi-skl-6700k     total:288  pass:264  dwarn:0   dfail:0   fail:0   skip:24  time:523s
fi-skl-6770hq    total:288  pass:268  dwarn:0   dfail:0   fail:0   skip:20  time:498s
fi-skl-gvtdvm    total:288  pass:265  dwarn:0   dfail:0   fail:0   skip:23  time:452s
fi-snb-2520m     total:288  pass:249  dwarn:0   dfail:0   fail:0   skip:39  time:552s
fi-snb-2600      total:288  pass:248  dwarn:0   dfail:0   fail:0   skip:40  time:421s
Blacklisted hosts:
fi-cfl-s2        total:288  pass:262  dwarn:0   dfail:0   fail:0   skip:26  time:609s
fi-glk-dsi       total:288  pass:258  dwarn:0   dfail:0   fail:0   skip:30  time:489s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_571/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* ✓ Fi.CI.IGT: success for igt/gem_eio: Test we can suspend when the driver is already wedged
  2017-11-29 21:19 [PATCH igt] igt/gem_eio: Test we can suspend when the driver is already wedged Chris Wilson
  2017-11-29 21:38 ` ✓ Fi.CI.BAT: success for " Patchwork
@ 2017-11-29 22:25 ` Patchwork
  2017-11-30 10:28 ` [PATCH igt] " Chris Wilson
  2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2017-11-29 22:25 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

== Series Details ==

Series: igt/gem_eio: Test we can suspend when the driver is already wedged
URL   : https://patchwork.freedesktop.org/series/34663/
State : success

== Summary ==

Blacklisted hosts:
shard-apl        total:2663 pass:1683 dwarn:3   dfail:2   fail:26  skip:948 time:13579s
shard-hsw        total:2620 pass:1504 dwarn:2   dfail:2   fail:10  skip:1101 time:9371s
shard-kbl        total:2654 pass:1747 dwarn:51  dfail:3   fail:25  skip:827 time:10751s
shard-snb        total:2663 pass:1305 dwarn:2   dfail:2   fail:12  skip:1342 time:8192s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_571/shards.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH igt] igt/gem_eio: Test we can suspend when the driver is already wedged
  2017-11-29 21:19 [PATCH igt] igt/gem_eio: Test we can suspend when the driver is already wedged Chris Wilson
  2017-11-29 21:38 ` ✓ Fi.CI.BAT: success for " Patchwork
  2017-11-29 22:25 ` ✓ Fi.CI.IGT: " Patchwork
@ 2017-11-30 10:28 ` Chris Wilson
  2 siblings, 0 replies; 4+ messages in thread
From: Chris Wilson @ 2017-11-30 10:28 UTC (permalink / raw)
  To: intel-gfx

Quoting Chris Wilson (2017-11-29 21:19:58)
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
From irc,
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2017-11-30 10:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-29 21:19 [PATCH igt] igt/gem_eio: Test we can suspend when the driver is already wedged Chris Wilson
2017-11-29 21:38 ` ✓ Fi.CI.BAT: success for " Patchwork
2017-11-29 22:25 ` ✓ Fi.CI.IGT: " Patchwork
2017-11-30 10:28 ` [PATCH igt] " Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.