diff options
author | Matthew Auld <matthew.auld@intel.com> | 2017-03-07 02:54:01 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2017-03-13 18:30:09 +0300 |
commit | aac66bf5f916f645bd57029490a72c3f91f2c274 (patch) | |
tree | ca096e6bb7016f58da1f0ee22cbeeadbc4a72b0a /drivers/gpu/drm/i915/intel_sprite.c | |
parent | 5a8cf90d743f2d05433c6109f6c1b9b904b0cdb7 (diff) | |
download | linux-aac66bf5f916f645bd57029490a72c3f91f2c274.tar.xz |
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: 625d988acc28 ("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>
(cherry picked from commit fe65cbdbc97929e4a522716ed279a36783656142)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_sprite.c')
0 files changed, 0 insertions, 0 deletions