]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Check PIN_NONFAULT overlaps in evict_for_node
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Oct 2017 08:43:58 +0000 (09:43 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Oct 2017 16:07:29 +0000 (17:07 +0100)
commit9fbe138bd09492165780f89efde205d5bd719a64
tree9f91c286060d493e1725d4fb0e40c1562f953a54
parentf4d21e938274e3736cbefbc8dfad43a132d8c2c5
drm/i915: Check PIN_NONFAULT overlaps in evict_for_node

If the caller says that he doesn't want to evict any other faulting
vma, honour that flag. The logic was used in evict_something, but not
the more specific evict_for_node, now being used as a preliminary probe
since commit f0ef8581adef ("drm/i915: Prefer random replacement before
eviction search").

Fixes: f0ef8581adef ("drm/i915: Prefer random replacement before eviction search")
Fixes: 0d87dff57d3d ("drm/i915: Choose not to evict faultable objects from the GGTT")
References: https://bugs.freedesktop.org/show_bug.cgi?id=102490
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171009084401.29090-4-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem_evict.c