]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Wait until we start timeslicing after a submit
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Apr 2020 19:02:09 +0000 (20:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Apr 2020 20:38:27 +0000 (21:38 +0100)
commit1d2d846619d01dab8e64a1c4a83013a58fce9ad3
tree4c98431e930b2bb611b151fc4e08a1513a83495d
parentb485d5d4ad93bf1fe4ee428794d06f957fe0fd0e
drm/i915/selftests: Wait until we start timeslicing after a submit

If we submit, we do not start timeslicing until we process the CS event
that marks the start of the context running on HW. So in the selftest,
be sure to wait until we have processed the pending events before
asserting that timeslicing has begun.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200403190209.21818-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c