drm/i915/selftests/blt: add some kthreads into the mix
authorMatthew Auld <matthew.auld@intel.com>
Fri, 25 Oct 2019 17:25:11 +0000 (18:25 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 25 Oct 2019 21:56:12 +0000 (22:56 +0100)
commit0e99f939f08fc36820869e87dee109c5996abff0
tree58af3450571484899341fd10915b0ce2838c40d7
parentdd158d71a08510e9a39fd1fd5e1f8e9d404bcb7f
drm/i915/selftests/blt: add some kthreads into the mix

We can be more aggressive in our testing by launching a number of
kthreads, where each is submitting its own copy or fill batches on a set
of random sized objects. Also since the underlying fill and copy batches
can be pre-empted mid-batch(for particularly large objects), throw in a
random mixture of ctx priorities per thread to make pre-emption a
possibility.

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