summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/selftests/mock_engine.c
diff options
context:
space:
mode:
authorChris Wilson2017-03-21 12:33:20 +0100
committerChris Wilson2017-03-21 15:14:55 +0100
commit899f6204c0f8117d33226e586d3a630b3cf9bce0 (patch)
tree366786612877abc5581dfec13a8ed18e6f26677e /drivers/gpu/drm/i915/selftests/mock_engine.c
parentdrm/i915: split out check for noncontiguous pfn range (diff)
downloadkernel-qcow2-linux-899f6204c0f8117d33226e586d3a630b3cf9bce0.tar.gz
kernel-qcow2-linux-899f6204c0f8117d33226e586d3a630b3cf9bce0.tar.xz
kernel-qcow2-linux-899f6204c0f8117d33226e586d3a630b3cf9bce0.zip
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>
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/mock_engine.c')
0 files changed, 0 insertions, 0 deletions