aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-04-11 14:42:42 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-04-17 05:20:06 -0400
commit009be664ecc77d58d3c27fb22347b969745a329a (patch)
treee1f16b8b8aaae6f96dca8c89663ef68a184bf34a
parentbf97b276ca04cee9ab65ffd378fa8e6aedd71ff6 (diff)
drm/i915: set stc evict disable lra evict w/a
Our workaround list kindly lists that this new default value needs to be updated in Bspec. Naturally, this did not happen. Acked-by: Ben Widawsky <ben@bwidawsk.net> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/i915_reg.h1
-rw-r--r--drivers/gpu/drm/i915/intel_display.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 6d9205436121..02124a51edad 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -639,6 +639,7 @@
639#define CM0_MASK_SHIFT 16 639#define CM0_MASK_SHIFT 16
640#define CM0_IZ_OPT_DISABLE (1<<6) 640#define CM0_IZ_OPT_DISABLE (1<<6)
641#define CM0_ZR_OPT_DISABLE (1<<5) 641#define CM0_ZR_OPT_DISABLE (1<<5)
642#define CM0_STC_EVICT_DISABLE_LRA_SNB (1<<5)
642#define CM0_DEPTH_EVICT_DISABLE (1<<4) 643#define CM0_DEPTH_EVICT_DISABLE (1<<4)
643#define CM0_COLOR_EVICT_DISABLE (1<<3) 644#define CM0_COLOR_EVICT_DISABLE (1<<3)
644#define CM0_DEPTH_WRITE_DISABLE (1<<1) 645#define CM0_DEPTH_WRITE_DISABLE (1<<1)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 1a6bb6101491..7506a72ee882 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -8878,6 +8878,10 @@ static void gen6_init_clock_gating(struct drm_device *dev)
8878 I915_WRITE(WM2_LP_ILK, 0); 8878 I915_WRITE(WM2_LP_ILK, 0);
8879 I915_WRITE(WM1_LP_ILK, 0); 8879 I915_WRITE(WM1_LP_ILK, 0);
8880 8880
8881 /* clear masked bit */
8882 I915_WRITE(CACHE_MODE_0,
8883 CM0_STC_EVICT_DISABLE_LRA_SNB << CM0_MASK_SHIFT);
8884
8881 I915_WRITE(GEN6_UCGCTL1, 8885 I915_WRITE(GEN6_UCGCTL1,
8882 I915_READ(GEN6_UCGCTL1) | 8886 I915_READ(GEN6_UCGCTL1) |
8883 GEN6_BLBUNIT_CLOCK_GATE_DISABLE | 8887 GEN6_BLBUNIT_CLOCK_GATE_DISABLE |