]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Split the atomic test_and_clear_bit for irq handler
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Mar 2017 11:33:20 +0000 (11:33 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 21 Mar 2017 14:14:55 +0000 (14:14 +0000)
commit83862ab08e23c6e23a8e749cba9459b8e9c0b7bc
tree366786612877abc5581dfec13a8ed18e6f26677e
parent4a5b9f08333015554a0837d5f60ee04bb8b8d464
drm/i915/execlists: Split the atomic test_and_clear_bit for irq handler

Rather than impose the cost of a locked test before queuing a new
request, reduce it to a simple test_bit() with a following clear_bit()
prior to doing the CSB check. This ensure that if an interrupt does
occur whilst reading from the CSB, we still detect it (the interrupt
would trigger a rescheduling of the tasklet anyway).

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