[Intel-gfx] [PATCH 4/4] drm/i915: Stop rings before cleaning up on reset

Mika Kuoppala mika.kuoppala at linux.intel.com
Tue Mar 17 09:18:37 PDT 2015


We want to ensure that the hardware is stopped before
we analyse and cleanup the request queue.

Signed-off-by: Mika Kuoppala <mika.kuoppala at intel.com>
---
 drivers/gpu/drm/i915/i915_gem.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 5636351..051642c 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -2752,6 +2752,8 @@ void i915_gem_reset(struct drm_device *dev)
 	struct intel_engine_cs *ring;
 	int i;
 
+	i915_gem_stop_ringbuffers(dev);
+
 	/*
 	 * Before we free the objects from the requests, we need to inspect
 	 * them for finding the guilty party. As the requests only borrow
-- 
1.9.1



More information about the Intel-gfx mailing list