|
@@ -5196,6 +5196,14 @@ i915_gem_cleanup_ringbuffer(struct drm_device *dev)
|
|
|
|
|
|
for_each_ring(ring, dev_priv, i)
|
|
for_each_ring(ring, dev_priv, i)
|
|
dev_priv->gt.cleanup_ring(ring);
|
|
dev_priv->gt.cleanup_ring(ring);
|
|
|
|
+
|
|
|
|
+ if (i915.enable_execlists)
|
|
|
|
+ /*
|
|
|
|
+ * Neither the BIOS, ourselves or any other kernel
|
|
|
|
+ * expects the system to be in execlists mode on startup,
|
|
|
|
+ * so we need to reset the GPU back to legacy mode.
|
|
|
|
+ */
|
|
|
|
+ intel_gpu_reset(dev);
|
|
}
|
|
}
|
|
|
|
|
|
static void
|
|
static void
|