]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/i915/chv: CHV doesn't need WaRsForcewakeWaitTC0
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 23 May 2014 15:30:18 +0000 (21:00 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 May 2014 11:41:27 +0000 (13:41 +0200)
Skip __gen6_gt_wait_for_thread_c0() on CHV.

Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_uncore.c

index 81839a6a6bbe6f8ea46a2303904fa23d7db931c8..819c39b61ece65b809091342a60da71ca4822047 100644 (file)
@@ -229,8 +229,8 @@ static void __vlv_force_wake_get(struct drm_i915_private *dev_priv,
        }
 
        /* WaRsForcewakeWaitTC0:vlv */
-       __gen6_gt_wait_for_thread_c0(dev_priv);
-
+       if (!IS_CHERRYVIEW(dev_priv->dev))
+               __gen6_gt_wait_for_thread_c0(dev_priv);
 }
 
 static void __vlv_force_wake_put(struct drm_i915_private *dev_priv,