]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix test on inputs for vma_compare()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 3 Nov 2016 20:08:52 +0000 (20:08 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 3 Nov 2016 21:00:43 +0000 (21:00 +0000)
commita8dfcc1fefd113c5a7d3711aec381ac9db558763
tree9634984047d973747f80c7f7ac742a7425b72c82
parent94a5d1919b3785e2ae4d8f5e0d6c7f4868ab19e5
drm/i915: Fix test on inputs for vma_compare()

When supplying a view to vma_compare() it is required that the supplied
i915_address_space is the global GTT. I tested the VMA instead (which is
the current position in the rbtree and maybe from any address space).

Reported-by: Matthew Auld <matthew.auld@intel.com>
Tested-by: Matthew Auld <matthew.auld@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98579
Fixes: 38e0522aa265 ("drm/i915: Store the vma in an rbtree...")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161103200852.23431-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/i915_gem_gtt.c