]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dma-mapping: reliably inform about DMA support for IOMMU
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 11 Sep 2024 10:15:00 +0000 (13:15 +0300)
committerChristoph Hellwig <hch@lst.de>
Thu, 12 Sep 2024 07:19:35 +0000 (09:19 +0200)
commitf45cfab28fcd5ac67a38750b6c68316b26d35ac8
treecc0ccc1423b62a758a9709ef502a3f15ad040ef5
parent038eb433dc1474c4bc7d33188294e3d4778efdfd
dma-mapping: reliably inform about DMA support for IOMMU

If the DMA IOMMU path is going to be used, the appropriate check should
return that DMA is supported.

Fixes: b5c58b2fdc42 ("dma-mapping: direct calls for dma-iommu")
Closes: https://lore.kernel.org/all/181e06ff-35a3-434f-b505-672f430bd1cb@notapiano
Reported-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com> #KernelCI
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/mapping.c