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

Commit 59b4a2d7 authored by Prakash Gupta's avatar Prakash Gupta
Browse files

iommu: arm-smmu: ratelimit context fault verification



Frequent context faults can cause excessive logging issue. Many of
arm_smmu_context_fault() traces are ratelimited, it makes sense to
verify_fault only when we can log the output which is ratelimited. Bring
arm_smmu_verify_fault() call under ratelimit.

Change-Id: Id4afafe8c6d381ca945a34bd12a4498cd695d758
Signed-off-by: default avatarPrakash Gupta <guptap@codeaurora.org>
parent 17eb0120
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1493,9 +1493,11 @@ static irqreturn_t arm_smmu_context_fault(int irq, void *dev)
		ret = IRQ_HANDLED;
		resume = RESUME_TERMINATE;
	} else {
		phys_addr_t phys_atos = arm_smmu_verify_fault(domain, iova,
							      fsr);
		if (__ratelimit(&_rs)) {
			phys_addr_t phys_atos = arm_smmu_verify_fault(domain,
								      iova,
								      fsr);

			dev_err(smmu->dev,
				"Unhandled context fault: iova=0x%08lx, cb=%d, fsr=0x%x, fsynr0=0x%x, fsynr1=0x%x\n",
				iova, cfg->cbndx, fsr, fsynr0, fsynr1);