Re: [PATCH v3 1/4] dma-mapping: Add dma_opt_mapping_size()

Bart Van Assche
2022-06-08T17:29:21Z

On 6/6/22 02:30, John Garry wrote:
> +::
> +
> + size_t
> + dma_opt_mapping_size(struct device *dev);
> +
> +Returns the maximum optimal size of a mapping for the device. Mapping large
> +buffers may take longer so device drivers are advised to limit total DMA
> +streaming mappings length to the returned value.

"Maximum optimal" sounds weird to me. Is there a single optimal value or
are there multiple optimal values? In the former case I think that the
word "maximum" should be left out.

Thanks,

Bart.