[PATCH v7 02/24] iommu: Add IOMMU_DOMAIN_PLATFORM

2023-08-23 Thread Jason Gunthorpe
This is used when the iommu driver is taking control of the dma_ops, currently only on S390 and power spapr. It is designed to preserve the original ops->detach_dev() semantic that these S390 was built around. Provide an opaque domain type and a 'default_domain' ops value that allows the driver to

Re: [PATCH v7 02/24] iommu: Add IOMMU_DOMAIN_PLATFORM

2023-08-24 Thread Jerry Snitselaar
On Wed, Aug 23, 2023 at 01:47:16PM -0300, Jason Gunthorpe wrote: > This is used when the iommu driver is taking control of the dma_ops, > currently only on S390 and power spapr. It is designed to preserve the > original ops->detach_dev() semantic that these S390 was built around. > > Provide an op

Re: [PATCH v7 02/24] iommu: Add IOMMU_DOMAIN_PLATFORM

2023-08-25 Thread Jason Gunthorpe
On Thu, Aug 24, 2023 at 06:51:48PM -0700, Jerry Snitselaar wrote: > > + /* > > +* Allow legacy drivers to specify the domain that will be the default > > +* domain. This should always be either an IDENTITY or PLATFORM domain. > > +* Do not use in new drivers. > > +*/ > > Would i

Re: [PATCH v7 02/24] iommu: Add IOMMU_DOMAIN_PLATFORM

2023-08-25 Thread Jerry Snitselaar
On Fri, Aug 25, 2023 at 02:40:10PM -0300, Jason Gunthorpe wrote: > On Thu, Aug 24, 2023 at 06:51:48PM -0700, Jerry Snitselaar wrote: > > > > + /* > > > + * Allow legacy drivers to specify the domain that will be the default > > > + * domain. This should always be either an IDENTITY or PLATFORM d