[PATCH v2 14/19] iommu/arm-smmu-v3: Remove arm_smmu_master->domain
Nicolin Chen
nicolinc at nvidia.com
Mon Dec 4 20:47:25 PST 2023
On Mon, Nov 13, 2023 at 01:53:21PM -0400, Jason Gunthorpe wrote:
> Introducing global statics which are of type struct iommu_domain, not
> struct arm_smmu_domain makes it difficult to retain
> arm_smmu_master->domain, as it can no longer point to an IDENTITY or
> BLOCKED domain.
>
> The only place that uses the value is arm_smmu_detach_dev(). Change things
> to work like other drivers and call iommu_get_domain_for_dev() to obtain
> the current domain.
>
> Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>
The new version on the github looks good to me.
Reviewed-by: Nicolin Chen <nicolinc at nvidia.com>
More information about the linux-arm-kernel
mailing list