]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Flush submission tasklet after bumping priority
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 May 2018 13:57:25 +0000 (14:57 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 May 2018 13:58:48 +0000 (14:58 +0100)
commita6fff5c0fbe0f1b92a6b009df7454b689b9febd1
treee509da31fef92988538ae128f0fbfd8d2c92c7a8
parent765dcca8250b36fe2a12d60bf7b719853e90bd60
drm/i915: Flush submission tasklet after bumping priority

When called from process context tasklet_schedule() defers itself to
ksoftirqd. From experience this may cause unacceptable latencies of over
200ms in executing the submission tasklet, our goal is to reprioritise
the HW execution queue and trigger HW preemption immediately, so disable
bh over the call to schedule and force the tasklet to run afterwards if
scheduled.

v2: Keep rcu_read_lock() around for PREEMPT_RCU

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>
Link: https://patchwork.freedesktop.org/patch/msgid/20180507135731.10587-1-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_gem.c