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

Commit a4229061 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "iommu: msm: do tight polling for TLBSTATUS checking"

parents 9c3a4a1e 2e3dd4fd
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -355,8 +355,10 @@ static void __sync_tlb(struct msm_iommu_drvdata *iommu_drvdata, int ctx,
	SET_TLBSYNC(base, ctx, 0);
	/* No barrier needed due to read dependency */

	res = readl_poll_timeout_atomic(CTX_REG(CB_TLBSTATUS, base, ctx), val,
				(val & CB_TLBSTATUS_SACTIVE) == 0, 10000, 50);
	res = readl_relaxed_poll_timeout_atomic(
			CTX_REG(CB_TLBSTATUS, base, ctx),
			val, (val & CB_TLBSTATUS_SACTIVE) == 0,
			1, 500000);
	if (res)
		check_tlb_sync_state(iommu_drvdata, ctx, priv);
}