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

From: Bart Van Assche
Date: Wed Jun 08 2022 - 13:29:25 EST


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.