[Intel-gfx] [PATCH 5/6] drm/i915: Also reinit the BSD and BLT rings after a GPU reset.
Eric Anholt
eric at anholt.net
Thu Nov 18 02:31:13 CET 2010
Signed-off-by: Eric Anholt <eric at anholt.net>
---
drivers/gpu/drm/i915/i915_drv.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index 57e892d..af2de29 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -471,9 +471,12 @@ 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);
--
1.7.2.3
More information about the Intel-gfx
mailing list