]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: use correct node for handling cache domain eviction
authorMatthew Auld <matthew.auld@intel.com>
Mon, 6 Mar 2017 23:54:01 +0000 (23:54 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Mar 2017 08:42:35 +0000 (08:42 +0000)
commitad37bdfc87781d9e69d5de4fbafc2f8f39540ebe
treee7e1f16fc7db5c9290fbc1709f20d3b185f3a5ab
parentd2de57f62bc182489b3cfb43c52006f968bfff1b
drm/i915: use correct node for handling cache domain eviction

It looks like we were incorrectly comparing vma->node against itself
instead of the target node, when evicting for a node on systems where we
need guard pages between regions with different cache domains. As a
consequence we can end up trying to needlessly evict neighbouring nodes,
even if they have the same cache domain, and if they were pinned we
would fail the eviction.

Fixes: 20a16661eb0f ("drm/i915: Extract reserving space in the GTT to a helper")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170306235414.23407-3-matthew.auld@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_evict.c