]> www.infradead.org Git - users/dwmw2/linux.git/commit
iommu/arm-smmu-v3: Make SVA allocate a normal arm_smmu_domain
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 25 Jun 2024 12:37:39 +0000 (09:37 -0300)
committerWill Deacon <will@kernel.org>
Tue, 2 Jul 2024 14:39:47 +0000 (15:39 +0100)
commitd7b2d2ba1b84f4ae7cd94de22f74d6c6c5419de6
treebc7d94e20646e1ddcdbefeaefde5d33117b42750
parent1d5f34f0002f9f56d0ca153022cfdead07d45dc6
iommu/arm-smmu-v3: Make SVA allocate a normal arm_smmu_domain

Currently the SVA domain is a naked struct iommu_domain, allocate a struct
arm_smmu_domain instead.

This is necessary to be able to use the struct arm_master_domain
mechanism.

Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Michael Shavit <mshavit@google.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/8-v9-5cd718286059+79186-smmuv3_newapi_p2b_jgg@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h