public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dmaengine: dmatest: Apply copy_align to DMA_SG as well
@ 2016-09-08  1:24 Nicolin Chen
  2016-09-09 11:41 ` Vinod Koul
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolin Chen @ 2016-09-08  1:24 UTC (permalink / raw)
  To: vinod.koul; +Cc: linux-kernel, dmaengine, dan.j.williams

The DMA_SG is still a type of memory copy operation that should
conform the hardware restriction. So this patch just applies the
copy_align to DMA_SG as well.

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
---
 drivers/dma/dmatest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c
index 738fbd1..53e9728 100644
--- a/drivers/dma/dmatest.c
+++ b/drivers/dma/dmatest.c
@@ -503,11 +503,11 @@ static int dmatest_func(void *data)
 		struct scatterlist rx_sg[src_cnt];
 
 		total_tests++;
 
 		/* honor alignment restrictions */
-		if (thread->type == DMA_MEMCPY)
+		if (thread->type == DMA_MEMCPY || thread->type == DMA_SG)
 			align = dev->copy_align;
 		else if (thread->type == DMA_XOR)
 			align = dev->xor_align;
 		else if (thread->type == DMA_PQ)
 			align = dev->pq_align;
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dmaengine: dmatest: Apply copy_align to DMA_SG as well
  2016-09-08  1:24 [PATCH] dmaengine: dmatest: Apply copy_align to DMA_SG as well Nicolin Chen
@ 2016-09-09 11:41 ` Vinod Koul
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2016-09-09 11:41 UTC (permalink / raw)
  To: Nicolin Chen; +Cc: linux-kernel, dmaengine, dan.j.williams

On Wed, Sep 07, 2016 at 06:24:28PM -0700, Nicolin Chen wrote:
> The DMA_SG is still a type of memory copy operation that should
> conform the hardware restriction. So this patch just applies the
> copy_align to DMA_SG as well.

Applied, thanks

-- 
~Vinod

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-09 11:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-08  1:24 [PATCH] dmaengine: dmatest: Apply copy_align to DMA_SG as well Nicolin Chen
2016-09-09 11:41 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox