[PATCH v4 5/7] iommu: Add iommu_get_domain_for_dev_locked() helper
Jason Gunthorpe
jgg at nvidia.com
Wed Sep 24 12:52:54 PDT 2025
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
More information about the linux-riscv
mailing list