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

Jason Gunthorpe <[email protected]> Tue, 4 Aug 2026 11:20:32 -0300
Newsgroups gmane.linux.ports.ppc.embedded
Message-ID <20260804142032.GC27883__10551.0176786751$1785853293$gmane$org@nvidia.com>
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