diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-03-05 10:41:05 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-03-07 12:57:44 +0000 |
commit | 4e9a8bef20c973f62358fbd888a38f1bd1669200 (patch) | |
tree | ff5e4faec05159f66698edc1f0fcd94d6e5e474e | |
parent | 949f7c7d5fc4277e1ca91dbee32ceb469bbb1349 (diff) | |
download | linux-4e9a8bef20c973f62358fbd888a38f1bd1669200.tar.bz2 |
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 <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
-rw-r--r-- | drivers/gpu/drm/i915/i915_irq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index ce16003ef048..633c18785c1e 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); } |