drm/syncobj: flatten dma_fence_chains on transfer

Zhang, Jesse(Jie) Jesse.Zhang at amd.com
Wed Jul 6 10:41:08 UTC 2022


[AMD Official Use Only - General]

Fix sync syncobj issue by enable the signaling of the base fence.


diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c
index d5db818f1c76..971ad97a2f54 100644
--- a/drivers/gpu/drm/drm_syncobj.c
+++ b/drivers/gpu/drm/drm_syncobj.c
@@ -887,6 +887,7 @@ static int drm_syncobj_flatten_chain(struct dma_fence **f)
                goto free_fences;

        dma_fence_put(*f);
+       dma_fence_enable_sw_signaling(&array->base);
        *f = array->fences[0];
        return 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20220706/677f6434/attachment-0001.htm>


More information about the dri-devel mailing list