OSDN Git Service

drm/i915/selftests: Drain the freedlists between exec passes
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Jul 2019 16:53:17 +0000 (17:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Jul 2019 21:26:31 +0000 (22:26 +0100)
commit6582f4f613e35225c663fc1194b1a7d1f0af2a2f
tree4bc7f74f2438a063993b12ca48e9f42efad0b26e
parente7539b79f703a6b533385088fc15cb5c9ab3f56f
drm/i915/selftests: Drain the freedlists between exec passes

During the context execution tests, we issue a lot of work and discard a
lot of objects without releasing the lock and allowing the background
reaper to free those objects. Insert a small break between each pass to
flush the worker.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190704165317.21060-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c