Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f90ff39 authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915: Check signaled state after enabling signaling



Setting up the irq to signal the request completion takes a finite
amount of time, during which it is possible that the request already
completed. Check afterwards, just in case, so that we can respond
immediately.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170608111405.16466-1-chris@chris-wilson.co.uk
parent c4a89526
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -62,7 +62,7 @@ static bool i915_fence_enable_signaling(struct dma_fence *fence)
		return false;
		return false;


	intel_engine_enable_signaling(to_request(fence), true);
	intel_engine_enable_signaling(to_request(fence), true);
	return true;
	return !i915_fence_signaled(fence);
}
}


static signed long i915_fence_wait(struct dma_fence *fence,
static signed long i915_fence_wait(struct dma_fence *fence,