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 16:13:09 +0000 (17:13 +0100)
commit158bc64a4dfefa65772d8ca555f5909519dff3ce
tree3f619b90f6a1985c5fbf08792cc87ed130e9e111
parentf20065b466d4f7b2883b3ef26f4b1a51d8ddee91
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