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:26:48 +0000 (18:26 +0200)
commit202494a960bd8f1ef74379f82087e0ea61e1390e
tree3b6047187c9d947695e09e5aac54fa99e138887d
parenteb6079678c879de329aef0b524e2af2c48548939
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