iommu/tegra: smmu: Fix race condition in writing PTC registers
authorKrishna Reddy <vdumpa@nvidia.com>
Fri, 27 Mar 2015 18:42:40 +0000 (11:42 -0700)
committerWinnie Hsu <whsu@nvidia.com>
Wed, 15 Apr 2015 18:11:51 +0000 (11:11 -0700)
commit0ab97b0540c717428f35b9421a396e1c79937b5e
treeb7b6c263ee2ec8d20af843183e808f1a52f27f13
parentdf86d46c835f58e0537c8c2a8d258589963d5f17
iommu/tegra: smmu: Fix race condition in writing PTC registers

Fix race condition in programming PTC flush registers.
This race condition results in PTC flush not happening as intended and
can cause either SMMU fault or previous stale mapping access.

Bug 1625885
Bug 1603840

Change-Id: Ie94a8cfe947d8363a252f05dcd98fac10920586a
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/724503
Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com>
Tested-by: Hiroshi Doyu <hdoyu@nvidia.com>
GVS: Gerrit_Virtual_Submit
drivers/iommu/tegra-smmu.c