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)
commit71fc448c1aaf896f7859c46a7c0c33fbac411455
treee7d6667a75c21ab3fc21dd251f0c0564949fd76c
parent293f8c0f2bb4409705e4cbc7bc1b660c024e9be9
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