]> 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)
commit9bbad0d765efbbc76e47c1a211e7c9b9c51da23f
treee7d6667a75c21ab3fc21dd251f0c0564949fd76c
parent33f1600fdd629e9551aa8cbe0f0b01f64c1ba280
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