drm/i915/selftests: Add request throughput measurement to perf
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 22 Apr 2020 07:42:03 +0000 (08:42 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Apr 2020 15:40:30 +0000 (16:40 +0100)
commitcbfd3a0c5a558bff441d39535ed5cafc862ce38a
tree8532090580f25971bafbe538eb7f62c5676a7f9c
parentb97f77baa845e779341150881bdc12971da18e52
drm/i915/selftests: Add request throughput measurement to perf

Under ideal circumstances, the driver should be able to keep the GPU
fully saturated with work. Measure how close to ideal we get under the
harshest of conditions with no user payload.

v2: Also measure throughput using only one thread.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200422074203.9799-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_perf_selftests.h
drivers/gpu/drm/i915/selftests/i915_request.c