]> git.baikalelectronics.ru Git - kernel.git/commit
iommu: Fix trace_map() to report original iova and original size
authorShuah Khan <shuahkh@osg.samsung.com>
Fri, 16 Jan 2015 02:29:43 +0000 (19:29 -0700)
committerJoerg Roedel <jroedel@suse.de>
Mon, 26 Jan 2015 12:15:23 +0000 (13:15 +0100)
commitdaa422efbebf83275a1f14c9de642b1b110646ff
treebfce61fcc588fdb214e9e31d25064569793c0a93
parent38a463e84c1e543147b5513bcbc7179aa53ae71d
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>
drivers/iommu/iommu.c