From: Daniel Vetter Date: Fri, 14 Feb 2014 13:01:18 +0000 (+0100) Subject: drm/i915: Allow blocking in the PDE alloc when running low on gtt space X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d47c3ea2bd372fb5d84191d8383185825320ad91;p=openwrt%2Fstaging%2Fblogic.git drm/i915: Allow blocking in the PDE alloc when running low on gtt space There's no need not to, really. Split out from Chris vma-bind rework. Cc: Chris Wilson Cc: Ben Widawsky Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c index 1dcd50541ae2..69a88d41a2a7 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c @@ -885,7 +885,7 @@ alloc: if (ret == -ENOSPC && !retried) { ret = i915_gem_evict_something(dev, &dev_priv->gtt.base, GEN6_PD_SIZE, GEN6_PD_ALIGN, - I915_CACHE_NONE, PIN_NONBLOCK); + I915_CACHE_NONE, 0); if (ret) return ret;