iommu/arm-smmu-v3: Clear prior settings when updating STEs
authorNate Watterson <nwatters@codeaurora.org>
Wed, 21 Dec 2016 04:11:48 +0000 (23:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Nov 2017 14:53:13 +0000 (15:53 +0100)
commit3a8ab788bf01af231eaccce4b92168888da521cd
tree6bf22e39739baab0e4837526febdef85e3eef441
parent6f51c8a58397979d8cb38616b51da4d54c7e9e54
iommu/arm-smmu-v3: Clear prior settings when updating STEs

[ Upstream commit 810871c57011eb3e89e6768932757f169d666cd2 ]

To prevent corruption of the stage-1 context pointer field when
updating STEs, rebuild the entire containing dword instead of
clearing individual fields.

Signed-off-by: Nate Watterson <nwatters@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/arm-smmu-v3.c