OSDN Git Service

drm/i915: Don't set queue_priority_hint if we don't kick the submission
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Oct 2019 08:02:11 +0000 (09:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Oct 2019 10:04:24 +0000 (11:04 +0100)
commit13ed13a4dcbf0b664acbf9e6f98ec7851cc59862
treea471123b309fbf3642418faff5ae72ce18198fbc
parentce53908bba6fa6e905d8fe81da4591d3e7a65878
drm/i915: Don't set queue_priority_hint if we don't kick the submission

If we change the priority of the active context, then it has no impact
on the decision of whether to preempt the active context -- we don't
preempt the context with itself. In this situation, we elide the tasklet
rescheduling and should *not* be marking up the queue_priority_hint as
that may mask a later submission where we decide we don't have to kick
the tasklet as a higher priority submission is pending (spoiler alert,
it was not).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191021080226.537-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_scheduler.c