[Intel-gfx] [PATCH 28/50] drm/i915/bdw: Enable execlists in the hardware

oscar.mateo at intel.com oscar.mateo at intel.com
Fri May 9 14:08:58 CEST 2014


From: Ben Widawsky <benjamin.widawsky at intel.com>

Signed-off-by: Ben Widawsky <ben at bwidawsk.net>

v2: Set Replay Mode to 0 per BSpec

Michel Thierry <michel.thierry at intel.com>

v3: Several rebases.

Signed-off-by: Oscar Mateo <oscar.mateo at intel.com>
---
 drivers/gpu/drm/i915/intel_lrc.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
index 0a944c2..a85f91c 100644
--- a/drivers/gpu/drm/i915/intel_lrc.c
+++ b/drivers/gpu/drm/i915/intel_lrc.c
@@ -343,9 +343,17 @@ int gen8_gem_context_init(struct drm_device *dev)
 		goto err_out;
 	}
 
-	for_each_ring(ring, dev_priv, ring_id)
+	for_each_ring(ring, dev_priv, ring_id) {
 		ring->default_context = ctx;
 
+		I915_WRITE(RING_MODE_GEN7(ring),
+			_MASKED_BIT_DISABLE(GFX_REPLAY_MODE) |
+			_MASKED_BIT_ENABLE(GFX_RUN_LIST_ENABLE));
+		POSTING_READ(RING_MODE_GEN7(ring));
+		DRM_DEBUG_DRIVER("Execlists enabled for %s\n",
+				ring->name);
+	}
+
 	DRM_DEBUG_DRIVER("LR context support initialized\n");
 	return 0;
 
-- 
1.9.0




More information about the Intel-gfx mailing list