Re: [PATCH v1 1/1] drm/virtio: Support sync objects

From: Dmitry Osipenko
Date: Sat Feb 25 2023 - 10:21:41 EST


On 1/19/23 03:41, Dmitry Osipenko wrote:
> + ret = drm_syncobj_find_fence(file, syncobj_desc.handle,
> + syncobj_desc.point, 0, &in_fence);
> + if (ret)
> + break;
> +
> + if (!dma_fence_match_context(in_fence, fence_ctx + ring_idx))
> + ret = dma_fence_wait(in_fence, true);

I missed to add dma_fence_chain_contained(in_fence) here, otherwise the
match always fails for a chained fence.

--
Best regards,
Dmitry