diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-12 20:19:58 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-13 14:06:35 +0300 |
commit | c00122f33fe65c00103330e9f85dd2d3a63a3d2c (patch) | |
tree | 3276fd2bfa380908aab36339ef2502eb07c863cf | |
parent | ae9a043b0c5b0d90dcd9fb8b3a2d27f34f0725fc (diff) | |
download | linux-c00122f33fe65c00103330e9f85dd2d3a63a3d2c.tar.xz |
drm/i915: Assert that the active request hasn't been signaled
As the request is not complete, it should not be signaled. Assert that
this is true before we process the request for a reset.
References: https://bugs.freedesktop.org/show_bug.cgi?id=99671
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170212172002.23072-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index b8d869d7937d..48922ff454e6 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -2611,6 +2611,8 @@ i915_gem_find_active_request(struct intel_engine_cs *engine) continue; GEM_BUG_ON(request->engine != engine); + GEM_BUG_ON(test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, + &request->fence.flags)); return request; } |