[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240717082145.GA15484@lst.de>
Date: Wed, 17 Jul 2024 10:21:45 +0200
From: Christoph Hellwig <hch@....de>
To: Leon Romanovsky <leon@...nel.org>
Cc: Christoph Hellwig <hch@....de>, Robin Murphy <robin.murphy@....com>,
Joerg Roedel <joro@...tes.org>, Will Deacon <will@...nel.org>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Leon Romanovsky <leonro@...dia.com>,
Easwar Hariharan <eahariha@...ux.microsoft.com>,
linux-kernel@...r.kernel.org, iommu@...ts.linux.dev,
Jason Gunthorpe <jgg@...dia.com>
Subject: Re: [PATCH v1 2/2] dma: Add IOMMU static calls with clear default
ops
dma_is_default_iommu still looks a bit odd to me - basically we have
the ops structure just to say to bypass it. Why not add a single-bit
dma_iommu field to struct device next to dma_ops_bypass to skip it?
Then IOMMU_DMA also does not need to select DMA_OPS any more, which
would be kinda silly with the direct calls.
Powered by blists - more mailing lists