diff options
author | Thierry Reding <treding@nvidia.com> | 2015-03-27 11:07:27 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-03-31 16:35:35 +0200 |
commit | 804cb54cbb3ddac58218e830d64816617bdb6da8 (patch) | |
tree | 2dcd8489f27b51dcdf99fe43267262ae80aced1a /drivers/iommu/tegra-gart.c | |
parent | 836a8ac9fe60fb112e830464868791bf7470e7b6 (diff) |
iommu/tegra: smmu: Compute PFN mask at runtime
The SMMU on Tegra30 and Tegra114 supports addressing up to 4 GiB of
physical memory. On Tegra124 the addressable physical memory was
extended to 16 GiB. The page frame number stored in PTEs therefore
requires 20 or 22 bits, depending on SoC generation.
In order to cope with this, compute the proper value at runtime.
Reported-by: Joseph Lo <josephl@nvidia.com>
Cc: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/tegra-gart.c')
0 files changed, 0 insertions, 0 deletions