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

Jason Gunthorpe <[email protected]>
Newsgroups org.ozlabs.lists.linuxppc-dev,dev.linux.lists.iommu,dev.linux.lists.linux-coco,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel,org.kernel.vger.linux-s390
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.