]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit735e0eb669a6bb4f6f7b9574d55b451c838747bd
treee694c816622ea144f320eb062d8c1c11244b0d12
parentbac2ef4b470b08e3748784eb8e84e00d3b121c20
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