]> asedeno.scripts.mit.edu Git - linux.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)
commitf747026c2b350fdb3c2d6fad51b7ebed4851183e
treea47114a16bbe107729714893ee08806522d9ce6b
parent538b257dae83268cc3536fb4c4ab4f57901d449d
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