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

Commit 03188c7f authored by Vaibhav Deshu Venkatesh's avatar Vaibhav Deshu Venkatesh
Browse files

msm: vidc: Return EINVAL for SMMU fault handler



Currently we are returning 0 in SMMU fault handler.
However, if we return -EINVAL, then smmu driver assumes
page fault handler is not installed and prints a list of
useful debug information.

CRs-Fixed: 2344373
Change-Id: I3ca6731eb9a30b7d4ef03f4d580e622d9a8c6c0f
Signed-off-by: default avatarVaibhav Deshu Venkatesh <vdeshuve@codeaurora.org>
parent 40d6bc9f
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1029,7 +1029,13 @@ int msm_vidc_smmu_fault_handler(struct iommu_domain *domain,
	}
	core->smmu_fault_handled = true;
	mutex_unlock(&core->lock);
	return 0;
	/*
	 * Return -EINVAL to elicit the default behaviour of smmu driver.
	 * If we return -EINVAL, then smmu driver assumes page fault handler
	 * is not installed and prints a list of useful debug information like
	 * FAR, SID etc. This information is not printed if we return 0.
	 */
	return -EINVAL;
}

static int msm_vidc_populate_context_bank(struct device *dev,