From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C211321AEB0A0 for ; Wed, 2 Aug 2017 11:38:46 -0700 (PDT) Subject: [PATCH v2 0/5] Adding blk-mq and DMA support to pmem block driver From: Dave Jiang Date: Wed, 02 Aug 2017 11:40:57 -0700 Message-ID: <150169902310.59677.18062301799811367806.stgit@djiang5-desk3.ch.intel.com> MIME-Version: 1.0 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: vinod.koul@intel.com, dan.j.williams@intel.com Cc: dmaengine@vger.kernel.org, linux-nvdimm@lists.01.org List-ID: 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(-) -- _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm