summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorVinod Koul <vkoul@kernel.org>2018-08-17 14:28:07 +0200
committerVinod Koul <vkoul@kernel.org>2018-08-17 14:28:07 +0200
commit2cc50b9f92dc55a0f8c379a48893d8afde33628b (patch)
tree32066be78c446291979f74fefb5a2f54f18e8385 /drivers/dma
parentMerge branch 'topic/intel' into for-linus (diff)
parentdmaengine: ioatdma: set the completion address register after channel reset (diff)
downloadlinux-2cc50b9f92dc55a0f8c379a48893d8afde33628b.tar.xz
linux-2cc50b9f92dc55a0f8c379a48893d8afde33628b.zip
Merge branch 'topic/ioat' into for-linus
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/ioat/dma.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c
index 8b5b23a8ace9..23fb2fa04000 100644
--- a/drivers/dma/ioat/dma.c
+++ b/drivers/dma/ioat/dma.c
@@ -688,6 +688,12 @@ static void ioat_restart_channel(struct ioatdma_chan *ioat_chan)
{
u64 phys_complete;
+ /* set the completion address register again */
+ writel(lower_32_bits(ioat_chan->completion_dma),
+ ioat_chan->reg_base + IOAT_CHANCMP_OFFSET_LOW);
+ writel(upper_32_bits(ioat_chan->completion_dma),
+ ioat_chan->reg_base + IOAT_CHANCMP_OFFSET_HIGH);
+
ioat_quiesce(ioat_chan, 0);
if (ioat_cleanup_preamble(ioat_chan, &phys_complete))
__cleanup(ioat_chan, phys_complete);