aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-03-01 07:35:39 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-03-03 15:08:19 -0500
commitebd37ce1f74e1b735dc094334ad99d17ec66926b (patch)
tree73a94d1a18813eca8432394ec1d47401f551eb20 /drivers/gpu/drm
parent30771e1652391e7fabef9f276e1579b8ecd76955 (diff)
drm/i915: Single thread force wake isn't used on HSW anymore
Kill the HSW check from the single thread force wake code. HSW uses MT force wake exclusively these days. The commit that removed HSW single thread forcewake support: commit 36ec8f877481449bdfa072e6adf2060869e2b970 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Thu Oct 18 14:44:35 2012 +0200 drm/i915: unconditionally use mt forcewake on hsw/ivb Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/intel_pm.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 2d4ec08383dd..5479363083c6 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -4271,21 +4271,14 @@ static void __gen6_gt_force_wake_reset(struct drm_i915_private *dev_priv)
4271 4271
4272static void __gen6_gt_force_wake_get(struct drm_i915_private *dev_priv) 4272static void __gen6_gt_force_wake_get(struct drm_i915_private *dev_priv)
4273{ 4273{
4274 u32 forcewake_ack; 4274 if (wait_for_atomic((I915_READ_NOTRACE(FORCEWAKE_ACK) & 1) == 0,
4275
4276 if (IS_HASWELL(dev_priv->dev))
4277 forcewake_ack = FORCEWAKE_ACK_HSW;
4278 else
4279 forcewake_ack = FORCEWAKE_ACK;
4280
4281 if (wait_for_atomic((I915_READ_NOTRACE(forcewake_ack) & 1) == 0,
4282 FORCEWAKE_ACK_TIMEOUT_MS)) 4275 FORCEWAKE_ACK_TIMEOUT_MS))
4283 DRM_ERROR("Timed out waiting for forcewake old ack to clear.\n"); 4276 DRM_ERROR("Timed out waiting for forcewake old ack to clear.\n");
4284 4277
4285 I915_WRITE_NOTRACE(FORCEWAKE, 1); 4278 I915_WRITE_NOTRACE(FORCEWAKE, 1);
4286 POSTING_READ(ECOBUS); /* something from same cacheline, but !FORCEWAKE */ 4279 POSTING_READ(ECOBUS); /* something from same cacheline, but !FORCEWAKE */
4287 4280
4288 if (wait_for_atomic((I915_READ_NOTRACE(forcewake_ack) & 1), 4281 if (wait_for_atomic((I915_READ_NOTRACE(FORCEWAKE_ACK) & 1),
4289 FORCEWAKE_ACK_TIMEOUT_MS)) 4282 FORCEWAKE_ACK_TIMEOUT_MS))
4290 DRM_ERROR("Timed out waiting for forcewake to ack request.\n"); 4283 DRM_ERROR("Timed out waiting for forcewake to ack request.\n");
4291 4284