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

Commit d7168742 authored by Chintan Pandya's avatar Chintan Pandya Committed by Gerrit - the friendly Code Review server
Browse files

iommu: msm: add notifier calling for sync_tlb issues



When sync_tlb gets timeout, respective client needs some
notification to get debug info from their device  point
of view. So, add the notifier calling routine and not
just limit it to some debug defconfig.

Change-Id: I532022e38af0f4db9d12048c02e19663cd284a8e
Signed-off-by: default avatarChintan Pandya <cpandya@codeaurora.org>
parent 4c951261
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -303,6 +303,13 @@ static void check_halt_state(struct msm_iommu_drvdata const *drvdata)
static void check_tlb_sync_state(struct msm_iommu_drvdata const *drvdata,
				int ctx, struct msm_iommu_priv *priv)
{
	char const *name = drvdata->name;

	pr_err("Timed out waiting for TLB SYNC to complete for %s (client: %s)\n",
		name, priv->client_name);

	atomic_notifier_call_chain(&msm_iommu_notifier_list, TLB_SYNC_TIMEOUT,
				(void *) priv->client_name);
	BUG();
}