]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Make the mman object busy everywhere
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Oct 2019 10:17:04 +0000 (11:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Oct 2019 11:16:42 +0000 (12:16 +0100)
commitabe137941e7bf83e081d63bc0fb301f403138671
treed0c6da5a0f98b3d3e8e113f9ba1c1f0473b6d1e9
parentcd35a0b187139419530b555b46960bb8cd4a8b18
drm/i915/selftests: Make the mman object busy everywhere

Loop over all engines, issuing a request for the object on each in order
to make sure we leave no stone unturned when creating an active ref. The
purpose is to make sure that we can reap a zombie object (one that is
only alive due to an active reference on the GPU) no matter where that
active reference emanates from.

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