Skip to content

Commit 9fde008

Browse files
jgunthorpewilldeacon
authored andcommitted
iommu/arm-smmu-v3: Remove ARM_SMMU_DOMAIN_NESTED
Currently this is exactly the same as ARM_SMMU_DOMAIN_S2, so just remove it. The ongoing work to add nesting support through iommufd will do something a little different. Reviewed-by: Moritz Fischer <mdf@kernel.org> Reviewed-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Nicolin Chen <nicolinc@nvidia.com> Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com> Tested-by: Nicolin Chen <nicolinc@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Will Deacon <will@kernel.org>
1 parent 12a48fe commit 9fde008

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,6 @@ static void arm_smmu_write_strtab_ent(struct arm_smmu_master *master, u32 sid,
12891289
cd_table = &master->cd_table;
12901290
break;
12911291
case ARM_SMMU_DOMAIN_S2:
1292-
case ARM_SMMU_DOMAIN_NESTED:
12931292
s2_cfg = &smmu_domain->s2_cfg;
12941293
break;
12951294
default:
@@ -2170,7 +2169,6 @@ static int arm_smmu_domain_finalise(struct iommu_domain *domain)
21702169
fmt = ARM_64_LPAE_S1;
21712170
finalise_stage_fn = arm_smmu_domain_finalise_s1;
21722171
break;
2173-
case ARM_SMMU_DOMAIN_NESTED:
21742172
case ARM_SMMU_DOMAIN_S2:
21752173
ias = smmu->ias;
21762174
oas = smmu->oas;
@@ -2739,7 +2737,7 @@ static int arm_smmu_enable_nesting(struct iommu_domain *domain)
27392737
if (smmu_domain->smmu)
27402738
ret = -EPERM;
27412739
else
2742-
smmu_domain->stage = ARM_SMMU_DOMAIN_NESTED;
2740+
smmu_domain->stage = ARM_SMMU_DOMAIN_S2;
27432741
mutex_unlock(&smmu_domain->init_mutex);
27442742

27452743
return ret;

drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,6 @@ struct arm_smmu_master {
715715
enum arm_smmu_domain_stage {
716716
ARM_SMMU_DOMAIN_S1 = 0,
717717
ARM_SMMU_DOMAIN_S2,
718-
ARM_SMMU_DOMAIN_NESTED,
719718
ARM_SMMU_DOMAIN_BYPASS,
720719
};
721720

0 commit comments

Comments
 (0)