]> www.infradead.org Git - users/hch/block.git/commit
dma-mapping: provide an interface to allocate IOVA
authorLeon Romanovsky <leonro@nvidia.com>
Mon, 29 Jan 2024 11:28:54 +0000 (13:28 +0200)
committerLeon Romanovsky <leon@kernel.org>
Thu, 3 Oct 2024 16:05:52 +0000 (19:05 +0300)
commit3a3a931ee872aa98c7311af27dc3073eb6abaf10
tree678ca2013faf97cec0e425740fbf6b36b090e2aa
parent9ad04dff674c66f95684015ae81ae2d40d1b757c
dma-mapping: provide an interface to allocate IOVA

Existing .map_page() callback provides two things at the same time:
allocates IOVA and links DMA pages. That combination works great for
most of the callers who use it in control paths, but less effective
in fast paths.

These advanced callers already manage their data in some sort of
database and can perform IOVA allocation in advance, leaving range
linkage operation to be in fast path.

Provide an interface to allocate/deallocate IOVA and next patch
link/unlink DMA ranges to that specific IOVA.

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