drm/i915/execlists: Enable timeslice on partial virtual engine dequeue
If we stop filling the ELSP due to an incompatible virtual engine
request, check if we should enable the timeslice on behalf of the queue.
This fixes the case where we are inspecting the last->next element when
we know that the last element is the last request in the execution queue,
and so decided we did not need to enable timeslicing despite the intent
to do so!
Fixes: 8ee36e048c98 ("drm/i915/execlists: Minimalistic timeslicing")
Signed-off-by: Chris Wilson <firstname.lastname@example.org>
Cc: Mika Kuoppala <email@example.com>
Cc: Tvrtko Ursulin <firstname.lastname@example.org>
Cc: <email@example.com> # v5.4+
Reviewed-by: Mika Kuoppala <firstname.lastname@example.org>
(cherry picked from commit 3df2deed411e0f1b7312baf0139aab8bba4c0410)
Signed-off-by: Jani Nikula <email@example.com>
1 file changed