On Wed, Sep 24, 2025 at 04:52:54PM -0300, Jason Gunthorpe wrote:
> 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.

I meant, we cannot prevent others from calling it like host1x does?

Even if we have those replacement APIs that we discussed last time,
such a driver might still want its own domain v.s. default_domain,
for pgsize or other use?

Thanks
Nicolin

Reply via email to