Re: [PATCH 1/3] iommu/tegra-smmu: Do not use PAGE_SHIFT and PAGE_MASK

2020-09-24 Thread Thierry Reding
On Fri, Sep 11, 2020 at 12:16:41AM -0700, Nicolin Chen wrote: > 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

[PATCH 1/3] iommu/tegra-smmu: Do not use PAGE_SHIFT and PAGE_MASK

2020-09-11 Thread Nicolin Chen
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 refe