Re: [PATCH v8 12/23] dma: swiotlb: pass mapping attributes by reference

From: Jason Gunthorpe

Date: Tue Aug 04 2026 - 10:26:11 EST


On Wed, Jul 29, 2026 at 06:12:38PM +0530, Aneesh Kumar K.V wrote:
> There is a possibility that we may support io_tlb_mem with cc_shared =
> false in the future. As a result, only swiotlb_map() knows which type of
> bounce buffer was used, making it the only place where the attributes
> can be updated correctly.

Yeah, +1, the attribute should be changed at the same effective place
the source memory is changed away from what the DMA API user
provided. Only the thing providing the new memory (eg swiotlb) should
know its properties.

Jason