OSDN Git Service

drm/i915/execlists: Drop setting sibling priority hint on virtual engines
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 25 Mar 2020 10:13:58 +0000 (10:13 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 25 Mar 2020 10:53:46 +0000 (10:53 +0000)
commit9bf7c31386e511cc9671a252886dcb080bf08579
tree4eabb71ddbbe58c169e8ee9409d3144c6d19605d
parent691f7ba58d5220bbb06392054a6e50abdd393516
drm/i915/execlists: Drop setting sibling priority hint on virtual engines

We set the priority hint on execlists to avoid executing the tasklet for
when we know that there will be no change in execution order. However,
as we set it from the virtual engine for all siblings, but only one
physical engine may respond, we leave the hint set on the others
stopping direct submission that could take place.

If we do not set the hint, we may attempt direct submission even if we
don't expect to submit. If we set the hint, we may not do any submission
until the tasklet is run (and sometimes we may park the engine before
that has had a chance). Ergo there's only a minor ill-effect on mixed
virtual/physical engine workloads where we may try and fail to do direct
submission more often than required. (Pure virtual / engine workloads
will have redundant tasklet execution suppressed as normal.)

Closes: https://gitlab.freedesktop.org/drm/intel/issues/1522
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/20200325101358.12231-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c