Re: [PATCH] lib: scatterlist: add sg splitting function

2015-08-24 Thread Jens Axboe
On 08/24/2015 02:26 PM, Andrew Morton wrote: On Mon, 24 Aug 2015 14:15:08 -0600 Jens Axboe wrote: On 08/08/2015 02:44 AM, Robert Jarzmik wrote: Sometimes a scatter-gather has to be split into several chunks, or sub scatter lists. This happens for example if a scatter list will be handled by m

Re: [PATCH] lib: scatterlist: add sg splitting function

2015-08-24 Thread Andrew Morton
On Mon, 24 Aug 2015 14:15:08 -0600 Jens Axboe wrote: > On 08/08/2015 02:44 AM, Robert Jarzmik wrote: > > Sometimes a scatter-gather has to be split into several chunks, or sub > > scatter lists. This happens for example if a scatter list will be > > handled by multiple DMA channels, each one fill

Re: [PATCH] lib: scatterlist: add sg splitting function

2015-08-24 Thread Jens Axboe
On 08/08/2015 02:44 AM, Robert Jarzmik wrote: Sometimes a scatter-gather has to be split into several chunks, or sub scatter lists. This happens for example if a scatter list will be handled by multiple DMA channels, each one filling a part of it. A concrete example comes with the media V4L2 API

Re: [PATCH] lib: scatterlist: add sg splitting function

2015-08-22 Thread Robert Jarzmik
Robert Jarzmik writes: ...zip... top posting in [1] ... zip ... Hi Andrew, There was no review for a couple of weeks I'm afraid on this patch. Could I know what I can do to push it up ? And another question : do you want another patch to add a MAINTAINERS entry for this sg_split ? Cheers. --

[PATCH] lib: scatterlist: add sg splitting function

2015-08-08 Thread Robert Jarzmik
Sometimes a scatter-gather has to be split into several chunks, or sub scatter lists. This happens for example if a scatter list will be handled by multiple DMA channels, each one filling a part of it. A concrete example comes with the media V4L2 API, where the scatter list is allocated from users

Re: [RFC PATCH] lib: scatterlist: add sg splitting function

2015-07-30 Thread Robert Jarzmik
Russell King - ARM Linux writes: > On Thu, Jul 30, 2015 at 09:02:15PM +0200, Robert Jarzmik wrote: > Hmm. > > What happens if... > > n = dma_map_sg(dev, sg, nents, dir); > > where n < nents (which can happen if you have an IOMMU and it coalesces > the entries)? That's something I have not t

Re: [RFC PATCH] lib: scatterlist: add sg splitting function

2015-07-30 Thread Russell King - ARM Linux
On Thu, Jul 30, 2015 at 09:02:15PM +0200, Robert Jarzmik wrote: > Sometimes a scatter-gather has to be split into several chunks, or sub scatter > lists. This happens for example if a scatter list will be handled by multiple > DMA channels, each one filling a part of it. > > A concrete example com

[RFC PATCH] lib: scatterlist: add sg splitting function

2015-07-30 Thread Robert Jarzmik
Sometimes a scatter-gather has to be split into several chunks, or sub scatter lists. This happens for example if a scatter list will be handled by multiple DMA channels, each one filling a part of it. A concrete example comes with the media V4L2 API, where the scatter list is allocated from users