iommu/tegra-smmu: Fix invalid ASID bits on Tegra30/114
authorDmitry Osipenko <digetx@gmail.com>
Wed, 6 Mar 2019 22:50:07 +0000 (01:50 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 May 2019 16:23:30 +0000 (18:23 +0200)
commitb18339bc1d052c184bd00f25339fc1a7e4387a00
tree720a1f4e9649c62cae0ecb65c32566366e1bc7d6
parenta9676c96e7e06f3f90e9f2e7413b949dfc4d2df5
iommu/tegra-smmu: Fix invalid ASID bits on Tegra30/114

commit 43a0541e312f7136e081e6bf58f6c8a2e9672688 upstream.

Both Tegra30 and Tegra114 have 4 ASID's and the corresponding bitfield of
the TLB_FLUSH register differs from later Tegra generations that have 128
ASID's.

In a result the PTE's are now flushed correctly from TLB and this fixes
problems with graphics (randomly failing tests) on Tegra30.

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/tegra-smmu.c