Commit 1a36ea81 authored by Ohad Ben-Cohen's avatar Ohad Ben-Cohen Committed by Joerg Roedel

iommu/omap: be verbose when omap_iommu_iova_to_phys fails

An omap_iommu_iova_to_phys failure usually means that iova wasn't mapped.

When that happens, it's helpful to know the value of iova, so add it
to the error message.
Signed-off-by: default avatarOhad Ben-Cohen <ohad@wizery.com>
Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 608205c0
...@@ -1177,14 +1177,14 @@ static phys_addr_t omap_iommu_iova_to_phys(struct iommu_domain *domain, ...@@ -1177,14 +1177,14 @@ static phys_addr_t omap_iommu_iova_to_phys(struct iommu_domain *domain,
else if (iopte_is_large(*pte)) else if (iopte_is_large(*pte))
ret = omap_iommu_translate(*pte, da, IOLARGE_MASK); ret = omap_iommu_translate(*pte, da, IOLARGE_MASK);
else else
dev_err(dev, "bogus pte 0x%x", *pte); dev_err(dev, "bogus pte 0x%x, da 0x%lx", *pte, da);
} else { } else {
if (iopgd_is_section(*pgd)) if (iopgd_is_section(*pgd))
ret = omap_iommu_translate(*pgd, da, IOSECTION_MASK); ret = omap_iommu_translate(*pgd, da, IOSECTION_MASK);
else if (iopgd_is_super(*pgd)) else if (iopgd_is_super(*pgd))
ret = omap_iommu_translate(*pgd, da, IOSUPER_MASK); ret = omap_iommu_translate(*pgd, da, IOSUPER_MASK);
else else
dev_err(dev, "bogus pgd 0x%x", *pgd); dev_err(dev, "bogus pgd 0x%x, da 0x%lx", *pgd, da);
} }
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment