|
@@ -3384,6 +3384,7 @@ static void ivybridge_init_clock_gating(struct drm_device *dev)
|
|
|
struct drm_i915_private *dev_priv = dev->dev_private;
|
|
|
int pipe;
|
|
|
uint32_t dspclk_gate = VRHUNIT_CLOCK_GATE_DISABLE;
|
|
|
+ uint32_t snpcr;
|
|
|
|
|
|
I915_WRITE(PCH_DSPCLK_GATE_D, dspclk_gate);
|
|
|
|
|
@@ -3429,6 +3430,11 @@ static void ivybridge_init_clock_gating(struct drm_device *dev)
|
|
|
/* WaDisable4x2SubspanOptimization */
|
|
|
I915_WRITE(CACHE_MODE_1,
|
|
|
_MASKED_BIT_ENABLE(PIXEL_SUBSPAN_COLLECT_OPT_DISABLE));
|
|
|
+
|
|
|
+ snpcr = I915_READ(GEN6_MBCUNIT_SNPCR);
|
|
|
+ snpcr &= ~GEN6_MBC_SNPCR_MASK;
|
|
|
+ snpcr |= GEN6_MBC_SNPCR_MED;
|
|
|
+ I915_WRITE(GEN6_MBCUNIT_SNPCR, snpcr);
|
|
|
}
|
|
|
|
|
|
static void valleyview_init_clock_gating(struct drm_device *dev)
|