diff options
author | Hiro Sugawara <hsugawara@nvidia.com> | 2011-02-14 18:16:08 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:42:24 -0800 |
commit | 96b81d1d96e516da6305a8e9f0687c8a0d3723d1 (patch) | |
tree | 63dda405fdcaf4d57d16d0f1598174e849079804 /arch/arm/mach-tegra/iovmm-smmu.c | |
parent | 148da10ce18139ba60d62cbca915dd510f65c610 (diff) |
[arm:tegra] Adding more debug printouts
Original-Change-Id: I291b01285f88d6bcbc74563c8667b0f17fcf8a6b
Reviewed-on: http://git-master/r/19519
Tested-by: Hiro Sugawara <hsugawara@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I7010bbb2b06fa2c9317c76b111c511199a4c9686
Rebase-Id: Rbeb18705f6cdff98f6dea3fe2c8c25828b2254f1
Diffstat (limited to 'arch/arm/mach-tegra/iovmm-smmu.c')
-rw-r--r-- | arch/arm/mach-tegra/iovmm-smmu.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/iovmm-smmu.c b/arch/arm/mach-tegra/iovmm-smmu.c index 354f9affae2f..e41eee91e52b 100644 --- a/arch/arm/mach-tegra/iovmm-smmu.c +++ b/arch/arm/mach-tegra/iovmm-smmu.c @@ -589,7 +589,8 @@ static int smmu_map(struct tegra_iovmm_domain *domain, int i; if (as->smmu->verbose) - printk("%s:%d addr=%lx asid=%d\n", __func__, __LINE__, addr, as - as->smmu->as); + printk("%s:%d iova=%lx asid=%d\n", __func__, __LINE__, + addr, as - as->smmu->as); for (i = 0; i < pcount; i++) { unsigned long pfn; @@ -606,6 +607,10 @@ static int smmu_map(struct tegra_iovmm_domain *domain, if (!(pte = locate_pte(as, addr, true, &ptpage, &pte_counter))) goto fail2; + if (as->smmu->verbose) + printk("%s:%d iova=%lx pfn=%lx asid=%d\n", + __func__, __LINE__, + addr, pfn, as - as->smmu->as); if (*pte == _PTE_VACANT(addr)) (*pte_counter)++; *pte = SMMU_PFN_TO_PTE(pfn, as->pte_attr); @@ -657,7 +662,8 @@ static void smmu_unmap(struct tegra_iovmm_domain *domain, unsigned int i, *pte_counter; if (as->smmu->verbose) - printk("%s:%d addr=%lx asid=%d\n", __func__, __LINE__, addr, as - as->smmu->as); + printk("%s:%d iova=%lx asid=%d\n", __func__, __LINE__, + addr, as - as->smmu->as); down(&as->sem); for (i = 0; i < pcount; i++) { unsigned long *pte; @@ -695,8 +701,8 @@ static void smmu_map_pfn(struct tegra_iovmm_domain *domain, struct page *ptpage; if (smmu->verbose) - printk("%s:%d addr=%lx asid=%d\n", __func__, __LINE__, - (unsigned long)addr, as - as->smmu->as); + printk("%s:%d iova=%lx pfn=%lx asid=%d\n", __func__, __LINE__, + (unsigned long)addr, pfn, as - as->smmu->as); BUG_ON(!pfn_valid(pfn)); down(&as->sem); |