drm/i915: Only reschedule the submission tasklet if preemption is possible
If we couple the scheduler more tightly with the execlists policy, we can apply the preemption policy to the question of whether we need to kick the tasklet at all for this priority bump. v2: Rephrase it as a core i915 policy and not an execlists foible. v3: Pull the kick together. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190507122544.12698-1-chris@chris-wilson.co.uk
This commit is contained in:
@@ -1415,9 +1415,7 @@ long i915_request_wait(struct i915_request *rq,
|
||||
if (flags & I915_WAIT_PRIORITY) {
|
||||
if (!i915_request_started(rq) && INTEL_GEN(rq->i915) >= 6)
|
||||
gen6_rps_boost(rq);
|
||||
local_bh_disable(); /* suspend tasklets for reprioritisation */
|
||||
i915_schedule_bump_priority(rq, I915_PRIORITY_WAIT);
|
||||
local_bh_enable(); /* kick tasklets en masse */
|
||||
}
|
||||
|
||||
wait.tsk = current;
|
||||
|
Reference in New Issue
Block a user