iommu/tegra-smmu: Parameterize number of TLB lines
authorThierry Reding <treding@nvidia.com>
Thu, 6 Aug 2015 12:20:31 +0000 (14:20 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Aug 2015 15:05:28 +0000 (17:05 +0200)
commit11cec15bf3fb498206ef63b1fa26c27689e02d0e
tree330bd3eff26a1915e86b5e896cdee4db2c909896
parent4080e99b8341f81c4ed1e17d8ef44d171c473a1b
iommu/tegra-smmu: Parameterize number of TLB lines

The number of TLB lines was increased from 16 on Tegra30 to 32 on
Tegra114 and later. Parameterize the value so that the initial default
can be set accordingly.

On Tegra30, initializing the value to 32 would effectively disable the
TLB and hence cause massive latencies for memory accesses translated
through the SMMU. This is especially noticeable for isochronuous clients
such as display, whose FIFOs would continuously underrun.

Fixes: 891846516317 ("memory: Add NVIDIA Tegra memory controller support")
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/iommu/tegra-smmu.c
drivers/memory/tegra/tegra114.c
drivers/memory/tegra/tegra124.c
drivers/memory/tegra/tegra30.c
include/soc/tegra/mc.h