]> 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)
commit9180838df2c20ae196e42dfcb99cbfdd1fa59933
treef5eb6e3c88cfbc3b9701b2370fdfc705be4321ee
parentcd542f56c7c807fd6c35cdfcb0d2aaf8218ebdf2
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