iommu/tegra-smmu: Do not use PAGE_SHIFT and PAGE_MASK
authorNicolin Chen <nicoleotsuka@gmail.com>
Fri, 11 Sep 2020 07:16:41 +0000 (00:16 -0700)
committerJoerg Roedel <jroedel@suse.de>
Thu, 24 Sep 2020 10:32:31 +0000 (12:32 +0200)
commit82fa58e81d9edc77182aaba4110c3124481e6704
tree1e316fbc8ec5369f3c877b1ce8652d4b2bbbe5fc
parent675d12acb66bb190d32a3fae187e379f01cbd8ce
iommu/tegra-smmu: Do not use PAGE_SHIFT and PAGE_MASK

PAGE_SHIFT and PAGE_MASK are defined corresponding to the page size
for CPU virtual addresses, which means PAGE_SHIFT could be a number
other than 12, but tegra-smmu maintains fixed 4KB IOVA pages and has
fixed [21:12] bit range for PTE entries.

So this patch replaces all PAGE_SHIFT/PAGE_MASK references with the
macros defined with SMMU_PTE_SHIFT.

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20200911071643.17212-2-nicoleotsuka@gmail.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/tegra-smmu.c