]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only GGTT vma may be pinned and prevent shrinking
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 25 May 2017 07:25:28 +0000 (08:25 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 25 May 2017 20:50:08 +0000 (21:50 +0100)
commitb692b090935b244da1cf6dbbc4b9868144d7ff65
tree501eb116a50c5984b12c5ddfe39e85d826d60392
parent8a89aeed8a517a4fe0a129f8b15addbc7d5e010e
drm/i915: Only GGTT vma may be pinned and prevent shrinking

As only GGTT vma may be permanently pinned and are always at the head of
the object's vma list, as soon as we seen a ppGTT vma we can stop
searching for any_vma_pinned().

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