]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Bump the inactive tracking for all VMA accessed
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:17:08 +0000 (17:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:36:57 +0000 (22:36 +0100)
commitdc72c35f1215003dcf553864023e5b945d2b5617
treef5eb6e3c88cfbc3b9701b2370fdfc705be4321ee
parentb01fc72840ba011906fc10cd58a1b866711ed0d9
drm/i915: Bump the inactive tracking for all VMA accessed

We track the LRU access for eviction and bump the last access for the
user GGTT on set-to-gtt. When we do so we need to not only bump the
primary GGTT VMA but all partials as well. Similarly we want to
bump the last access tracking for when unpinning an object from the
scanout so that they do not get promptly evicted and hopefully remain
available for reuse on the next frame.

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