mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-25 23:34:47 +08:00
drm/i915: Tweak scheduler's kick_submission()
Skip useless priority bumping on adding a new dependency by making sure that we do update the priority if we would have rescheduled the active cotnext. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200310115947.6482-1-chris@chris-wilson.co.uk
This commit is contained in:
parent
209df10bb4
commit
6cebcf746f
@ -209,6 +209,8 @@ static void kick_submission(struct intel_engine_cs *engine,
|
|||||||
if (!inflight)
|
if (!inflight)
|
||||||
goto unlock;
|
goto unlock;
|
||||||
|
|
||||||
|
engine->execlists.queue_priority_hint = prio;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we are already the currently executing context, don't
|
* If we are already the currently executing context, don't
|
||||||
* bother evaluating if we should preempt ourselves.
|
* bother evaluating if we should preempt ourselves.
|
||||||
@ -216,7 +218,6 @@ static void kick_submission(struct intel_engine_cs *engine,
|
|||||||
if (inflight->context == rq->context)
|
if (inflight->context == rq->context)
|
||||||
goto unlock;
|
goto unlock;
|
||||||
|
|
||||||
engine->execlists.queue_priority_hint = prio;
|
|
||||||
if (need_preempt(prio, rq_prio(inflight)))
|
if (need_preempt(prio, rq_prio(inflight)))
|
||||||
tasklet_hi_schedule(&engine->execlists.tasklet);
|
tasklet_hi_schedule(&engine->execlists.tasklet);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user