Re: [PATCH v9 05/24] dma-mapping: Provide an interface to allow allocate IOVA
From: Luis Chamberlain
Date: Fri Apr 25 2025 - 21:11:16 EST
The subject reads odd, how about:
dma-mapping: Provide an interface to allocate IOVA
> +/**
> + * dma_iova_free - Free an IOVA space
> + * @dev: Device to free the IOVA space for
> + * @state: IOVA state
> + *
> + * Undoes a successful dma_try_iova_alloc().
> + *
> + * Note that all dma_iova_link() calls need to be undone first. For callers
> + * that never call dma_iova_unlink(), dma_iova_destroy() can be used instead
> + * which unlinks all ranges and frees the IOVA space in a single efficient
> + * operation.
> + */
Probably does't matter but dma_iova_destroy() doesn't exist yet here.
Other than that:
Reviewed-by: Luis Chamberlain <mcgrof@xxxxxxxxxx>
Luis