diff options
author | Sri Krishna chowdary <schowdary@nvidia.com> | 2014-02-13 12:17:55 +0530 |
---|---|---|
committer | Hiroshi Doyu <hdoyu@nvidia.com> | 2014-02-16 23:45:50 -0800 |
commit | 536a97cfd64fd69ebefb1c037d2851b1da13537d (patch) | |
tree | 2fef8602dc94e9762b29eabd2aa9a222fcf64440 /drivers/iommu | |
parent | db46e20ad3f16c2fdf1380485681717cd8cbfb39 (diff) |
iommu: tegra: remove page reserving logic
Since the allocations for page tables happen from kernel,
there is no need for reserving them.
Change-Id: I9ab7a5656a917f539ad33e217d44f39108886437
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/366487
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/tegra-smmu.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index 6cfaa79ee367..89a96d057b28 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c @@ -664,7 +664,6 @@ static void free_ptbl(struct smmu_as *as, dma_addr_t iova, bool flush) if (pdir[pdn] != _PDE_VACANT(pdn)) { dev_dbg(as->smmu->dev, "pdn: %x\n", pdn); - ClearPageReserved(SMMU_EX_PTBL_PAGE(pdir[pdn])); __free_page(SMMU_EX_PTBL_PAGE(pdir[pdn])); pdir[pdn] = _PDE_VACANT(pdn); FLUSH_CPU_DCACHE(&pdir[pdn], as->pdir_page, sizeof pdir[pdn]); @@ -754,7 +753,6 @@ static void free_pdir(struct smmu_as *as) free_ptbl(as, addr, 1); addr += SMMU_PAGE_SIZE * SMMU_PTBL_COUNT; } - ClearPageReserved(as->pdir_page); __free_page(as->pdir_page); as->pdir_page = NULL; devm_kfree(dev, as->pte_count); @@ -784,7 +782,6 @@ static struct page *alloc_ptbl(struct smmu_as *as, dma_addr_t iova, bool flush) if (!page) return NULL; - SetPageReserved(page); ptbl = (u32 *)page_address(page); if (IS_ENABLED(CONFIG_TEGRA_IOMMU_SMMU_LINEAR)) { for (i = 0; i < SMMU_PTBL_COUNT; i++) { @@ -893,7 +890,6 @@ static int alloc_pdir(struct smmu_as *as) as->pdir_page = page; as->pte_count = cnt; - SetPageReserved(as->pdir_page); pdir = page_address(as->pdir_page); for (pdn = 0; pdn < SMMU_PDIR_COUNT; pdn++) |