]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only run execlist context-switch handler after an interrupt
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Jan 2017 15:20:21 +0000 (15:20 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Jan 2017 15:56:01 +0000 (15:56 +0000)
commit4772f3db6f5f6785cc719382d9a6d3ffdded9d0d
treea47114a16bbe107729714893ee08806522d9ce6b
parentf150c68a1c571945a18bb7c59c704bfda990f08f
drm/i915: Only run execlist context-switch handler after an interrupt

Mark when we run the execlist tasklet following the interrupt, so we
don't probe a potentially uninitialised register when submitting the
contexts multiple times before the hardware responds.

v2: Use a shared engine->irq_posted
v3: Always use locked bitops to be sure of atomicity wrt to other bits
in the mask.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170124152021.26587-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.h