]> git.baikalelectronics.ru Git - kernel.git/commit
dma-mapping: add flags to dma_map_ops to indicate PCI P2PDMA support
authorLogan Gunthorpe <logang@deltatee.com>
Fri, 8 Jul 2022 16:50:57 +0000 (10:50 -0600)
committerChristoph Hellwig <hch@lst.de>
Tue, 26 Jul 2022 11:27:48 +0000 (07:27 -0400)
commit3334500cf130a0ac140b0eafc206cb478a574628
tree75717c2bb4987d1fa94fe913de87f7ab6460b5cb
parent5f304a69eef6bf0fb3b5d2e570e692504e6a9995
dma-mapping: add flags to dma_map_ops to indicate PCI P2PDMA support

Add a flags member to the dma_map_ops structure with one flag to
indicate support for PCI P2PDMA.

Also, add a helper to check if a device supports PCI P2PDMA.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/linux/dma-map-ops.h
include/linux/dma-mapping.h
kernel/dma/mapping.c