[PATCH v4 3/3] rust: Add dma_buf stub bindings

2025-09-17 Thread Lyude Paul
In order to implement the gem export callback, we need a type to represent struct dma_buf. So - this commit introduces a set of stub bindings for dma_buf. These bindings provide a ref-counted DmaBuf object, but don't currently implement any functionality for using the DmaBuf. Signed-off-by: Lyude

Re: [PATCH v4 3/3] rust: Add dma_buf stub bindings

2025-09-15 Thread Christian König
Hi Lyude, On 13.09.25 00:43, Lyude Paul wrote: > Agh! Sorry for the spam, I should have double checked the code before writing > this as I realized the reason I didn't implement this. Correct me if I'm wrong > here since it's the first time I've interacted very much with this API in the > kernel b

Re: [PATCH v4 3/3] rust: Add dma_buf stub bindings

2025-09-15 Thread Lyude Paul
JFYI - After talking a bit to the Asahi folks, it seems like that we're actually a ways off from Asahi having any actual usecase for the export() callback - so I'm going to just drop the dma_buf bits here for the next version of the patch series On Mon, 2025-09-15 at 10:59 +0200, Christian König w

Re: [PATCH v4 3/3] rust: Add dma_buf stub bindings

2025-09-12 Thread Lyude Paul
Agh! Sorry for the spam, I should have double checked the code before writing this as I realized the reason I didn't implement this. Correct me if I'm wrong here since it's the first time I've interacted very much with this API in the kernel but: it seems like the reference counting for dma_buf obj

Re: [PATCH v4 3/3] rust: Add dma_buf stub bindings

2025-09-12 Thread Lyude Paul
…though, I just realized immediately after sending that response to you that I mentioned that this type is reference counted in the commit message - but I never actually added an implementation for AlwaysRefCounted. So, that's at least one additional thing I will make sure to add. Similarly though,

Re: [PATCH v4 3/3] rust: Add dma_buf stub bindings

2025-09-12 Thread Lyude Paul
On Fri, 2025-09-12 at 10:25 +0200, Christian König wrote: > On 12.09.25 00:57, Lyude Paul wrote: > > In order to implement the gem export callback, we need a type to represent > > struct dma_buf. So - this commit introduces a set of stub bindings for > > dma_buf. These bindings provide a ref-counte

Re: [PATCH v4 3/3] rust: Add dma_buf stub bindings

2025-09-12 Thread Christian König
On 12.09.25 00:57, Lyude Paul wrote: > In order to implement the gem export callback, we need a type to represent > struct dma_buf. So - this commit introduces a set of stub bindings for > dma_buf. These bindings provide a ref-counted DmaBuf object, but don't > currently implement any functionality

Re: [PATCH v4 3/3] rust: Add dma_buf stub bindings

2025-09-12 Thread Alice Ryhl
On Thu, Sep 11, 2025 at 06:57:40PM -0400, Lyude Paul wrote: > In order to implement the gem export callback, we need a type to represent > struct dma_buf. So - this commit introduces a set of stub bindings for > dma_buf. These bindings provide a ref-counted DmaBuf object, but don't > currently impl