[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20221020110003.582831-1-Arvind.Yadav@amd.com>
Date: Thu, 20 Oct 2022 16:30:03 +0530
From: Arvind Yadav <Arvind.Yadav@....com>
To: <Christian.Koenig@....com>, <andrey.grodzovsky@....com>,
<shashank.sharma@....com>, <amaranath.somalapuram@....com>,
<Arunpravin.PaneerSelvam@....com>,
<maarten.lankhorst@...ux.intel.com>, <mripard@...nel.org>,
<tzimmermann@...e.de>, <airlied@...ux.ie>, <daniel@...ll.ch>,
<dri-devel@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>
CC: Arvind Yadav <Arvind.Yadav@....com>
Subject: [PATCH] drm/syncobj : Enable signaling on fence for syncobj
Here's enabling software signaling on fence for syncobj.
Signed-off-by: Arvind Yadav <Arvind.Yadav@....com>
---
drivers/gpu/drm/drm_syncobj.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c
index 0c2be8360525..2ab7a1a9eeb4 100644
--- a/drivers/gpu/drm/drm_syncobj.c
+++ b/drivers/gpu/drm/drm_syncobj.c
@@ -302,6 +302,8 @@ void drm_syncobj_add_point(struct drm_syncobj *syncobj,
dma_fence_chain_init(chain, prev, fence, point);
rcu_assign_pointer(syncobj->fence, &chain->base);
+ dma_fence_enable_sw_signaling(&chain->base);
+
list_for_each_entry_safe(cur, tmp, &syncobj->cb_list, node)
syncobj_wait_syncobj_func(syncobj, cur);
spin_unlock(&syncobj->lock);
--
2.25.1
Powered by blists - more mailing lists