[PATCH] dmaengine:fsldma: fix memory leak

2016-03-08 Thread xuelin.shi
From: Xuelin Shi adding unmap of sources and destinations while doing dequeue. Signed-off-by: Xuelin Shi --- drivers/dma/fsldma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c index 2209f75..aac85c3

[PATCH] powerpc/p5040: Add device node for RAID Engine

2016-02-24 Thread xuelin.shi
From: Xuelin Shi add the missing RAID Engine device node for p5040. otherwise, the device can not be detected. Signed-off-by: Xuelin Shi --- arch/powerpc/boot/dts/fsl/p5040si-post.dtsi | 1 + arch/powerpc/boot/dts/fsl/p5040si-pre.dtsi | 6 ++ 2

[PATCH v6] dmaengine: Driver support for FSL RaidEngine device.

2015-03-02 Thread xuelin.shi
From: Xuelin Shi xuelin@freescale.com The RaidEngine is a new FSL hardware used for Raid5/6 acceration. This patch enables the RaidEngine functionality and provides hardware offloading capability for memcpy, xor and pq computation. It works with async_tx. Signed-off-by: Harninder Rai

[PATCH v5] dmaengine: Driver support for FSL RaidEngine device.

2014-12-14 Thread xuelin.shi
From: Xuelin Shi xuelin@freescale.com The RaidEngine is a new FSL hardware used for Raid5/6 acceration. This patch enables the RaidEngine functionality and provides hardware offloading capability for memcpy, xor and pq computation. It works with async_tx. Signed-off-by: Harninder Rai

[RESEND PATCH v4] dmaengine: Driver support for FSL RaidEngine device.

2014-10-17 Thread xuelin.shi
From: Xuelin Shi xuelin@freescale.com The RaidEngine is a new FSL hardware used for Raid5/6 acceration. This patch enables the RaidEngine functionality and provides hardware offloading capability for memcpy, xor and pq computation. It works with async_tx. Signed-off-by: Harninder Rai

[PATCH] dmaengine: fsl raid parity continuation support

2014-07-14 Thread xuelin.shi
From: Xuelin Shi xuelin@freescale.com support more than 16 disks parity computation. Signed-off-by: Xuelin Shi b29...@freescale.com --- comment: passed the raid6 recovery test. drivers/dma/fsl_raid.c | 32 +--- 1 file changed, 29 insertions(+), 3 deletions(-)

[PATCH] dmaengine: fix potential race condition in fsl raid

2014-07-14 Thread xuelin.shi
From: Xuelin Shi xuelin@freescale.com checking available slots in HW should be under the lock. Signed-off-by: Xuelin Shi b29...@freescale.com --- drivers/dma/fsl_raid.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/dma/fsl_raid.c b/drivers/dma/fsl_raid.c

[PATCH] dmaengine: fix xor sources continuation

2014-07-01 Thread xuelin.shi
From: Xuelin Shi xuelin@freescale.com the partial xor result must be kept until the next tx is generated. Signed-off-by: Xuelin Shi xuelin@freescale.com --- crypto/async_tx/async_xor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crypto/async_tx/async_xor.c

[PATCH v4] Driver support for FSL RaidEngine device.

2014-04-15 Thread xuelin.shi
From: Xuelin Shi xuelin@freescale.com The RaidEngine is a new FSL hardware used for Raid5/6 acceration. This patch enables the RaidEngine functionality and provides hardware offloading capability for memcpy, xor and pq computation. It works with async_tx. Signed-off-by: Harninder Rai

[PATCH v3] dmaengine: driver support for FSL RaidEngine device.

2014-04-11 Thread xuelin.shi
From: Xuelin Shi xuelin@freescale.com The RaidEngine is a new FSL hardware used for Raid5/6 acceration. This patch enables the RaidEngine functionality and provides hardware offloading capability for memcpy, xor and pq computation. It works with async_tx. Signed-off-by: Harninder Rai

[PATCH v2] fix dmaengine_unmap failure

2014-03-20 Thread xuelin.shi
From: Xuelin Shi xuelin@freescale.com The count which is used to get_unmap_data maybe not the same as the count computed in dmaengine_unmap which causes to free data in a wrong pool. This patch fixes this issue by keeping the map count with unmap_data structure and use this count to get the

[PATCH v2] fix wrong usage of dmaengine_unmap_put in async_xxx

2014-03-20 Thread xuelin.shi
From: Xuelin Shi xuelin@freescale.com dmaengine_unmap_put does below two things: a) unmap pages for srcs and dests b) free unmap struct The unmap struct data is generated but only initialized while other some dma contions are met, like dma alignment etc. If the unmap data is not initialized,

[PATCH] fix wrong usage of dmaengine_unmap_put in async_xxx

2014-03-19 Thread xuelin.shi
From: Xuelin Shi xuelin@freescale.com dmaengine_unmap_put does below two things: a) unmap pages for srcs and dests b) free unmap struct The unmap struct data is generated but only initialized while other some dma contions are met, like dma alignment etc. If the unmap data is not initialized,

[PATCH] fix dmaengine_unmap failure.

2014-03-18 Thread xuelin.shi
From: Xuelin Shi xuelin@freescale.com The count which is used to get_unmap_data maybe not the same as the count computed in dmaengine_unmap which causes to free data in a wrong pool. This patch fixes this issue by keeping the pool in unmap_data structure. Signed-off-by: Xuelin Shi