]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Skip adding the request to the signal tree is complete
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Jun 2017 11:14:04 +0000 (12:14 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Jun 2017 11:33:08 +0000 (12:33 +0100)
commite479caacb000dbe504d5e0bc30b06380789d71be
treee694c816622ea144f320eb062d8c1c11244b0d12
parent73a919dcf654ef64fa2e339845665a3da0b9417f
drm/i915: Skip adding the request to the signal tree is complete

Enabling the interrupt for the signaler takes a finite amount of time (a
few microseconds) during which it is possible for the request to
complete. Check afterwards and skip adding the request to the signal
rbtree if it complete.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170608111405.16466-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_breadcrumbs.c