v2: - Make dma_prep_memcpy_* into one function per Dan. - Addressed various comments from Ross with code formatting and etc. - Replaced open code with offset_in_page() macro per Johannes. The following series implements adds blk-mq support to the pmem block driver and also adds infrastructure code to ioatdma and dmaengine in order to support copying to and from scatterlist in order to process block requests provided by blk-mq. The usage of DMA engines available on certain platforms allow us to drastically reduce CPU utilization and at the same time maintain performance that is good enough. Experimentations have been done on DRAM backed pmem block device that showed the utilization of DMA engine is beneficial. User can revert back to original behavior by providing queue_mode=0 to the nd_pmem kernel module if desired. --- Dave Jiang (5): dmaengine: ioatdma: revert 7618d035 to allow sharing of DMA channels dmaengine: ioatdma: dma_prep_memcpy_sg support dmaengine: add SG support to dmaengine_unmap libnvdimm: Adding blk-mq support to the pmem driver libnvdimm: add DMA support for pmem blk-mq drivers/dma/dmaengine.c | 45 +++++- drivers/dma/ioat/dma.h | 4 + drivers/dma/ioat/init.c | 4 - drivers/dma/ioat/prep.c | 57 ++++++++ drivers/nvdimm/pmem.c | 331 ++++++++++++++++++++++++++++++++++++++++++--- drivers/nvdimm/pmem.h | 3 include/linux/dmaengine.h | 9 + 7 files changed, 420 insertions(+), 33 deletions(-) -- -- To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html