]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Make evict tolerant of foreign objects
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Jan 2019 11:36:32 +0000 (11:36 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Jan 2019 12:37:56 +0000 (12:37 +0000)
commit52eec62a3ef3150923e164089c32026a04cf4841
treee7d6667a75c21ab3fc21dd251f0c0564949fd76c
parentf5f81df644f063cac992735211e665b258caa54c
drm/i915/selftests: Make evict tolerant of foreign objects

The evict selftests presumed that all objects in use had been allocated
by itself. This is a dubious claim and so instead of asserting complete
control over the object lists, take (temporary) ownership of them
instead.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190118113632.7056-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_evict.c