Re: [PATCH v2 2/2] dma: add IOMMU static calls with clear default ops

From: Christoph Hellwig
Date: Mon Jul 29 2024 - 13:15:31 EST


On Mon, Jul 29, 2024 at 12:41:12PM +0000, Mostafa Saleh wrote:
> Just out of curiosity, is there any observed improvement from that?
> As from my experience the DMA-IOMMU path is quite dense so it won't
> be senstive to such micro-optimizations.

We are trying to gradually fix this. Part of that is adding not even
more indirect calls for the next generation map API. But another totally
unrelated part is that we can compile out the dma ops entirely for
common configs, which I really want because people are badly abusing it.