diff options
author | Alex Van Brunt <avanbrunt@nvidia.com> | 2013-08-13 11:04:24 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:40:43 -0700 |
commit | 73719a3e4ec135c2c439df65246859658e19bc06 (patch) | |
tree | 40e4e4674411c27c2d478705fc232bb012aded46 /drivers/iommu | |
parent | 9a551f2751d2f6f4f5e919a28ea424a2798e1e9b (diff) |
iommu/tegra: smmu: Fix map linear at attach
Fix map linear in the LPAE case where dma addresses are 64 bits
long. So, the printk's need to cast to u64 in all cases.
Bug 1297607
Change-Id: Ibf80d40139152bbdd080df6953e8ad2394f49a35
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/261102
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/tegra-smmu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index d019d36bc70c..3cb0e0e29cc0 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c @@ -1354,10 +1354,12 @@ static int smmu_iommu_attach_dev(struct iommu_domain *domain, err = iommu_map(domain, area->start, area->start, size, 0); if (err) - dev_err(dev, "Failed to map %08x(%x)\n", area->start, + dev_err(dev, "Failed to map %016llx(%x)\n", + (u64)area->start, size); else - dev_info(dev, "map %08x(%x)\n", area->start, size); + dev_info(dev, "map %016llx(%x)\n", (u64)area->start, + size); area++; } |