[PATCH] bug-on-ebusy

Chris Wilson chris at chris-wilson.co.uk
Thu Jun 21 16:53:08 UTC 2018


---
 drivers/gpu/drm/i915/i915_gem_execbuffer.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
index c2dd9b4cdace..fceaa06eb1cf 100644
--- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
@@ -561,11 +561,13 @@ eb_add_vma(struct i915_execbuffer *eb,
 	} else {
 		eb_unreserve_vma(vma, vma->exec_flags);
 
+		GEM_BUG_ON(i915_vma_is_pinned(vma));
 		list_add_tail(&vma->exec_link, &eb->unbound);
 		if (drm_mm_node_allocated(&vma->node))
 			err = i915_vma_unbind(vma);
 		if (unlikely(err))
 			vma->exec_flags = NULL;
+		GEM_BUG_ON(err == -EBUSY);
 	}
 	return err;
 }
-- 
2.18.0.rc2



More information about the Intel-gfx-trybot mailing list