]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Avoid kicking the submission too early for rescheduling
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 26 Mar 2018 11:50:34 +0000 (12:50 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 27 Mar 2018 13:31:06 +0000 (14:31 +0100)
commit3c0543f0a66234f0e16dcd2ebf5e057d62368290
tree3eb948f3e7c182df6c14ff83fdec1f36c43bc56a
parent5634cc9d51327e40fc347304ee63d78d0a3a2352
drm/i915/execlists: Avoid kicking the submission too early for rescheduling

If the request is still waiting on external fences, it has not yet been
submitted to the HW queue and so we can forgo kicking the submission
tasklet when re-evaluating its priority.

This should have no impact other than reducing the number of tasklet
wakeups under signal heavy workloads (e.g. switching between engines).

v2: Use prebaked container_of()

References: 07d069ea0d12 ("drm/i915/preemption: Allow preemption between submission ports")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: MichaƂ Winiarski <michal.winiarski@intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180326115044.2505-2-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
drivers/gpu/drm/i915/intel_lrc.c