Re: dmaengine/Query: What about scatter/gather for mem to memtransfers.
From: Vinod Koul
Date: Thu Dec 08 2011 - 02:39:25 EST
On Thu, 2011-12-08 at 09:40 +0530, Viresh Kumar wrote:
> Hi Dan/Vinod
>
> I am looking to implement scatter/gather interface for mem to mem transfers.
> But before that, i wanted to know your feedback about it.
>
> In my case, i have memory scattered in pages and performance is not good, if
> i submit transfers page by page.
>
> If you are Okay with the idea, i can implement it and submit soon.
>
You mean something like:
struct dma_async_tx_descriptor *(*device_prep_dma_sg)(
struct dma_chan *chan,
struct scatterlist *dst_sg, unsigned int dst_nents,
struct scatterlist *src_sg, unsigned int src_nents,
unsigned long flags);
Its already there, you need to implement in your driver :)
--
~Vinod
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/