[Intel-gfx] [PATCH 2/2] drm/i915: Finish pending tasks before doing a reset

Chris Wilson chris at chris-wilson.co.uk
Mon Jul 23 21:09:34 CEST 2012


Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/i915_drv.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 3d34b54..269ba83 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -731,6 +731,8 @@ int i915_reset(struct drm_device *dev)
 	if (!i915_try_reset)
 		return 0;
 
+	intel_modeset_quiesce(dev); /* finish off any pending tasks first */
+
 	mutex_lock(&dev->struct_mutex);
 
 	i915_gem_reset(dev);
-- 
1.7.10.4




More information about the Intel-gfx mailing list