From: Chris Wilson Date: Mon, 5 Mar 2018 10:41:05 +0000 (+0000) Subject: drm/i915: Assert that the request is indeed complete when signaled from irq X-Git-Tag: v4.19~298^2~46^2~499 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e9a8bef20c973f62358fbd888a38f1bd1669200;p=platform%2Fkernel%2Flinux-rpi3.git drm/i915: Assert that the request is indeed complete when signaled from irq After we call dma_fence_signal(), confirm that the request was indeed complete. Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin Reviewed-by: Tvrtko Ursulin Link: https://patchwork.freedesktop.org/patch/msgid/20180305104105.8296-1-chris@chris-wilson.co.uk --- diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index ce16003..633c187 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c @@ -1123,6 +1123,7 @@ static void notify_ring(struct intel_engine_cs *engine) if (rq) { dma_fence_signal(&rq->fence); + GEM_BUG_ON(!i915_request_completed(rq)); i915_request_put(rq); }