Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1478722 > unrolled thread
| Started by | Nicolin Chen <nicoleotsuka@gmail.com> |
|---|---|
| First post | 2016-09-08 03:30 +0200 |
| Last post | 2016-09-09 13:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] dmaengine: dmatest: Apply copy_align to DMA_SG as well Nicolin Chen <nicoleotsuka@gmail.com> - 2016-09-08 03:30 +0200
Re: [PATCH] dmaengine: dmatest: Apply copy_align to DMA_SG as well Vinod Koul <vinod.koul@intel.com> - 2016-09-09 13:40 +0200
| From | Nicolin Chen <nicoleotsuka@gmail.com> |
|---|---|
| Date | 2016-09-08 03:30 +0200 |
| Subject | [PATCH] dmaengine: dmatest: Apply copy_align to DMA_SG as well |
| Message-ID | <seWka-7D8-9@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Vinod Koul <vinod.koul@intel.com> |
|---|---|
| Date | 2016-09-09 13:40 +0200 |
| Message-ID | <sfsk1-2dK-5@gated-at.bofh.it> |
| In reply to | #1478722 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web