From: Lubomir Rintel <lkundrak@v3.sk> To: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Dan Williams <djbw@fb.com>, Vinod Koul <vinod.koul@intel.com>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lubomir Rintel <lkundrak@v3.sk> Subject: [PATCH 3/3] dma: mv_xor: get rid of a DMA-API sanity check warning Date: Fri, 18 Jan 2013 08:46:22 +0100 [thread overview] Message-ID: <1358495182-30964-3-git-send-email-lkundrak@v3.sk> (raw) In-Reply-To: <1358495154.28503.5.camel@unicorn> mv_xor mv_xor.0: DMA-API: device driver frees DMA memory with different direction [device address=0x000000001dea4000] [size=4096 bytes] [mapped with DMA_FROM_DEVICE] [unmapped with DMA_BIDIRECTIONAL] Change xor self test destination buffer allocation direction to bidirectional, as it's what mv_xor_run_tx_complete_actions() frees for multiple sources. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> --- drivers/dma/mv_xor.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index d00a834..1e90f5d 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c @@ -1042,7 +1042,7 @@ mv_xor_xor_self_test(struct mv_xor_chan *mv_chan) /* test xor */ dest_dma = dma_map_page(dma_chan->device->dev, dest, 0, PAGE_SIZE, - DMA_FROM_DEVICE); + DMA_BIDIRECTIONAL); if (dma_mapping_error(dma_chan->device->dev, dest_dma)) { dev_err(dma_chan->device->dev, "Could not map destination page, disabling\n"); -- 1.7.1
WARNING: multiple messages have this Message-ID (diff)
From: lkundrak@v3.sk (Lubomir Rintel) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/3] dma: mv_xor: get rid of a DMA-API sanity check warning Date: Fri, 18 Jan 2013 08:46:22 +0100 [thread overview] Message-ID: <1358495182-30964-3-git-send-email-lkundrak@v3.sk> (raw) In-Reply-To: <1358495154.28503.5.camel@unicorn> mv_xor mv_xor.0: DMA-API: device driver frees DMA memory with different direction [device address=0x000000001dea4000] [size=4096 bytes] [mapped with DMA_FROM_DEVICE] [unmapped with DMA_BIDIRECTIONAL] Change xor self test destination buffer allocation direction to bidirectional, as it's what mv_xor_run_tx_complete_actions() frees for multiple sources. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> --- drivers/dma/mv_xor.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index d00a834..1e90f5d 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c @@ -1042,7 +1042,7 @@ mv_xor_xor_self_test(struct mv_xor_chan *mv_chan) /* test xor */ dest_dma = dma_map_page(dma_chan->device->dev, dest, 0, PAGE_SIZE, - DMA_FROM_DEVICE); + DMA_BIDIRECTIONAL); if (dma_mapping_error(dma_chan->device->dev, dest_dma)) { dev_err(dma_chan->device->dev, "Could not map destination page, disabling\n"); -- 1.7.1
next prev parent reply other threads:[~2013-01-18 7:46 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-12-27 19:23 [PATCH 1/2] dma: mv_xor: use proper dma memory management functions Lubomir Rintel 2012-12-27 19:23 ` Lubomir Rintel 2012-12-27 19:23 ` [PATCH 2/2] dma: mv_xor: do not sync the DMA buffer after being deallocated Lubomir Rintel 2012-12-27 19:23 ` Lubomir Rintel 2013-01-04 16:10 ` Thomas Petazzoni 2013-01-04 16:10 ` Thomas Petazzoni 2013-01-13 13:18 ` Lubomir Rintel 2013-01-13 13:18 ` Lubomir Rintel 2013-01-18 7:45 ` Lubomir Rintel 2013-01-18 7:45 ` Lubomir Rintel 2013-01-18 7:46 ` [PATCH 1/3] " Lubomir Rintel 2013-01-18 7:46 ` Lubomir Rintel 2013-01-18 7:46 ` [PATCH 2/3] dma: mv_xor: fix DMA-API error handling sanity check Lubomir Rintel 2013-01-18 7:46 ` Lubomir Rintel 2013-01-18 7:46 ` Lubomir Rintel [this message] 2013-01-18 7:46 ` [PATCH 3/3] dma: mv_xor: get rid of a DMA-API sanity check warning Lubomir Rintel
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1358495182-30964-3-git-send-email-lkundrak@v3.sk \ --to=lkundrak@v3.sk \ --cc=djbw@fb.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=thomas.petazzoni@free-electrons.com \ --cc=vinod.koul@intel.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.