Skip to contentSkip to conversation

async-tx fixes for 2.6.25-rc

GIT PULL Dan Williams 1 participant 1 message Mar 4, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Linus, please pull from:

master.kernel.org:/pub/scm/linux/kernel/git/djbw/async_tx.git fixes

to receive:

Dan Williams (3):
fsldma: do not cleanup descriptors in hardirq context
dmaengine: fix sparse warning
ioat: fix 'ack' handling, driver must ensure that 'ack' is zero

Zhang Wei (1):
dmaengine: add driver for Freescale MPC85xx DMA controller

 MAINTAINERS               |    7 +
 drivers/dma/Kconfig       |   19 +-
 drivers/dma/Makefile      |    1 +
 drivers/dma/fsldma.c      | 1067 +++++++++++++++++++++++++++++++++++++++++++++
 drivers/dma/fsldma.h      |  189 ++++++++
 drivers/dma/ioat_dma.c    |    2 +
 include/linux/dmaengine.h |    2 +-
 7 files changed, 1285 insertions(+), 2 deletions(-)

The fsldma driver has been in -mm for a few releases and I rebased it on the api updates that went in during the 2.6.25 merge window. I have added an Acked-by from Kumar after clarifying there were no more outstanding review comments [1].

Regards,
Dan

[1] http://marc.info/?l=linux-kernel&m=120304718509330&w=2

MAINTAINERS +7 -0
index fed09b5..a0f78e7 100644
@@ -1589,6 +1589,13 @@ L:	[email protected] (moderated for non-subscribers)
 W:	http://linux-fbdev.sourceforge.net/
 S:	Maintained
 
+FREESCALE DMA DRIVER
+P;	Zhang Wei
+M:	[email protected]
+L:	[email protected]
+L:	[email protected]
+S:	Maintained
+
 FREESCALE SOC FS_ENET DRIVER
 P:	Pantelis Antoniou
 M:	[email protected]
drivers/dma/Kconfig +18 -1
index a703def..27340a7 100644
@@ -4,7 +4,7 @@
 
 menuconfig DMADEVICES
 	bool "DMA Engine support"
-	depends on (PCI && X86) || ARCH_IOP32X || ARCH_IOP33X || ARCH_IOP13XX
+	depends on (PCI && X86) || ARCH_IOP32X || ARCH_IOP33X || ARCH_IOP13XX || PPC
 	depends on !HIGHMEM64G
 	help
 	  DMA engines can do asynchronous data transfers without
@@ -37,6 +37,23 @@ config INTEL_IOP_ADMA
 	help
 	  Enable support for the Intel(R) IOP Series RAID engines.
 
+config FSL_DMA
+	bool "Freescale MPC85xx/MPC83xx DMA support"
+	depends on PPC
+	select DMA_ENGINE
+	---help---
+	  Enable support for the Freescale DMA engine. Now, it support
+	  MPC8560/40, MPC8555, MPC8548 and MPC8641 processors.
+	  The MPC8349, MPC8360 is also supported.
+
+config FSL_DMA_SELFTEST
+	bool "Enable the self test for each DMA channel"
+	depends on FSL_DMA
+	default y
+	---help---
+	  Enable the self test for each DMA channel. A self test will be
+	  performed after the channel probed to ensure the DMA works well.
+
 config DMA_ENGINE
 	bool
 
drivers/dma/Makefile +1 -0
index b152cd8..c8036d9 100644
@@ -3,3 +3,4 @@ obj-$(CONFIG_NET_DMA) += iovlock.o
 obj-$(CONFIG_INTEL_IOATDMA) += ioatdma.o
 ioatdma-objs := ioat.o ioat_dma.o ioat_dca.o
 obj-$(CONFIG_INTEL_IOP_ADMA) += iop-adma.o
+obj-$(CONFIG_FSL_DMA) += fsldma.o
drivers/dma/fsldma.c new file +1067 -0

1,067 lines not on this page · raw message

drivers/dma/fsldma.h new file +189 -0

189 lines not on this page · raw message

drivers/dma/ioat_dma.c +2 -0
index dff38ac..4017d9e 100644
@@ -714,6 +714,7 @@ static struct dma_async_tx_descriptor *ioat1_dma_prep_memcpy(
 		new->len = len;
 		new->dst = dma_dest;
 		new->src = dma_src;
+		new->async_tx.ack = 0;
 		return &new->async_tx;
 	} else
 		return NULL;
@@ -741,6 +742,7 @@ static struct dma_async_tx_descriptor *ioat2_dma_prep_memcpy(
 		new->len = len;
 		new->dst = dma_dest;
 		new->src = dma_src;
+		new->async_tx.ack = 0;
 		return &new->async_tx;
 	} else
 		return NULL;
include/linux/dmaengine.h +1 -1
index acbb364..261e43a 100644
@@ -366,7 +366,7 @@ __dma_has_cap(enum dma_transaction_type tx_type, dma_cap_mask_t *srcp)
  */
 static inline void dma_async_issue_pending(struct dma_chan *chan)
 {
-	return chan->device->device_issue_pending(chan);
+	chan->device->device_issue_pending(chan);
 }
 
 #define dma_async_memcpy_issue_pending(chan) dma_async_issue_pending(chan)