Skip to content

Commit e198980

Browse files
Sricharan Rwildea01
authored andcommitted
iommu/arm-smmu: Set privileged attribute to 'default' instead of 'unprivileged'
Currently the driver sets all the device transactions privileges to UNPRIVILEGED, but there are cases where the iommu masters wants to isolate privileged supervisor and unprivileged user. So don't override the privileged setting to unprivileged, instead set it to default as incoming and let it be controlled by the pagetable settings. Acked-by: Will Deacon <[email protected]> Signed-off-by: Sricharan R <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent 1b2354d commit e198980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/arm-smmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ static int arm_smmu_domain_add_master(struct arm_smmu_domain *smmu_domain,
12141214
continue;
12151215

12161216
s2cr[idx].type = type;
1217-
s2cr[idx].privcfg = S2CR_PRIVCFG_UNPRIV;
1217+
s2cr[idx].privcfg = S2CR_PRIVCFG_DEFAULT;
12181218
s2cr[idx].cbndx = cbndx;
12191219
arm_smmu_write_s2cr(smmu, idx);
12201220
}

0 commit comments

Comments
 (0)