Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-08 Thread Daniel Vetter
On Tue, 7 Jun 2022 at 18:01, Greg KH wrote: > > On Tue, Jun 07, 2022 at 09:52:56AM -0500, Jason Ekstrand wrote: > > On Tue, 2022-06-07 at 12:55 +0200, Greg KH wrote: > > > On Thu, Jun 02, 2022 at 08:47:56AM +0200, Daniel Vetter wrote: > > > > On Thu, 2 Jun 2022 at 08:34, Simon Ser wrote: > > > >

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-08 Thread Jason Ekstrand
On Tue, 2022-06-07 at 12:55 +0200, Greg KH wrote: > On Thu, Jun 02, 2022 at 08:47:56AM +0200, Daniel Vetter wrote: > > On Thu, 2 Jun 2022 at 08:34, Simon Ser wrote: > > > > > > On Thursday, June 2nd, 2022 at 08:25, Greg KH > > > wrote: > > > > > > > On Thu, Jun 02, 2022 at 06:17:31AM +,

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-07 Thread Greg KH
On Tue, Jun 07, 2022 at 09:52:56AM -0500, Jason Ekstrand wrote: > On Tue, 2022-06-07 at 12:55 +0200, Greg KH wrote: > > On Thu, Jun 02, 2022 at 08:47:56AM +0200, Daniel Vetter wrote: > > > On Thu, 2 Jun 2022 at 08:34, Simon Ser wrote: > > > > > > > > On Thursday, June 2nd, 2022 at 08:25, Greg KH

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-07 Thread Greg KH
On Thu, Jun 02, 2022 at 08:47:56AM +0200, Daniel Vetter wrote: > On Thu, 2 Jun 2022 at 08:34, Simon Ser wrote: > > > > On Thursday, June 2nd, 2022 at 08:25, Greg KH wrote: > > > > > On Thu, Jun 02, 2022 at 06:17:31AM +, Simon Ser wrote: > > > > > > > On Thursday, June 2nd, 2022 at 07:40,

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-07 Thread Brian Starkey
On Thu, Jun 02, 2022 at 08:47:56AM +0200, Daniel Vetter wrote: > > Two expand on this: > > - compositor opens the drm render /dev node > - compositor initializes the opengl or vulkan userspace driver on top of that > - compositor asks that userspace driver to allocate some buffer, which > can be

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-06 Thread Robin Murphy
On 2022-06-06 16:22, Greg KH wrote: On Mon, Jun 06, 2022 at 04:10:09PM +0100, Robin Murphy wrote: On 2022-06-02 07:47, Daniel Vetter wrote: On Thu, 2 Jun 2022 at 08:34, Simon Ser wrote: On Thursday, June 2nd, 2022 at 08:25, Greg KH wrote: On Thu, Jun 02, 2022 at 06:17:31AM +, Simon

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-06 Thread Greg KH
On Mon, Jun 06, 2022 at 04:10:09PM +0100, Robin Murphy wrote: > On 2022-06-02 07:47, Daniel Vetter wrote: > > On Thu, 2 Jun 2022 at 08:34, Simon Ser wrote: > > > > > > On Thursday, June 2nd, 2022 at 08:25, Greg KH wrote: > > > > > > > On Thu, Jun 02, 2022 at 06:17:31AM +, Simon Ser wrote:

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-06 Thread Robin Murphy
On 2022-06-02 07:47, Daniel Vetter wrote: On Thu, 2 Jun 2022 at 08:34, Simon Ser wrote: On Thursday, June 2nd, 2022 at 08:25, Greg KH wrote: On Thu, Jun 02, 2022 at 06:17:31AM +, Simon Ser wrote: On Thursday, June 2nd, 2022 at 07:40, Greg KH g...@kroah.com wrote: On Wed, Jun 01,

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-02 Thread Jason Ekstrand
v4 looks good to me as well. --Jason On Wed, 2022-06-01 at 16:13 +, Simon Ser wrote: > To discover support for new DMA-BUF IOCTLs, user-space has no > choice but to try to perform the IOCTL on an existing DMA-BUF. > However, user-space may want to figure out whether or not the > IOCTL is

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-02 Thread Daniel Vetter
On Thu, 2 Jun 2022 at 08:34, Simon Ser wrote: > > On Thursday, June 2nd, 2022 at 08:25, Greg KH wrote: > > > On Thu, Jun 02, 2022 at 06:17:31AM +, Simon Ser wrote: > > > > > On Thursday, June 2nd, 2022 at 07:40, Greg KH g...@kroah.com wrote: > > > > > > > On Wed, Jun 01, 2022 at 04:13:14PM

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-02 Thread Simon Ser
On Thursday, June 2nd, 2022 at 08:25, Greg KH wrote: > On Thu, Jun 02, 2022 at 06:17:31AM +, Simon Ser wrote: > > > On Thursday, June 2nd, 2022 at 07:40, Greg KH g...@kroah.com wrote: > > > > > On Wed, Jun 01, 2022 at 04:13:14PM +, Simon Ser wrote: > > > > > > > To discover support for

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-02 Thread Greg KH
On Thu, Jun 02, 2022 at 06:17:31AM +, Simon Ser wrote: > On Thursday, June 2nd, 2022 at 07:40, Greg KH wrote: > > > On Wed, Jun 01, 2022 at 04:13:14PM +, Simon Ser wrote: > > > > > To discover support for new DMA-BUF IOCTLs, user-space has no > > > choice but to try to perform the IOCTL

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-02 Thread Simon Ser
On Thursday, June 2nd, 2022 at 07:40, Greg KH wrote: > On Wed, Jun 01, 2022 at 04:13:14PM +, Simon Ser wrote: > > > To discover support for new DMA-BUF IOCTLs, user-space has no > > choice but to try to perform the IOCTL on an existing DMA-BUF. > > Which is correct and how all kernel

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-01 Thread Greg KH
On Wed, Jun 01, 2022 at 04:13:14PM +, Simon Ser wrote: > To discover support for new DMA-BUF IOCTLs, user-space has no > choice but to try to perform the IOCTL on an existing DMA-BUF. Which is correct and how all kernel features work (sorry I missed the main goal of this patch earlier and

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-01 Thread Christian König
Am 01.06.22 um 18:13 schrieb Simon Ser: To discover support for new DMA-BUF IOCTLs, user-space has no choice but to try to perform the IOCTL on an existing DMA-BUF. However, user-space may want to figure out whether or not the IOCTL is available before it has a DMA-BUF at hand, e.g. at

[PATCH v4] dma-buf: Add a capabilities directory

2022-06-01 Thread Simon Ser
To discover support for new DMA-BUF IOCTLs, user-space has no choice but to try to perform the IOCTL on an existing DMA-BUF. However, user-space may want to figure out whether or not the IOCTL is available before it has a DMA-BUF at hand, e.g. at initialization time in a Wayland compositor. Add a