Skip to contentSkip to conversation

drm/i915/contexts: Always use arbitration reset workaround

PATCH New Ben Widawsky 1 participant 1 message Aug 22, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915/contexts: Always use arbitration reset workaround

VLV needs it, HSW needs it, and it shouldn't hurt on SNB.

---
 drivers/gpu/drm/i915/i915_gem_context.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)
drivers/gpu/drm/i915/i915_gem_context.c +3 -8
index 5c2d354..f12ef29 100644
@@ -337,10 +337,8 @@ mi_set_context(struct intel_ring_buffer *ring,
 	if (ret)
 		return ret;
 
-	if (IS_GEN7(ring->dev))
-		intel_ring_emit(ring, MI_ARB_ON_OFF | MI_ARB_DISABLE);
-	else
-		intel_ring_emit(ring, MI_NOOP);
+	/* w/a */
+	intel_ring_emit(ring, MI_ARB_ON_OFF | MI_ARB_DISABLE);
 
 	intel_ring_emit(ring, MI_NOOP);
 	intel_ring_emit(ring, MI_SET_CONTEXT);
@@ -352,10 +350,7 @@ mi_set_context(struct intel_ring_buffer *ring,
 	/* w/a: MI_SET_CONTEXT must always be followed by MI_NOOP */
 	intel_ring_emit(ring, MI_NOOP);
 
-	if (IS_GEN7(ring->dev))
-		intel_ring_emit(ring, MI_ARB_ON_OFF | MI_ARB_ENABLE);
-	else
-		intel_ring_emit(ring, MI_NOOP);
+	intel_ring_emit(ring, MI_ARB_ON_OFF | MI_ARB_ENABLE);
 
 	intel_ring_advance(ring);
 
Signature · 1 line
1.7.11.5