]> www.infradead.org Git - users/hch/block.git/commit
iommu/dma: Provide an interface to allow preallocate IOVA
authorLeon Romanovsky <leonro@nvidia.com>
Sun, 29 Oct 2023 13:49:40 +0000 (15:49 +0200)
committerLeon Romanovsky <leon@kernel.org>
Thu, 3 Oct 2024 16:05:52 +0000 (19:05 +0300)
commit985a0cafd59e451a770bda139e88f1809ceedfe5
tree80dc39f5a7c3a26efb5552ed4ab7d3187b685ac2
parent7c22783a517cf8e35bac75702dc4ef458f2088c4
iommu/dma: Provide an interface to allow preallocate IOVA

Separate IOVA allocation to dedicated callback so it will allow
cache of IOVA and reuse it in fast paths for devices which support
ODP (on-demand-paging) mechanism.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/iommu/dma-iommu.c
include/linux/dma-mapping.h
include/linux/iommu-dma.h