]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Break after walking all GGTT vma in bump_inactive_ggtt
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 23 Dec 2016 14:57:55 +0000 (14:57 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 23 Dec 2016 16:06:56 +0000 (16:06 +0000)
commit26759147c377aafc3f6e74e8ede4a44c2c745ac9
tree69a3bb12d7ce8187102ffee885cfca05aa47d342
parentd4c2c97b83b992026c36b4c12379c628183fe96f
drm/i915: Break after walking all GGTT vma in bump_inactive_ggtt

Since commit 38e0522aa265 ("drm/i915: Store the vma in an rbtree under
the object") the vma are once again sorted into GGTT first, then ppGTT
so that the typical case of walking the GGTT vma can stop as soon as we
find a non-ppGTT. Apply that optimisation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161223145804.6605-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c