Hi, this patch is pushed by me when i was still in linux BSP team, now i am in AE team. I have a pach for 3.5.7 'use the dmaengine interface for memory to memory transfers' using device_prep_dma_sg (it works, but not pushed, so as to 3.10.17), the patch is attached to this message, you can use it as a refer(.patch file is the kernel patch for imx-sdma.c, .c file is the test code). The speed of M2M transfer is about 50M/s
4 Subject: [PATCH 3/3] ENGR : Add sdma memory to memory copy function for
5 kerenl 3.5.7
6
7 In this patch, we use a new API from dmaengine: device_prep_dma_sg, which
8 is designed for memory to memory copy. The use is the same to
9 'device_prep_slave_sg', except that we use:
10 for (i = 0, sg = src_sg, sg2 = dst_sg; i < src_nents;
11 i++, sg = sg_next(sg), sg2 = sg_next(sg2))
12 instead of using:
13 for_each_sg(sgl, src_sg, sg_len, i).
14
15 Signed-off-by: Ge Lei <b42127@freescale.com>