projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
608205c
)
iommu/omap: be verbose when omap_iommu_iova_to_phys fails
author
Ohad Ben-Cohen
<ohad@wizery.com>
Tue, 6 Dec 2011 13:22:10 +0000
(15:22 +0200)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Tue, 6 Dec 2011 13:56:08 +0000
(14:56 +0100)
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: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/omap-iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/omap-iommu.c
b/drivers/iommu/omap-iommu.c
index b7f863d72c08420d45cfc6c533951bce085694e6..cbcbf31ec3be2ea8f045092324b76fa9913b9d5e 100644
(file)
--- a/
drivers/iommu/omap-iommu.c
+++ b/
drivers/iommu/omap-iommu.c
@@
-1177,14
+1177,14
@@
static phys_addr_t omap_iommu_iova_to_phys(struct iommu_domain *domain,
else if (iopte_is_large(*pte))
ret = omap_iommu_translate(*pte, da, IOLARGE_MASK);
else
- dev_err(dev, "bogus pte 0x%x
", *pte
);
+ dev_err(dev, "bogus pte 0x%x
, da 0x%lx", *pte, da
);
} else {
if (iopgd_is_section(*pgd))
ret = omap_iommu_translate(*pgd, da, IOSECTION_MASK);
else if (iopgd_is_super(*pgd))
ret = omap_iommu_translate(*pgd, da, IOSUPER_MASK);
else
- dev_err(dev, "bogus pgd 0x%x
", *pgd
);
+ dev_err(dev, "bogus pgd 0x%x
, da 0x%lx", *pgd, da
);
}
return ret;