summaryrefslogtreecommitdiff
path: root/drivers/iommu/amd_iommu_types.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-03-27 13:07:27 +0300
committerJoerg Roedel <jroedel@suse.de>2015-03-31 17:35:35 +0300
commit804cb54cbb3ddac58218e830d64816617bdb6da8 (patch)
tree2dcd8489f27b51dcdf99fe43267262ae80aced1a /drivers/iommu/amd_iommu_types.h
parent836a8ac9fe60fb112e830464868791bf7470e7b6 (diff)
downloadlinux-804cb54cbb3ddac58218e830d64816617bdb6da8.tar.xz
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/amd_iommu_types.h')
0 files changed, 0 insertions, 0 deletions