]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/nvme/host/nvme.h
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)
commite0596ab2900dfa64c0538e4aef8eec3c6f0f38eb
tree06400983b4d86dc3dc9195b1808e9ea273d6906f
parent0f238ff5cc92554fe8ddc6c3776386f31a4d38fa
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