aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_gtt.c
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2012-04-26 19:02:58 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-05-03 05:18:20 -0400
commitb2da9fe5d5994a104bbae154590070d698279919 (patch)
tree06ebd3a0f0c0be5ba35265922ca4b67b7488dbf0 /drivers/gpu/drm/i915/i915_gem_gtt.c
parent507432986c15f18c5102b18027e4716fc9e9009e (diff)
drm/i915: remove do_retire from i915_wait_request
This originates from a hack by me to quickly fix a bug in an earlier patch where we needed control over whether or not waiting on a seqno actually did any retire list processing. Since the two operations aren't clearly related, we should pull the parameter out of the wait function, and make the caller responsible for retiring if the action is desired. The only function call site which did not get an explicit retire_request call (on purpose) is i915_gem_inactive_shrink(). That code was already calling retire_request a second time. v2: don't modify any behavior excepit i915_gem_inactive_shrink(Daniel) Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_gtt.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_gtt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 25c8bf9d1d4..29d573c27b3 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -317,7 +317,7 @@ static bool do_idling(struct drm_i915_private *dev_priv)
317 317
318 if (unlikely(dev_priv->mm.gtt->do_idle_maps)) { 318 if (unlikely(dev_priv->mm.gtt->do_idle_maps)) {
319 dev_priv->mm.interruptible = false; 319 dev_priv->mm.interruptible = false;
320 if (i915_gpu_idle(dev_priv->dev, false)) { 320 if (i915_gpu_idle(dev_priv->dev)) {
321 DRM_ERROR("Couldn't idle GPU\n"); 321 DRM_ERROR("Couldn't idle GPU\n");
322 /* Wait a bit, in hopes it avoids the hang */ 322 /* Wait a bit, in hopes it avoids the hang */
323 udelay(10); 323 udelay(10);