From: Chia-I Wu Date: Tue, 28 Jan 2014 05:29:34 +0000 (+0800) Subject: drm/i915: enable HiZ Raw Stall Optimization on IVB X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=116f2b6da868dec7539103574d0421cd6221e931;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm/i915: enable HiZ Raw Stall Optimization on IVB The optimization helps IVB too. No piglit regression. Signed-off-by: Chia-I Wu Reviewed-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 1a1eec64ecfb..3c79b6342883 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -4866,6 +4866,10 @@ static void ivybridge_init_clock_gating(struct drm_device *dev) gen7_setup_fixed_func_scheduler(dev_priv); + /* enable HiZ Raw Stall Optimization */ + I915_WRITE(CACHE_MODE_0_GEN7, + _MASKED_BIT_DISABLE(HIZ_RAW_STALL_OPT_DISABLE)); + /* WaDisable4x2SubspanOptimization:ivb */ I915_WRITE(CACHE_MODE_1, _MASKED_BIT_ENABLE(PIXEL_SUBSPAN_COLLECT_OPT_DISABLE));