Re: [PATCH v14 1/5] dma-buf: Add dma-buf heaps framework

2019-11-04 Thread John Stultz
On Mon, Nov 4, 2019 at 2:24 AM Brian Starkey wrote: > On Fri, Nov 01, 2019 at 09:42:34PM +, John Stultz wrote: > > From: "Andrew F. Davis" > > > > Additionally should the interface grow in the future, we have a > > DMA_HEAP_IOC_GET_FEATURES ioctl which can return future feature > > flags. > >

Re: [PATCH v14 1/5] dma-buf: Add dma-buf heaps framework

2019-11-04 Thread John Stultz
On Sun, Nov 3, 2019 at 8:02 AM wrote: > > +static long dma_heap_ioctl_get_features(struct file *file, void *data) > > +{ > > + struct dma_heap_get_features_data *heap_features = data; > > + > > + /* nothing should be passed in */ > > + if (heap_features->features) > > + ret

Re: [PATCH v14 1/5] dma-buf: Add dma-buf heaps framework

2019-11-04 Thread Daniel Vetter
On Mon, Nov 04, 2019 at 05:43:51PM +, Brian Starkey wrote: > Hi Dave, > > On Tue, Nov 05, 2019 at 02:58:17AM +1000, Dave Airlie wrote: > > On Mon, 4 Nov 2019 at 20:24, Brian Starkey wrote: > > > > > > Hi John, > > > > > > On Fri, Nov 01, 2019 at 09:42:34PM +, John Stultz wrote: > > > > Fr

Re: [PATCH v14 1/5] dma-buf: Add dma-buf heaps framework

2019-11-04 Thread Brian Starkey
Hi Dave, On Tue, Nov 05, 2019 at 02:58:17AM +1000, Dave Airlie wrote: > On Mon, 4 Nov 2019 at 20:24, Brian Starkey wrote: > > > > Hi John, > > > > On Fri, Nov 01, 2019 at 09:42:34PM +, John Stultz wrote: > > > From: "Andrew F. Davis" > > > > > > This framework allows a unified userspace inte

Re: [PATCH v14 1/5] dma-buf: Add dma-buf heaps framework

2019-11-04 Thread Dave Airlie
On Mon, 4 Nov 2019 at 20:24, Brian Starkey wrote: > > Hi John, > > On Fri, Nov 01, 2019 at 09:42:34PM +, John Stultz wrote: > > From: "Andrew F. Davis" > > > > This framework allows a unified userspace interface for dma-buf > > exporters, allowing userland to allocate specific types of memory

Re: [PATCH v14 1/5] dma-buf: Add dma-buf heaps framework

2019-11-04 Thread Brian Starkey
Hi John, On Fri, Nov 01, 2019 at 09:42:34PM +, John Stultz wrote: > From: "Andrew F. Davis" > > This framework allows a unified userspace interface for dma-buf > exporters, allowing userland to allocate specific types of memory > for use in dma-buf sharing. > > Each heap is given its own de

[PATCH v14 1/5] dma-buf: Add dma-buf heaps framework

2019-11-01 Thread John Stultz
From: "Andrew F. Davis" This framework allows a unified userspace interface for dma-buf exporters, allowing userland to allocate specific types of memory for use in dma-buf sharing. Each heap is given its own device node, which a user can allocate a dma-buf fd from using the DMA_HEAP_IOC_ALLOC.