OSDN Git Service

drm/i915/execlists: Pull tasklet interrupt-bh local to direct submission
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 25 Mar 2020 12:02:26 +0000 (12:02 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 25 Mar 2020 13:05:04 +0000 (13:05 +0000)
commit6670b413f8452ec303efcd2f9a6009c8602a297e
treec02290b4cbf328535a5f28ede27d56b1079256db
parent032d992dcbefb1e6a43832fa36c0da11b6b64741
drm/i915/execlists: Pull tasklet interrupt-bh local to direct submission

We dropped calling process_csb prior to handling direct submission in
order to avoid the nesting of spinlocks and lift process_csb() and the
majority of the tasklet out of irq-off. However, we do want to avoid
ksoftirqd latency in the fast path, so try and pull the interrupt-bh
local to direct submission if we can acquire the tasklet's lock.

v2: Document the read of pending[0] from outside the tasklet with
READ_ONCE.

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