Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 235dc35b authored by Patrick Daly's avatar Patrick Daly
Browse files

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: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 44729256
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1469,7 +1469,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;