OSDN Git Service

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)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:14:46 +0000 (11:14 -0700)
commite3cbebee4f58ee3ce4fc79ec067c799eb4a7c424
tree543ed13cd30d2284796743e0984d060853793a89
parentb5adea36a6c97070a89d9bd4c9bc1d34d015c000
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