drm/syncobj: flatten dma_fence_chains on transfer

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


[AMD Official Use Only - General]

+ Lionel

From: Zhang, Jesse(Jie)
Sent: Wednesday, 6 July 2022 6:41 pm
To: dri-devel-bounces at lists.freedesktop.org; open list:DRM DRIVERS <dri-devel at lists.freedesktop.org>
Cc: Koenig, Christian <Christian.Koenig at amd.com>; lucas.demarchi at intel.com; Nirmoy Das <nirmoy.das at linux.intel.com>
Subject: drm/syncobj: flatten dma_fence_chains on transfer


[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/c519a559/attachment.htm>


More information about the dri-devel mailing list