]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Choose not to evict faultable objects from the GGTT
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:17:05 +0000 (17:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:36:55 +0000 (22:36 +0100)
commit0d87dff57d3dd29df14adcd1a590f940f4652fc1
treec6d02cc2a6d963301c374c760885f31068119b88
parent78ebae05505228622cdcd038ea201e9d04dc4b2f
drm/i915: Choose not to evict faultable objects from the GGTT

Often times we do not want to evict mapped objects from the GGTT as
these are quite expensive to teardown and frequently reused (causing an
equally, if not more so, expensive setup). In particular, when faulting
in a new object we want to avoid evicting an active object, or else we
may trigger a page-fault-of-doom as we ping-pong between evicting two
objects.

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-26-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_evict.c
drivers/gpu/drm/i915/i915_gem_gtt.h