]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: check DMA ops when indicating support for PCI P2PDMA
authorLogan Gunthorpe <logang@deltatee.com>
Fri, 8 Jul 2022 16:51:00 +0000 (10:51 -0600)
committerChristoph Hellwig <hch@lst.de>
Tue, 26 Jul 2022 11:28:07 +0000 (07:28 -0400)
commitc41cba1e81363ba3a80275f59ba4630e87878497
tree23c922f6f8612f4fddd12026cff502b5bcabeef2
parent61467944a087de49f2eb58e72ae91242ec5c2f3e
nvme-pci: check DMA ops when indicating support for PCI P2PDMA

Introduce a supports_pci_p2pdma() operation in nvme_ctrl_ops to
replace the fixed NVME_F_PCI_P2PDMA flag such that the dma_map_ops
flags can be checked for PCI P2PDMA support.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c