Re: [PATCH v4 1/7] iommu/arm-smmu-v3: Add release_domain to attach prior to release_dev()

Jason Gunthorpe
2025-09-23T17:44:58Z

On Tue, Sep 23, 2025 at 10:37:31AM -0700, Nicolin Chen wrote:
> On Tue, Sep 23, 2025 at 02:22:29PM -0300, Jason Gunthorpe wrote:
> > On Fri, Sep 19, 2025 at 03:47:49PM -0700, Nicolin Chen wrote:
> > > +/* Same as arm_smmu_blocked_ops but less set_dev_pasid */
> > > +static const struct iommu_domain_ops arm_smmu_release_ops = {
> > > + .attach_dev = arm_smmu_attach_dev_blocked,
> > > +};
> >
> > don't worry about set_dev_pasid for the release domain, it is never
> > called anyhow.
> >
> > The intention is to just use identity or blocked domains as is.
>
> Ah, I see AMD separate release_domain from blocked_domain..

Send a patch for AMD since you found it?

Jason