Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH igt] tests/gem_eio: use lib to force a gpu reset
@ 2018-03-16 10:19 Mika Kuoppala
  2018-03-16 10:25 ` Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mika Kuoppala @ 2018-03-16 10:19 UTC (permalink / raw)
  To: intel-gfx

From: Mika Kuoppala <mika.kuoppala@intel.com>

Instead of poking the debugfs directly, use a library
function to force a gpu reset.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
---
 tests/gem_eio.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/tests/gem_eio.c b/tests/gem_eio.c
index 249f5bff..1aa5d60a 100644
--- a/tests/gem_eio.c
+++ b/tests/gem_eio.c
@@ -84,15 +84,6 @@ 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;
@@ -181,7 +172,7 @@ 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_force_gpu_reset(fd);
 
 	igt_system_suspend_autoresume(state, SUSPEND_TEST_DEVICES);
 
-- 
2.14.1

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

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

end of thread, other threads:[~2018-03-16 13:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-16 10:19 [PATCH igt] tests/gem_eio: use lib to force a gpu reset Mika Kuoppala
2018-03-16 10:25 ` Chris Wilson
2018-03-16 10:30   ` Mika Kuoppala
2018-03-16 12:02 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-03-16 13:39 ` ✗ Fi.CI.IGT: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox