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

Commit 578e1a42 authored by Skylar Chang's avatar Skylar Chang Committed by Mohammed Javid
Browse files

msm: ipa3: fix the fast_map issue



Currently ipa driver AP-CB always enables
fast_map flag when calling smmu API.
Make fix to enable it when IPA
dtsi specifies fast_map flag.

CRs-Fixed: 2261733
Change-Id: I325ead58b6873f798af14ffe2182aa48a008141d
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent cbfc0b35
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -6205,6 +6205,7 @@ static int ipa_smmu_ap_cb_probe(struct device *dev)
		}
		IPADBG("AP/USB SMMU atomic set\n");

		if (smmu_info.fast_map) {
			if (iommu_domain_set_attr(cb->mapping->domain,
				DOMAIN_ATTR_FAST,
				&fast)) {
@@ -6215,6 +6216,7 @@ static int ipa_smmu_ap_cb_probe(struct device *dev)
			}
			IPADBG("SMMU fast map set\n");
		}
	}

	pr_info("IPA smmu_info.s1_bypass_arr[AP]=%d smmu_info.fast_map=%d\n",
		smmu_info.s1_bypass_arr[IPA_SMMU_CB_AP], smmu_info.fast_map);