[PATCH v2 01/27] iommu/arm-smmu-v3: Check that the RID domain is S1 in SVA

Nicolin Chen nicolinc at nvidia.com
Tue Dec 5 09:47:07 PST 2023


On Wed, Nov 01, 2023 at 08:36:19PM -0300, Jason Gunthorpe wrote:
> This code only works if the RID domain is a S1 domain and has already
> installed the cdtable.
> 
> Add a to_smmu_domain_safe() which does a robust conversion from
> struct iommu_domain to the struct arm_smmu_domain.
> 
> Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>
 
Reviewed-by: Nicolin Chen <nicolinc at nvidia.com>



More information about the linux-arm-kernel mailing list