Re: [RFC 2/3] USB: core: Add non-coherent buffer allocation helpers

2018-10-30 Thread Tomasz Figa
Hi Christoph and everyone, On Fri, Aug 31, 2018 at 3:51 PM Tomasz Figa wrote: > > On Fri, Aug 31, 2018 at 2:50 PM Christoph Hellwig wrote: > > > > On Thu, Aug 30, 2018 at 07:11:35PM -0300, Ezequiel Garcia wrote: > > > On Thu, 2018-08-30 at 10:58 -0700, Christoph Hellwig wrote: > > > > Please don

Re: [RFC 2/3] USB: core: Add non-coherent buffer allocation helpers

2018-08-30 Thread Tomasz Figa
On Fri, Aug 31, 2018 at 2:50 PM Christoph Hellwig wrote: > > On Thu, Aug 30, 2018 at 07:11:35PM -0300, Ezequiel Garcia wrote: > > On Thu, 2018-08-30 at 10:58 -0700, Christoph Hellwig wrote: > > > Please don't introduce new DMA_ATTR_NON_CONSISTENT users, it is > > > a rather horrible interface, and

Re: [RFC 2/3] USB: core: Add non-coherent buffer allocation helpers

2018-08-30 Thread Christoph Hellwig
On Thu, Aug 30, 2018 at 07:11:35PM -0300, Ezequiel Garcia wrote: > On Thu, 2018-08-30 at 10:58 -0700, Christoph Hellwig wrote: > > Please don't introduce new DMA_ATTR_NON_CONSISTENT users, it is > > a rather horrible interface, and I plan to kill it off rather sooner > > than later. I plan to post

Re: [RFC 2/3] USB: core: Add non-coherent buffer allocation helpers

2018-08-30 Thread Ezequiel Garcia
On Thu, 2018-08-30 at 10:58 -0700, Christoph Hellwig wrote: > Please don't introduce new DMA_ATTR_NON_CONSISTENT users, it is > a rather horrible interface, and I plan to kill it off rather sooner > than later. I plan to post some patches for a better interface > that can reuse the normal dma_sync

Re: [RFC 2/3] USB: core: Add non-coherent buffer allocation helpers

2018-08-30 Thread Christoph Hellwig
Please don't introduce new DMA_ATTR_NON_CONSISTENT users, it is a rather horrible interface, and I plan to kill it off rather sooner than later. I plan to post some patches for a better interface that can reuse the normal dma_sync_single_* interfaces for ownership transfers. I can happily include