diff options
| author | Will Deacon <will.deacon@arm.com> | 2014-02-05 18:35:47 -0500 |
|---|---|---|
| committer | Will Deacon <will.deacon@arm.com> | 2014-02-24 14:09:46 -0500 |
| commit | 3aa80ea4c90d46ffbe200d05b9ceb997001b36df (patch) | |
| tree | ae640b0a46b3f0590138659df5afe0e5a0d77339 | |
| parent | b410aed93288d0bd7650c4d17fd0f306b5082d6f (diff) | |
iommu/arm-smmu: provide option to dsb macro when publishing tables
On coherent systems, publishing new page tables to the SMMU walker is
achieved with a dsb instruction. In fact, this can be a dsb(ishst) which
also provides the mandatory barrier option for arm64.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
| -rw-r--r-- | drivers/iommu/arm-smmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 83297fe0878d..1da5b41afc31 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c | |||
| @@ -678,7 +678,7 @@ static void arm_smmu_flush_pgtable(struct arm_smmu_device *smmu, void *addr, | |||
| 678 | 678 | ||
| 679 | /* Ensure new page tables are visible to the hardware walker */ | 679 | /* Ensure new page tables are visible to the hardware walker */ |
| 680 | if (smmu->features & ARM_SMMU_FEAT_COHERENT_WALK) { | 680 | if (smmu->features & ARM_SMMU_FEAT_COHERENT_WALK) { |
| 681 | dsb(); | 681 | dsb(ishst); |
| 682 | } else { | 682 | } else { |
| 683 | /* | 683 | /* |
| 684 | * If the SMMU can't walk tables in the CPU caches, treat them | 684 | * If the SMMU can't walk tables in the CPU caches, treat them |
