async-tx fixes for 2.6.25-rc
Subsystems (3)
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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)