[PATCH 2/3] dma-buf: Enable signaling on fence for sw_sync
Christian König
christian.koenig at amd.com
Thu Sep 29 18:17:52 UTC 2022
Am 27.09.22 um 19:24 schrieb Arvind Yadav:
> Here's enabling software signaling on fence for sw_sync.
>
> Signed-off-by: Arvind Yadav <Arvind.Yadav at amd.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
> drivers/dma-buf/sw_sync.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/dma-buf/sw_sync.c b/drivers/dma-buf/sw_sync.c
> index 348b3a9170fa..d2a52ceac14e 100644
> --- a/drivers/dma-buf/sw_sync.c
> +++ b/drivers/dma-buf/sw_sync.c
> @@ -244,6 +244,8 @@ static struct sync_pt *sync_pt_create(struct sync_timeline *obj,
> obj->context, value);
> INIT_LIST_HEAD(&pt->link);
>
> + dma_fence_enable_sw_signaling(&pt->base);
> +
> spin_lock_irq(&obj->lock);
> if (!dma_fence_is_signaled_locked(&pt->base)) {
> struct rb_node **p = &obj->pt_tree.rb_node;
More information about the dri-devel
mailing list