drm/i915/chv: Combine GEN8_ROW_CHICKEN w/a
authorArun Siluvery <arun.siluvery@linux.intel.com>
Tue, 28 Oct 2014 18:33:13 +0000 (18:33 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Nov 2014 09:29:14 +0000 (10:29 +0100)
WaDisablePartialInstShootdown:chv and
WaDisableThreadStallDopClockGating:chv are related to the same
register so combine them.

Signed-off-by: Arun Siluvery <arun.siluvery@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c

index 70fcf2aa0ca25cf8e8e67adfeaaa44c3b97b140f..1df79a952291ad8f5eb8ea27b9a9ea3927f25c23 100644 (file)
@@ -788,12 +788,10 @@ static int chv_init_workarounds(struct intel_engine_cs *ring)
        struct drm_i915_private *dev_priv = dev->dev_private;
 
        /* WaDisablePartialInstShootdown:chv */
-       WA_SET_BIT_MASKED(GEN8_ROW_CHICKEN,
-                 PARTIAL_INSTRUCTION_SHOOTDOWN_DISABLE);
-
        /* WaDisableThreadStallDopClockGating:chv */
        WA_SET_BIT_MASKED(GEN8_ROW_CHICKEN,
-                 STALL_DOP_GATING_DISABLE);
+                         PARTIAL_INSTRUCTION_SHOOTDOWN_DISABLE |
+                         STALL_DOP_GATING_DISABLE);
 
        return 0;
 }