]> git.openpandora.org Git - pandora-kernel.git/commitdiff
dma: MIC X100 DMA Driver
authorSiva Yerramreddy <yshivakrishna@gmail.com>
Fri, 11 Jul 2014 21:04:21 +0000 (14:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 16:57:42 +0000 (09:57 -0700)
This patch implements DMA Engine API for DMA controller on MIC X100
Coprocessors. DMA h/w is shared between host and card s/w.
Channels 0 to 3 are used by host and 4 to 7 are used by card.
Since the DMA device doesn't show up as PCIe device, a virtual bus called mic
bus is created and virtual devices are added on that bus to follow device model.
Allowed dma transfer directions are host to card, card to host and card to card.

Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Nikhil Rao <nikhil.rao@intel.com>
Reviewed-by: Sudeep Dutt <sudeep.dutt@intel.com>
Signed-off-by: Siva Yerramreddy <yshivakrishna@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/Kconfig
drivers/dma/Makefile
drivers/dma/mic_x100_dma.c [new file with mode: 0644]
drivers/dma/mic_x100_dma.h [new file with mode: 0644]

index 1eca7b9760e6cec55e356ad0565c37d5e5e14ad9..7c8b8c41f4f43df8d25da54c0582a25e4b0ee9bb 100644 (file)
@@ -33,6 +33,25 @@ if DMADEVICES
 
 comment "DMA Devices"
 
+config INTEL_MIC_X100_DMA
+       tristate "Intel MIC X100 DMA Driver"
+       depends on 64BIT && X86 && INTEL_MIC_BUS
+       select DMAENGINE
+       default N
+       help
+         This enables DMA support for the Intel Many Integrated Core
+         (MIC) family of PCIe form factor coprocessor X100 devices that
+         run a 64 bit Linux OS. This driver will be used by both MIC
+         host and card drivers.
+
+         If you are building host kernel with a MIC device or a card
+         kernel for a MIC device, then say M (recommended) or Y, else
+         say N. If unsure say N.
+
+         More information about the Intel MIC family as well as the Linux
+         OS and tools for MIC to use with this driver are available from
+         <http://software.intel.com/en-us/mic-developer>.
+
 config INTEL_MID_DMAC
        tristate "Intel MID DMA support for Peripheral DMA controllers"
        depends on PCI && X86
index c779e1eb2db2acca9f35a1faf24dffb04dd930fb..bd9e7fa928bd24a6b160a693e0b2c321492b7ee2 100644 (file)
@@ -47,3 +47,4 @@ obj-$(CONFIG_MOXART_DMA) += moxart-dma.o
 obj-$(CONFIG_FSL_EDMA) += fsl-edma.o
 obj-$(CONFIG_QCOM_BAM_DMA) += qcom_bam_dma.o
 obj-y += xilinx/
+obj-$(CONFIG_INTEL_MIC_X100_DMA) += mic_x100_dma.o
Simple merge
Simple merge