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

Commit 0e532e42 authored by Michael Adisumarta's avatar Michael Adisumarta
Browse files

msm: ipa: Added check to detect iova range collision



this fix detects any overlap of IPA AP/ USB iova range with
carved out PCIe/IPA iova range.

Change-Id: Ib2f1f8a011714d918eeced0c6ddb9501ec14f9ce
Acked-by: default avatarJyothi J <jyothij@qti.qualcomm.com>
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent 5c45eea1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2476,7 +2476,7 @@ static int ipa_mpm_populate_smmu_info(struct platform_device *pdev)
	cb->va_size = carved_iova_ap_mapping[1];
	cb->va_end = cb->va_start + cb->va_size;

	if (cb->va_start >= ap_cb->va_start && cb->va_start < ap_cb->va_end) {
	if (cb->va_start >= ap_cb->va_start || cb->va_end >= ap_cb->va_start) {
		IPA_MPM_ERR("MPM iommu and AP overlap addr 0x%lx\n",
				cb->va_start);
		ipa_assert();