summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem_evict.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-03-30 15:50:38 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2017-03-31 12:03:46 +0100
commit72022a705e1da854653e56b67bef57b72f1392eb (patch)
tree6c7462bfd785b3da27df12070a54fa6b39c8f9ca /drivers/gpu/drm/i915/i915_gem_evict.c
parentb57f7f7d31c0ffef5faabd4bf68b8d2577da389a (diff)
downloadop-kernel-dev-72022a705e1da854653e56b67bef57b72f1392eb.zip
op-kernel-dev-72022a705e1da854653e56b67bef57b72f1392eb.tar.gz
drm/i915: Move retire-requests into i915_gem_wait_for_idle()
As we now distinguish everywhere that can call i915_gem_retire_requests() following a successful wait_for_idle, we can remove the duplication by moving that call into i915_gem_wait_for_idle() itself. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: http://patchwork.freedesktop.org/patch/msgid/20170330145041.9005-3-chris@chris-wilson.co.uk Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_evict.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_evict.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_evict.c b/drivers/gpu/drm/i915/i915_gem_evict.c
index 2da3a94..51e365f 100644
--- a/drivers/gpu/drm/i915/i915_gem_evict.c
+++ b/drivers/gpu/drm/i915/i915_gem_evict.c
@@ -196,7 +196,6 @@ search_again:
if (ret)
return ret;
- i915_gem_retire_requests(dev_priv);
goto search_again;
found:
@@ -383,7 +382,6 @@ int i915_gem_evict_vm(struct i915_address_space *vm, bool do_idle)
if (ret)
return ret;
- i915_gem_retire_requests(dev_priv);
WARN_ON(!list_empty(&vm->active_list));
}
OpenPOWER on IntegriCloud