Re: [PATCH 2/2] iommu: Fix the domain type checks when default_domain is set

2024-01-26 Thread Shivaprasad G Bhat
On 1/25/24 21:22, Jason Gunthorpe wrote: On Thu, Jan 25, 2024 at 06:08:52AM -0600, Shivaprasad G Bhat wrote: On PPC64, the iommu_ops.def_domain_type() is not defined and CONFIG_IOMMU_DMA not enabled. With commit 0f6a90436a57 ("iommu: Do not use IOMMU_DOMAIN_DMA if CONFIG_IOMMU_DMA is not

Re: [PATCH 2/2] iommu: Fix the domain type checks when default_domain is set

2024-01-25 Thread Jason Gunthorpe
On Thu, Jan 25, 2024 at 06:08:52AM -0600, Shivaprasad G Bhat wrote: > On PPC64, the iommu_ops.def_domain_type() is not defined and > CONFIG_IOMMU_DMA not enabled. With commit 0f6a90436a57 ("iommu: Do not > use IOMMU_DOMAIN_DMA if CONFIG_IOMMU_DMA is not enabled"), the >

[PATCH 2/2] iommu: Fix the domain type checks when default_domain is set

2024-01-25 Thread Shivaprasad G Bhat
On PPC64, the iommu_ops.def_domain_type() is not defined and CONFIG_IOMMU_DMA not enabled. With commit 0f6a90436a57 ("iommu: Do not use IOMMU_DOMAIN_DMA if CONFIG_IOMMU_DMA is not enabled"), the iommu_get_default_domain_type() return IOMMU_DOMAIN_IDENTITY. With commit 2ad56efa80db ("powerpc/iommu: