File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
drivers/iommu/arm/arm-smmu-v3 Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -3674,6 +3674,10 @@ static int arm_smmu_device_hw_probe(struct arm_smmu_device *smmu)
3674
3674
3675
3675
smmu -> ias = max (smmu -> ias , smmu -> oas );
3676
3676
3677
+ if ((smmu -> features & ARM_SMMU_FEAT_TRANS_S1 ) &&
3678
+ (smmu -> features & ARM_SMMU_FEAT_TRANS_S2 ))
3679
+ smmu -> features |= ARM_SMMU_FEAT_NESTING ;
3680
+
3677
3681
arm_smmu_device_iidr_probe (smmu );
3678
3682
3679
3683
if (arm_smmu_sva_supported (smmu ))
Original file line number Diff line number Diff line change @@ -645,6 +645,7 @@ struct arm_smmu_device {
645
645
#define ARM_SMMU_FEAT_BTM (1 << 16)
646
646
#define ARM_SMMU_FEAT_SVA (1 << 17)
647
647
#define ARM_SMMU_FEAT_E2H (1 << 18)
648
+ #define ARM_SMMU_FEAT_NESTING (1 << 19)
648
649
u32 features ;
649
650
650
651
#define ARM_SMMU_OPT_SKIP_PREFETCH (1 << 0)
You can’t perform that action at this time.
0 commit comments