From: Chris Wilson Date: Thu, 28 May 2020 20:57:27 +0000 (+0100) Subject: drm/i915/gt: Start timeslice on partial submission X-Git-Tag: v5.15~3115^2~24^2~137 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2010b7f0a8521fa7463056c8f077277a33a45c5f;p=platform%2Fkernel%2Flinux-starfive.git drm/i915/gt: Start timeslice on partial submission We may choose to only submit ELSP[0], even though we have sufficient requests to fill the whole ELSP. Normally, we only start timeslicing if we fill more than one port, but in this case we need to start timeslicing for the queue that we choose not to submit. Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin Reviewed-by: Mika Kuoppala Link: https://patchwork.freedesktop.org/patch/msgid/20200528205727.20309-1-chris@chris-wilson.co.uk --- diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i915/gt/intel_lrc.c index 69fff36..6fc0966 100644 --- a/drivers/gpu/drm/i915/gt/intel_lrc.c +++ b/drivers/gpu/drm/i915/gt/intel_lrc.c @@ -2358,8 +2358,10 @@ static void execlists_dequeue(struct intel_engine_cs *engine) if (last->context == rq->context) goto done; - if (i915_request_has_sentinel(last)) + if (i915_request_has_sentinel(last)) { + start_timeslice(engine, rq_prio(rq)); goto done; + } /* * If GVT overrides us we only ever submit