Re: [PATCH v4 5/7] iommu: Add iommu_get_domain_for_dev_locked() helper

Jason Gunthorpe
2025-09-24T19:53:00Z

On Wed, Sep 24, 2025 at 12:49:14PM -0700, Nicolin Chen wrote:
> > I really wanted to say this should just always return the
> > default_domain, but it looks like host1x_client_iommu_detach() is the
> > only place outside the iommu drivers that would be unhappy with that.
>
> I suppose any external user that allocates/attaches a domain has a
> risk of potentially using this helper, in which case group->domain
> may not be default_domain?

Yes, host1x seemed to be the only place that had that intersection.

Jason