]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Small tweak to put the termination conditions together
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 20 Nov 2020 14:03:14 +0000 (14:03 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 20 Nov 2020 16:25:23 +0000 (16:25 +0000)
commit8da5e2e96fcd5d7f3a33c9eaf4e47f194337b2c8
treef151fcef814634262a703097032d86935a3b2105
parent252c3f15798963d1dc94d3f28276d4cd83b6beab
drm/i915/selftests: Small tweak to put the termination conditions together

If we run out of ring space, or exceed the desired runtime, we wish to
stop the subtest. Put these checks together, so that we always keep the
requests flushed on completion.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201120140314.24749-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_timeline.c