]> 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)
commita8a289cc28cc948ee3e6774bd971d0eeb7359f35
tree23c922f6f8612f4fddd12026cff502b5bcabeef2
parent3d415ba3c1c436558d7d4f226f81e39fc4f68ade
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