From 645c95400ccfd743a17b4ab90488cea7eb316776 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 11 Dec 2015 21:43:11 +0000 Subject: lib: Remove defunct stop_rings Signed-off-by: Chris Wilson --- lib/drmtest.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'lib/drmtest.c') diff --git a/lib/drmtest.c b/lib/drmtest.c index db65d793..01e874b7 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -129,18 +129,6 @@ static bool is_intel(int fd) return true; } -static void check_stop_rings(void) -{ - enum stop_ring_flags flags; - flags = igt_get_stop_rings(); - igt_warn_on_f(flags != 0, - "i915_ring_stop flags on exit 0x%x, can't quiescent gpu cleanly\n", - flags); - - if (flags) - igt_set_stop_rings(STOP_RING_NONE); -} - #define LOCAL_I915_EXEC_VEBOX (4 << 0) /** * gem_quiescent_gpu: @@ -161,8 +149,6 @@ void gem_quiescent_gpu(int fd) struct drm_i915_gem_exec_object2 obj; unsigned ring; - check_stop_rings(); - memset(&obj, 0, sizeof(obj)); obj.handle = gem_create(fd, 4096); gem_write(fd, obj.handle, 0, &bbe, sizeof(&bbe)); @@ -299,7 +285,6 @@ static void quiescent_gpu_at_exit(int sig) if (at_exit_drm_fd < 0) return; - check_stop_rings(); gem_quiescent_gpu(at_exit_drm_fd); close(at_exit_drm_fd); at_exit_drm_fd = -1; @@ -310,7 +295,6 @@ static void quiescent_gpu_at_exit_render(int sig) if (at_exit_drm_render_fd < 0) return; - check_stop_rings(); gem_quiescent_gpu(at_exit_drm_render_fd); close(at_exit_drm_render_fd); at_exit_drm_render_fd = -1; -- cgit v1.2.3