]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Tweak virtual unsubmission
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 13 Oct 2019 20:30:12 +0000 (21:30 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Oct 2019 11:51:17 +0000 (12:51 +0100)
commit8ff20b0af983f0bdaaa40fee4b2e879bc43929f7
tree233e2f80aa057c773739c1ca86ed5ba006463095
parent0ad95cfd155aeb423acf0bfc0755d204b5a73ca0
drm/i915/execlists: Tweak virtual unsubmission

Since commit e73641754b24 ("drm/i915: Prevent bonded requests from
overtaking each other on preemption") we have restricted requests to run
on their chosen engine across preemption events. We can take this
restriction into account to know that we will want to resubmit those
requests onto the same physical engine, and so can shortcircuit the
virtual engine selection process and keep the request on the same
engine during unwind.

References: e73641754b24 ("drm/i915: Prevent bonded requests from overtaking each other on preemption")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Ramlingam C <ramalingam.c@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191013203012.25208-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/i915_request.c