]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Treat a framebuffer reference as an active reference whilst shrinking
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Oct 2016 12:48:24 +0000 (13:48 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Oct 2016 16:17:20 +0000 (17:17 +0100)
commit3e8ce362f6cf7d484d14b84217cdbbcf48673ef1
tree7d932318702179a3d4f3fc3f2736f59a10e20026
parente3f46391a128e9e82180197d1722dad7f519b654
drm/i915: Treat a framebuffer reference as an active reference whilst shrinking

Treat a framebuffer reference with the same priority as an active
reference whilst shrinking. Framebuffers are likely to be reused and
typically cost more to migrate to and from GPU memory (on LLC
architectures we need to clflush), so defer the temptation to purge them
during a kswapd run until we have run out of cheap buffers.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: John Harrison <john.c.harrison@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161012124824.23521-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_shrinker.c