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

Commit 454ec002 authored by Charan Teja Reddy's avatar Charan Teja Reddy
Browse files

iommu: arm-smmu: improve tlbsync timeout debugging



Call BUG() right after the first TLB sync timeout which will helps in
getting the system state information at that point of time that further
helps in debugging.

Change-Id: Id2d3eb491080b12486c99966da72afe2f6deefb4
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
parent a74cb474
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -371,6 +371,16 @@ config ARM_SMMU_SELFTEST

	  If unsure, say N here.

config IOMMU_TLBSYNC_DEBUG
	bool "TLB sync timeout debug"
	depends on ARM_SMMU
	help
	  Enables to collect the SMMU system state information right
	  after the first TLB sync timeout failure by calling BUG().
	  Note to use this only on debug builds.

	  If unsure, say N here.

config QCOM_LAZY_MAPPING
	bool "Reference counted iommu-mapping support"
	depends on ION
+2 −0
Original line number Diff line number Diff line
@@ -1120,6 +1120,8 @@ static int __arm_smmu_tlb_sync(struct arm_smmu_device *smmu,
	dev_err_ratelimited(smmu->dev,
			    "TLB sync timed out -- SMMU may be deadlocked, ack 0x%x\n",
			    sync_inv_ack);
	BUG_ON(IS_ENABLED(CONFIG_IOMMU_TLBSYNC_DEBUG));

	return -EINVAL;
}