drm/i915: Also reinit the BSD and BLT rings after a GPU reset.
authorEric Anholt <eric@anholt.net>
Thu, 18 Nov 2010 01:31:13 +0000 (09:31 +0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 22 Nov 2010 09:01:55 +0000 (09:01 +0000)
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_drv.c

index f0e6bd06fc0ebc76212e5fe833c9c348341ca5a8..99b574050fde4f3cf6c3cb97bf9687761958cc22 100644 (file)
@@ -472,9 +472,14 @@ int i915_reset(struct drm_device *dev, u8 flags)
         */
        if (drm_core_check_feature(dev, DRIVER_MODESET) ||
                        !dev_priv->mm.suspended) {
-               struct intel_ring_buffer *ring = &dev_priv->render_ring;
                dev_priv->mm.suspended = 0;
-               ring->init(ring);
+
+               dev_priv->render_ring.init(&dev_priv->render_ring);
+               if (HAS_BSD(dev))
+                   dev_priv->bsd_ring.init(&dev_priv->bsd_ring);
+               if (HAS_BLT(dev))
+                   dev_priv->blt_ring.init(&dev_priv->blt_ring);
+
                mutex_unlock(&dev->struct_mutex);
                drm_irq_uninstall(dev);
                drm_irq_install(dev);