aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorShuah Khan <shuahkh@osg.samsung.com>2015-01-15 19:29:43 -0700
committerJoerg Roedel <jroedel@suse.de>2015-01-26 13:15:23 +0100
commit860cd64d102d9b6c97830e09c447a9a850ea7641 (patch)
treebfce61fcc588fdb214e9e31d25064569793c0a93 /drivers/iommu
parentiommu: Change trace unmap api to report unmapped size (diff)
downloadlinux-dev-860cd64d102d9b6c97830e09c447a9a850ea7641.tar.xz
linux-dev-860cd64d102d9b6c97830e09c447a9a850ea7641.zip
iommu: Fix trace_map() to report original iova and original size
iommu_map() calls trace_map() with iova and size. trace_map() should report original iova and original size as opposed to iova and size after they get changed during mapping. size is always zero at the end of mapping which is useless to report and iova as it gets incremented, it is not as useful as the original iova. Change iommu_map() to call trace_map() to report original iova and original size. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com> Reported-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index 3a4fb6274c99..9e0dcdbf4110 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -1084,7 +1084,7 @@ int iommu_map(struct iommu_domain *domain, unsigned long iova,
if (ret)
iommu_unmap(domain, orig_iova, orig_size - size);
else
- trace_map(iova, paddr, size);
+ trace_map(orig_iova, paddr, orig_size);
return ret;
}