]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Check for an already completed timeslice
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Apr 2020 08:16:38 +0000 (09:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Apr 2020 13:15:27 +0000 (14:15 +0100)
commit74dd76429dbe52fd811d46d2e1442f13a201e47e
tree44edb8f49e4d1ba01ead592e723e66cb28cc7c91
parent5d3515508e2d2ac3b076b87fefecf6800c737acc
drm/i915/selftests: Check for an already completed timeslice

With timeslice yielding on a semaphore, we may complete timeslices much
faster than we were expecting and already have yielded the stuck
request. Before complaining that timeslicing is not enabled, check that
we haven't already applied the switch.

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/20200410081638.19893-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c