drm/i915: Use ilk_init_lp_watermarks() on BDW
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 19 May 2015 17:32:55 +0000 (20:32 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 22 May 2015 06:07:39 +0000 (08:07 +0200)
We're not using ilk_init_lp_watermarks() on BDW for some reason.
Probably due to the BDW patches and the relevant WM patches landing
roughlly at the same time. Fix it up.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c

index 6414b27692d43a77984585b0c867cf6267b53f87..cfc748086088548f4ce66d4df0ccc947a1148173 100644 (file)
@@ -6175,9 +6175,7 @@ static void broadwell_init_clock_gating(struct drm_device *dev)
        struct drm_i915_private *dev_priv = dev->dev_private;
        enum pipe pipe;
 
-       I915_WRITE(WM3_LP_ILK, 0);
-       I915_WRITE(WM2_LP_ILK, 0);
-       I915_WRITE(WM1_LP_ILK, 0);
+       ilk_init_lp_watermarks(dev);
 
        /* WaSwitchSolVfFArbitrationPriority:bdw */
        I915_WRITE(GAM_ECOCHK, I915_READ(GAM_ECOCHK) | HSW_ECOCHK_ARB_PRIO_SOL);