mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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
This commit is contained in:
parent
538c329f7f
commit
c1b5ea926d
1 changed files with 1 additions and 0 deletions
|
@ -1252,6 +1252,7 @@ static int live_timeslice_queue(void *arg)
|
|||
} while (READ_ONCE(engine->execlists.pending[0]));
|
||||
|
||||
if (!READ_ONCE(engine->execlists.timer.expires) &&
|
||||
execlists_active(&engine->execlists) == rq &&
|
||||
!i915_request_completed(rq)) {
|
||||
struct drm_printer p =
|
||||
drm_info_printer(gt->i915->drm.dev);
|
||||
|
|
Loading…
Add table
Reference in a new issue