]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ed065b6ce8dd4415c6f7730a0ee5addd07c1923
treea471123b309fbf3642418faff5ae72ce18198fbc
parent3ed3ea0b7f9dd9192a33f6763f56b1ebc8243722
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