Re: [PATCH v6 12/25] iommu/tegra-smmu: Support DMA domains in tegra

2023-08-14 Thread Jason Gunthorpe
On Mon, Aug 14, 2023 at 01:08:39PM +0800, Baolu Lu wrote: > > @@ -989,6 +989,12 @@ static int tegra_smmu_def_domain_type(struct device > > *dev) > > } > > static const struct iommu_ops tegra_smmu_ops = { > > + /* > > +* FIXME: For now we want to run all translation in IDENTITY mode, > >

Re: [PATCH v6 12/25] iommu/tegra-smmu: Support DMA domains in tegra

2023-08-13 Thread Baolu Lu
On 2023/8/3 8:07, Jason Gunthorpe wrote: All ARM64 iommu drivers should support IOMMU_DOMAIN_DMA to enable dma-iommu.c. tegra is blocking dma-iommu usage, and also default_domain's, because it wants an identity translation. This is needed for some device quirk. The correct way to do this is to s

[PATCH v6 12/25] iommu/tegra-smmu: Support DMA domains in tegra

2023-08-02 Thread Jason Gunthorpe
All ARM64 iommu drivers should support IOMMU_DOMAIN_DMA to enable dma-iommu.c. tegra is blocking dma-iommu usage, and also default_domain's, because it wants an identity translation. This is needed for some device quirk. The correct way to do this is to support IDENTITY domains and use ops->def_do