]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/i915: Assert that the request is indeed complete when signaled from irq
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 5 Mar 2018 10:41:05 +0000 (10:41 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Mar 2018 12:57:44 +0000 (12:57 +0000)
After we call dma_fence_signal(), confirm that the request was indeed
complete.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180305104105.8296-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_irq.c

index ce16003ef048c40c400db51c397cff227ff7b7c8..633c18785c1e9cfc12ea6c21fe6ccc08b859bd30 100644 (file)
@@ -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);
        }