mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + nvme-use-the-dma_attr_no_warn-attribute.patch added to -mm tree
@ 2016-08-04 22:03 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-08-04 22:03 UTC (permalink / raw)
  To: mauricfo, axboe, benh, k.kozlowski, keith.busch, krisman, mpe,
	mm-commits


The patch titled
     Subject: nvme: use the DMA_ATTR_NO_WARN attribute
has been added to the -mm tree.  Its filename is
     nvme-use-the-dma_attr_no_warn-attribute.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/nvme-use-the-dma_attr_no_warn-attribute.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/nvme-use-the-dma_attr_no_warn-attribute.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
Subject: nvme: use the DMA_ATTR_NO_WARN attribute

Use the DMA_ATTR_NO_WARN attribute for the dma_map_sg() call of the nvme
driver that returns BLK_MQ_RQ_QUEUE_BUSY (not for BLK_MQ_RQ_QUEUE_ERROR).

Link: http://lkml.kernel.org/r/1470092390-25451-4-git-send-email-mauricfo@linux.vnet.ibm.com
Signed-off-by: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
Reviewed-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Cc: Keith Busch <keith.busch@intel.com>
Cc: Jens Axboe <axboe@fb.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/nvme/host/pci.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -puN drivers/nvme/host/pci.c~nvme-use-the-dma_attr_no_warn-attribute drivers/nvme/host/pci.c
--- a/drivers/nvme/host/pci.c~nvme-use-the-dma_attr_no_warn-attribute
+++ a/drivers/nvme/host/pci.c
@@ -503,7 +503,8 @@ static int nvme_map_data(struct nvme_dev
 		goto out;
 
 	ret = BLK_MQ_RQ_QUEUE_BUSY;
-	if (!dma_map_sg(dev->dev, iod->sg, iod->nents, dma_dir))
+	if (!dma_map_sg_attrs(dev->dev, iod->sg, iod->nents, dma_dir,
+				DMA_ATTR_NO_WARN))
 		goto out;
 
 	if (!nvme_setup_prps(dev, req, size))
_

Patches currently in -mm which might be from mauricfo@linux.vnet.ibm.com are

dma-mapping-introduce-the-dma_attr_no_warn-attribute.patch
powerpc-implement-the-dma_attr_no_warn-attribute.patch
nvme-use-the-dma_attr_no_warn-attribute.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-08-04 22:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-04 22:03 + nvme-use-the-dma_attr_no_warn-attribute.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).