iommu/arm-smmu-v3: Write level-1 descriptors atomically
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Mon, 24 Feb 2020 16:58:43 +0000 (17:58 +0100)
committerWill Deacon <will@kernel.org>
Wed, 18 Mar 2020 21:32:25 +0000 (21:32 +0000)
commit87e5fe5b779a20fa02382aaf169015e68710b9ff
treef2da2a77c24715193ae8c44049567ba7e3b52eb8
parent058c59a047d61601abf503563bbea818ee645c09
iommu/arm-smmu-v3: Write level-1 descriptors atomically

Use WRITE_ONCE() to make sure that the SMMU doesn't read incomplete
stream table descriptors. Refer to the comment about 64-bit accesses,
and add the comment to the equivalent context descriptor code.

Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu-v3.c