Re: [RFC PATCH 2/4] rust: sync: Add dma_fence abstractions
From: Philipp Stanner
Date: Mon Feb 09 2026 - 03:22:21 EST
On Fri, 2026-02-06 at 12:04 +0100, Boris Brezillon wrote:
> On Fri, 06 Feb 2026 10:32:38 +0100
> Philipp Stanner <phasta@xxxxxxxxxxx> wrote:
>
[…]
> >
> > So I strongly think that we'd either want to drop data: T, or we should
> > think about possibilities to hide it from other drivers.
> >
> > I've got currently no idea how that could be addressed in Rust, though
>
> So, as Danilo explained in his reply, there's two kind of users:
>
> 1. those that want to wait on fences (that'd be the JobQueue, for
> instance)
> 2. those that are emitting fences (AKA those implementing the fence_ops
> in C)
>
> And each of them should be given different access to the underlying
> dma_fence, hence the proposal to have different objects to back
> those concepts.
That makes sense and can be implemented. I can pick it up.
P.