[PATCH 43/43] annotate new execbuf async work

Daniel Vetter daniel.vetter at ffwll.ch
Thu Jul 23 12:54:49 UTC 2020


Just the two callbacks, to avoid drowining in all the other stuff
that's already broken.
---
 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
index 372bec1f88e8..6a68575b5a08 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
@@ -1221,14 +1221,19 @@ static void __eb_bind_vma(struct eb_vm_work *work)
 static int eb_bind_vma(struct dma_fence_work *base)
 {
 	struct eb_vm_work *work = container_of(base, typeof(*work), base);
+	bool cookie = dma_fence_begin_signalling();
 
 	__eb_bind_vma(work);
+
+	dma_fence_end_signalling(cookie);
+
 	return 0;
 }
 
 static void eb_vma_work_release(struct dma_fence_work *base)
 {
 	struct eb_vm_work *work = container_of(base, typeof(*work), base);
+	bool cookie = dma_fence_begin_signalling();
 
 	__eb_bind_vma(work);
 	kvfree(work->bind);
@@ -1240,6 +1245,8 @@ static void eb_vma_work_release(struct dma_fence_work *base)
 
 	i915_vm_free_pt_stash(work->vm, &work->stash);
 	i915_vm_put(work->vm);
+
+	dma_fence_end_signalling(cookie);
 }
 
 static const struct dma_fence_work_ops eb_bind_ops = {
-- 
2.27.0



More information about the Intel-gfx-trybot mailing list