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)
commit383d5823e938129fe10c76e0032a22734849049c
treef5eb6e3c88cfbc3b9701b2370fdfc705be4321ee
parentd8923dcfa53d59886d432a3fc430e26cb92ce86a
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