[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 100644 --- a/drivers/dma/fsldma.c +++ b/dri

[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 files changed, 7 insertions(+) diff --git a

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

2015-03-02 Thread xuelin.shi
From: Xuelin Shi 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 Signed-off-by: Xuelin Shi ---

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

2014-12-14 Thread xuelin.shi
From: Xuelin Shi 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 Signed-off-by: Naveen Burmi Si

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

2014-10-17 Thread xuelin.shi
From: Xuelin Shi 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 Signed-off-by: Naveen Burmi S

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

2014-07-14 Thread xuelin.shi
From: Xuelin Shi checking available slots in HW should be under the lock. Signed-off-by: Xuelin Shi --- 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 index 935d05a..fccad86 100644 --- a/drivers/dm

[PATCH] dmaengine: fsl raid parity continuation support

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

[PATCH] dmaengine: fix xor sources continuation

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

[PATCH v4] Driver support for FSL RaidEngine device.

2014-04-14 Thread xuelin.shi
From: Xuelin Shi 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 Signed-off-by: Naveen Burmi S

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

2014-04-11 Thread xuelin.shi
From: Xuelin Shi 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 Signed-off-by: Naveen Burmi S

[PATCH v2] fix wrong usage of dmaengine_unmap_put in async_xxx

2014-03-20 Thread xuelin.shi
From: Xuelin Shi 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, call dmaengine_unmap_put

[PATCH v2] fix dmaengine_unmap failure

2014-03-20 Thread xuelin.shi
From: Xuelin Shi 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 pool. Signed-off-by: Xue

[PATCH] fix wrong usage of dmaengine_unmap_put in async_xxx

2014-03-19 Thread xuelin.shi
From: Xuelin Shi 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, call dmaengine_unmap_put

[PATCH] fix dmaengine_unmap failure.

2014-03-18 Thread xuelin.shi
From: Xuelin Shi 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 --- drivers/dma/dmaengine.c |