All of lore.kernel.org
 help / color / mirror / Atom feed
* [v2] dmaengine: ioatdma: set the completion address register after channel reset
@ 2018-06-19  4:30 Vinod Koul
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2018-06-19  4:30 UTC (permalink / raw)
  To: Dave Jiang; +Cc: dmaengine

On 11-06-18, 12:49, Dave Jiang wrote:
> It seems that starting with Skylake Xeon, channel reset clears the
> completion address register. Make sure the completion address register is
> set again after reset.

Applied, thanks

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

* [v2] dmaengine: ioatdma: set the completion address register after channel reset
@ 2018-06-11 19:49 Dave Jiang
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Jiang @ 2018-06-11 19:49 UTC (permalink / raw)
  To: vkoul; +Cc: dmaengine

It seems that starting with Skylake Xeon, channel reset clears the
completion address register. Make sure the completion address register is
set again after reset.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---

v2: use lower_32_bits() and upper_32_bits() macro. (Sinan Kaya)

 drivers/dma/ioat/dma.c |    6 ++++++
 1 file changed, 6 insertions(+)


--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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);

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

end of thread, other threads:[~2018-06-19  4:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-19  4:30 [v2] dmaengine: ioatdma: set the completion address register after channel reset Vinod Koul
  -- strict thread matches above, loose matches on Subject: below --
2018-06-11 19:49 Dave Jiang

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.