iommu/arm-smmu: Fix DOMAIN_ATTR_S1_BYPASS check
change "iommu/arm-smmu: Support DOMAIN_ATTR_S1_BYPASS" checks the wrong bit when determine whether to bypass or not to bypass stage1 translation. Fix it. CRs-Fixed: 995213 Change-Id: Id347f540f866be6b8442d5f166c6cf7b0ae4c000 Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
This commit is contained in:
parent
c1b29ef10e
commit
2a0c9c9dee
1 changed files with 3 additions and 1 deletions
|
@ -1454,7 +1454,9 @@ static void arm_smmu_init_context_bank(struct arm_smmu_domain *smmu_domain,
|
|||
|
||||
/* SCTLR */
|
||||
reg = SCTLR_CFCFG | SCTLR_CFIE | SCTLR_CFRE | SCTLR_EAE_SBOP;
|
||||
if (!stage1 || !(smmu_domain->attributes & DOMAIN_ATTR_S1_BYPASS))
|
||||
|
||||
if (!(smmu_domain->attributes & (1 << DOMAIN_ATTR_S1_BYPASS)) ||
|
||||
!stage1)
|
||||
reg |= SCTLR_M;
|
||||
if (stage1)
|
||||
reg |= SCTLR_S1_ASIDPNE;
|
||||
|
|
Loading…
Add table
Reference in a new issue