]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use NOEVICT for first pass on attemping to pin a GGTT mmap
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 26 Aug 2019 13:07:50 +0000 (14:07 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 27 Aug 2019 09:36:48 +0000 (10:36 +0100)
commit1c1c573ef1e4242b79785d4099f4e25f7250d3b9
tree3a7737117af910c5c571fe95ebb3b4f04470b8b6
parentddebb90ece8b3f3a694c61446c2e66afcff342a5
drm/i915: Use NOEVICT for first pass on attemping to pin a GGTT mmap

The intention is that we first try to pin the current vma into the
mappable aperture only if it is already in use or it fits in the free
space and will not cause contention. The first attempt was meant to be
using PIN_NOEVICT to reuse the current vma if possible, following up
with different eviction strategies.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111485
Fixes: d997adca43db ("drm/i915: Replace PIN_NONFAULT with calls to PIN_NOEVICT")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190826130750.17272-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_mman.c