]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: Add support for P2P memory in requests
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 4 Oct 2018 21:27:44 +0000 (15:27 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 17 Oct 2018 17:18:21 +0000 (12:18 -0500)
commit9c3fff04f556bf0ead4d9d8caff4927fb97b74e7
tree06400983b4d86dc3dc9195b1808e9ea273d6906f
parent13d65e15a8cfa4a721551a170999aa7a12410c10
nvme-pci: Add support for P2P memory in requests

For P2P requests, we must use the pci_p2pmem_map_sg() function instead of
the dma_map_sg functions.

With that, we can then indicate PCI_P2P support in the request queue.  For
this, we create an NVME_F_PCI_P2P flag which tells the core to set
QUEUE_FLAG_PCI_P2P in the request queue.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c