[Bug 95472] [i915] Feature request: Add support for fencing for PRIME setups

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 5 21:11:22 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=95472

--- Comment #25 from Chris Wilson <chris at chris-wilson.co.uk> ---
Hmm, I am definitely seeing fences being passed from nouveau to i915 with DRI3.

Can you please try with something like:

diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c
b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
index 98294f1..55a54cd 100644
--- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
@@ -1442,6 +1442,8 @@ static int eb_add_reservations(struct reservation_object
*resv,
                        if (!fence_get_rcu(fence))
                                continue;

+                       printk(KERN_ERR "third party read fence\n");
+
                        ret = kfence_await_dma_fence(&req->submit, fence,
                                                     GFP_NOWAIT |
__GFP_NOWARN);
                        fence_put(fence);
@@ -1452,6 +1454,7 @@ static int eb_add_reservations(struct reservation_object
*resv,

        fence = rcu_dereference(resv->fence_excl);
        if (fence && !fence_is_i915(fence) && fence_get_rcu(fence)) {
+               printk(KERN_ERR "third party write fence\n");
                ret = kfence_await_dma_fence(&req->submit, fence,
                                             GFP_NOWAIT | __GFP_NOWARN);

just to make sure we are seeing the fences?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20160805/87023e41/attachment-0001.html>


More information about the intel-gfx-bugs mailing list