drm/i915/evict: watch out for unevictable nodes
authorMatthew Auld <matthew.auld@intel.com>
Wed, 8 Apr 2020 17:04:56 +0000 (18:04 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 8 Apr 2020 20:39:48 +0000 (21:39 +0100)
commit53dd7028dc3901d9c16c9f3b68037263924e958a
treed59d4577c46ea9dfa9e8b38dcf6b36391be5075f
parentfbaa1229d354b05fd8156b1ec1a0c00f084f4324
drm/i915/evict: watch out for unevictable nodes

In an address space there can be sprinkling of I915_COLOR_UNEVICTABLE
nodes, which lack a parent vma. For platforms with cache coloring we
might be very unlucky and abut with such a node thinking we can simply
unbind the vma.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200408170456.399604-1-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_gem_evict.c