]> Pileus Git - ~andy/linux/commit
iommu/arm-smmu: fix table flushing during initial allocations
authorWill Deacon <will.deacon@arm.com>
Wed, 5 Feb 2014 17:49:34 +0000 (17:49 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 10 Feb 2014 17:02:17 +0000 (17:02 +0000)
commit6dd35f45b8dac827b6f9dd86f5aca6436cdd2410
tree325f901f3c1603ced5a26bb5191c8bd59c920a9a
parentc9d09e2748eaa55cac2af274574baa6368189bc1
iommu/arm-smmu: fix table flushing during initial allocations

Now that we populate page tables as we traverse them ("iommu/arm-smmu:
fix pud/pmd entry fill sequence"), we need to ensure that we flush out
our zeroed tables after initial allocation, to prevent speculative TLB
fills using bogus data.

This patch adds additional calls to arm_smmu_flush_pgtable during
initial table allocation, and moves the dsb required by coherent table
walkers into the helper.

Cc: <stable@vger.kernel.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c