]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: Break i915_spin_request() if we see an interrupt
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Feb 2017 15:13:01 +0000 (15:13 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Feb 2017 15:31:14 +0000 (15:31 +0000)
commitc33ed067d13b7fae9e19ef1a9e302b8fc90c43d8
treee5a36a4e47d87dcfc9db106b1dd5c752a240fdda
parent2246bea6cf773552106d98ab31ba7952c4ddb3f9
drm/i915: Break i915_spin_request() if we see an interrupt

If an interrupt has been posted, and we were spinning on the active
seqno waiting for it to advance but it did not, then we can expect that
it will not see its advance in the immediate future and should call into
the irq-seqno barrier. We can stop spinning at this point, and leave the
difficulty of handling the coherency to the caller.

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