disp: msm: sde: update smmu fault handler to print debug info

This change updates the smmu fault handlers in the display driver
to return -ENOSYS. This will print out useful debug information
from smmu driver.

Change-Id: I427982286abe4d592f270477c8ad2e2be74700c9
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
This commit is contained in:
Nilaan Gunabalachandran
2021-02-19 15:30:48 -05:00
committed by Gerrit - the friendly Code Review server
orang tua 4c41c05d7c
melakukan 0623a02a84
2 mengubah file dengan 5 tambahan dan 7 penghapusan

Melihat File

@@ -426,11 +426,10 @@ static int msm_smmu_fault_handler(struct iommu_domain *domain,
int flags, void *token)
{
struct msm_smmu_client *client;
int rc = -EINVAL;
if (!token) {
DRM_ERROR("Error: token is NULL\n");
return -EINVAL;
return -ENOSYS;
}
client = (struct msm_smmu_client *)token;
@@ -444,7 +443,7 @@ static int msm_smmu_fault_handler(struct iommu_domain *domain,
* return -ENOSYS to allow smmu driver to dump out useful
* debug info.
*/
return rc;
return -ENOSYS;
}
/**