summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/arm-smmu.c
diff options
context:
space:
mode:
authorWill Deacon2014-02-26 12:14:37 +0100
committerWill Deacon2014-02-27 20:08:43 +0100
commit34fb4b37b7b6da7dc34797d1abf234dd30b091d8 (patch)
treef020f4b2e6015ca317ea6ff5c88a4ecf225e4e12 /drivers/iommu/arm-smmu.c
parentiommu/arm-smmu: provide option to dsb macro when publishing tables (diff)
downloadkernel-qcow2-linux-34fb4b37b7b6da7dc34797d1abf234dd30b091d8.tar.gz
kernel-qcow2-linux-34fb4b37b7b6da7dc34797d1abf234dd30b091d8.tar.xz
kernel-qcow2-linux-34fb4b37b7b6da7dc34797d1abf234dd30b091d8.zip
iommu/arm-smmu: fix incorrect comment regarding TLB invalidation
Commit 1463fe44fd0f ("iommu/arm-smmu: Don't use VMIDs for stage-1 translations") moved our TLB invalidation from context creation time to context destruction time, but forgot to update an associated comment. This patch fixes the broken comment. Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/iommu/arm-smmu.c')
-rw-r--r--drivers/iommu/arm-smmu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index 1da5b41afc31..8b89e33a89fe 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -1026,9 +1026,8 @@ static void arm_smmu_free_pgtables(struct arm_smmu_domain *smmu_domain)
/*
* Recursively free the page tables for this domain. We don't
- * care about speculative TLB filling, because the TLB will be
- * nuked next time this context bank is re-allocated and no devices
- * currently map to these tables.
+ * care about speculative TLB filling because the tables should
+ * not be active in any context bank at this point (SCTLR.M is 0).
*/
pgd = pgd_base;
for (i = 0; i < PTRS_PER_PGD; ++i) {