]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove self-harming shrink_all on get_pages_gtt fail
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Oct 2016 08:20:20 +0000 (09:20 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Oct 2016 09:15:01 +0000 (10:15 +0100)
commitc94b0897f4b900b2280d6a79fb5bbc45181ca537
treebd825ce5354a3628d78ba6f75146ce401ef782da
parent3a0575ec095fe89040c7dce844e724429843c016
drm/i915: Remove self-harming shrink_all on get_pages_gtt fail

When we notice the system under memory pressure, we try to evict some
driver pages before asking the VM to shrink all caches. As a final step
in that process, we tried to evict everything, including active buffers.
This is harming ourselves, and we can mix shrinking all caches as well
as our residual buffers (after the first pass of trying to shrink just
our own buffers).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161011082021.14606-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c