]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915/execlists: Enable timeslice on partial virtual engine dequeue
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Mar 2020 11:30:10 +0000 (11:30 +0000)
committerJani Nikula <jani.nikula@intel.com>
Wed, 11 Mar 2020 21:12:39 +0000 (23:12 +0200)
commiteafc2aa20fba319b6e791a1b0c45a91511eccb6b
tree14093676126b8c22b6b83ff565768efc16ca1534
parent1d61c5d711a2dc0b978ae905535edee9601f9449
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 <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: <stable@vger.kernel.org> # v5.4+
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200306113012.3184606-1-chris@chris-wilson.co.uk
(cherry picked from commit 3df2deed411e0f1b7312baf0139aab8bba4c0410)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/gt/intel_lrc.c