Re: [PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-22 Thread Jason Gunthorpe
On Mon, Apr 14, 2025 at 09:21:25PM +0200, Thomas Petazzoni wrote: > > "UIO is a broken legacy mess, so let's add more broken things > > to it as broken + broken => still broken, so no harm done", am I > > getting that right? > > Who says UIO is a "broken legacy mess"? Only you says so. I don't se

Re: [PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-14 Thread Andrew Davis
On 4/14/25 2:21 PM, Thomas Petazzoni wrote: Hello Andrew, On Mon, 14 Apr 2025 12:08:44 -0500 Andrew Davis wrote: "UIO is a broken legacy mess, so let's add more broken things to it as broken + broken => still broken, so no harm done", am I getting that right? Who says UIO is a "broken legac

Re: [PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-14 Thread Andrew Davis
On 4/14/25 6:48 AM, Thomas Petazzoni wrote: Hello Christoph, On Mon, 14 Apr 2025 04:24:21 -0700 Christoph Hellwig wrote: On Mon, Apr 14, 2025 at 10:24:55AM +0200, Thomas Petazzoni wrote: What this patch series is about is to add new user-space interface to extend the existing UIO subsystem.

Re: [PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-14 Thread Thomas Petazzoni
Hello Andrew, On Mon, 14 Apr 2025 12:08:44 -0500 Andrew Davis wrote: > "UIO is a broken legacy mess, so let's add more broken things > to it as broken + broken => still broken, so no harm done", am I > getting that right? Who says UIO is a "broken legacy mess"? Only you says so. I don't see any

Re: [PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-14 Thread Thomas Petazzoni
Hello Christian, On Mon, 14 Apr 2025 11:11:48 +0200 Christian König wrote: > Maybe I should try to better explain the concern here. The question > is "Where is the source code of your FPGA driver?". > > I mean that you are trying to replace the out-of-tree solution is > rather welcomed, but the

Re: [PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-14 Thread Thomas Petazzoni
Hello Christoph, On Mon, 14 Apr 2025 04:24:21 -0700 Christoph Hellwig wrote: > On Mon, Apr 14, 2025 at 10:24:55AM +0200, Thomas Petazzoni wrote: > > What this patch series is about is to add new user-space interface to > > extend the existing UIO subsystem. > > Which as I explained to you is

Re: [PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-14 Thread Christian König
Am 14.04.25 um 10:24 schrieb Thomas Petazzoni: > Hello Christoph, > > On Sun, 13 Apr 2025 22:55:02 -0700 > Christoph Hellwig wrote: > >> On Thu, Apr 10, 2025 at 04:53:17PM +0200, Bastien Curutchet wrote: >>> Hi all, >>> >>> Many UIO users performing DMA from their UIO device need to access the >>>

Re: [PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-14 Thread Thomas Petazzoni
Hello Christian, On Fri, 11 Apr 2025 14:41:56 +0200 Christian König wrote: > But anyway please note that when you want to create new UAPI you need > to provide an open source user of it. E.g. link to a repository or > something similar in the covert letter should do it. Could you clarify what i

Re: [PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-14 Thread Christian König
Am 14.04.25 um 10:17 schrieb Thomas Petazzoni: > Hello Christian, > > On Fri, 11 Apr 2025 14:41:56 +0200 > Christian König wrote: > >> But anyway please note that when you want to create new UAPI you need >> to provide an open source user of it. E.g. link to a repository or >> something similar in

Re: [PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-14 Thread Thomas Petazzoni
Hello Christoph, On Sun, 13 Apr 2025 22:55:02 -0700 Christoph Hellwig wrote: > On Thu, Apr 10, 2025 at 04:53:17PM +0200, Bastien Curutchet wrote: > > Hi all, > > > > Many UIO users performing DMA from their UIO device need to access the > > DMA addresses of the allocated buffers. There are out-

Re: [PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-11 Thread Christian König
Hi Bastien, Am 11.04.25 um 10:14 schrieb Bastien Curutchet: > Hi Christian, > > On 4/11/25 9:30 AM, Christian König wrote: >> Hi Thomas, >> >> Am 10.04.25 um 21:43 schrieb Thomas Petazzoni: >>> Hello Christian, >>> >>> Thanks for your feedback! >>> >>> On Thu, 10 Apr 2025 18:29:12 +0200 >>> Christ

Re: [PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-11 Thread Bastien Curutchet
Hi Christian, On 4/11/25 9:30 AM, Christian König wrote: Hi Thomas, Am 10.04.25 um 21:43 schrieb Thomas Petazzoni: Hello Christian, Thanks for your feedback! On Thu, 10 Apr 2025 18:29:12 +0200 Christian König wrote: Many UIO users performing DMA from their UIO device need to access the DMA

Re: [PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-11 Thread Christian König
Hi Thomas, Am 10.04.25 um 21:43 schrieb Thomas Petazzoni: > Hello Christian, > > Thanks for your feedback! > > On Thu, 10 Apr 2025 18:29:12 +0200 > Christian König wrote: > >>> Many UIO users performing DMA from their UIO device need to access the >>> DMA addresses of the allocated buffers. There

Re: [PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-10 Thread Thomas Petazzoni
Hello Christian, Thanks for your feedback! On Thu, 10 Apr 2025 18:29:12 +0200 Christian König wrote: > > Many UIO users performing DMA from their UIO device need to access the > > DMA addresses of the allocated buffers. There are out-of-tree drivers > > that allow to do it but nothing in the ma

Re: [PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-10 Thread Christian König
Am 10.04.25 um 16:53 schrieb Bastien Curutchet: > Hi all, > > Many UIO users performing DMA from their UIO device need to access the > DMA addresses of the allocated buffers. There are out-of-tree drivers > that allow to do it but nothing in the mainline. Well that basically disqualifies this patc

[PATCH 0/3] uio/dma-buf: Give UIO users access to DMA addresses.

2025-04-10 Thread Bastien Curutchet
Hi all, Many UIO users performing DMA from their UIO device need to access the DMA addresses of the allocated buffers. There are out-of-tree drivers that allow to do it but nothing in the mainline. I know DMA shouldn't be handled by userspace but, IMHO, since UIO drivers exist, it would be better