From: Ben Widawsky <benjamin.widawsky@xxxxxxxxx> Signed-off-by: Ben Widawsky <ben@xxxxxxxxxxxx> v2: Set Replay Mode to 0 per BSpec Michel Thierry <michel.thierry@xxxxxxxxx> v3: Several rebases. Signed-off-by: Oscar Mateo <oscar.mateo@xxxxxxxxx> --- 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 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx