]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/i915/bdw: Disable idle DOP clock gating
authorBen Widawsky <benjamin.widawsky@intel.com>
Fri, 18 Apr 2014 21:04:29 +0000 (18:04 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Apr 2014 08:06:19 +0000 (10:06 +0200)
It seems we need this at least for the current platforms we have, but
probably not later. In any event, it should cause too much harm as we do
the same thing on several other platforms.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Reviewed-by: Brad Volkin <bradley.d.volkin@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c

index 0b337622aeb5ee73e587e05dda8d3e1c997b8be8..94d3d92ff21478201e5bee83e50ac8d68c985888 100644 (file)
@@ -4978,6 +4978,10 @@ static void gen8_init_clock_gating(struct drm_device *dev)
        I915_WRITE(GEN7_HALF_SLICE_CHICKEN1,
                   _MASKED_BIT_ENABLE(GEN7_SINGLE_SUBSCAN_DISPATCH_ENABLE));
 
+       /* WaDisableDopClockGating:bdw May not be needed for production */
+       I915_WRITE(GEN7_ROW_CHICKEN2,
+                  _MASKED_BIT_ENABLE(DOP_CLOCK_GATING_DISABLE));
+
        /* WaSwitchSolVfFArbitrationPriority:bdw */
        I915_WRITE(GAM_ECOCHK, I915_READ(GAM_ECOCHK) | HSW_ECOCHK_ARB_PRIO_SOL);