]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit412a71e58d0bc885e8e220531bc3ffee25ef8165
tree58af3450571484899341fd10915b0ce2838c40d7
parent8d0a3d34ad55c0d841ae794b585ec691f6d4a630
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