diff options
| author | Mitchel Humpherys <mitchelh@codeaurora.org> | 2016-06-07 11:09:44 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-01-04 14:19:00 -0800 |
| commit | 31d36a8989d1084f16b5a54fa4aa2b14eaff13d9 (patch) | |
| tree | 7e089c4a332287ff42690fbfba4d73fb3cfeb06b /include/linux | |
| parent | 7c59fb5fc30011142894cd703a878868e7958cd4 (diff) | |
iommu: dma-mapping-fast: Only flush non-coherent page tables
Some SMMUs can walk page tables in the CPU cache, avoiding the need to
do cache maintenance operations on the page table memory. Don't do
cache maintenance on SMMUs with coherent page tables.
Change-Id: I47e00e72548212209b59c13a0d7d59cb0ab964ff
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/dma-mapping-fast.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/dma-mapping-fast.h b/include/linux/dma-mapping-fast.h index ddd126c0fd85..560f04736c1d 100644 --- a/include/linux/dma-mapping-fast.h +++ b/include/linux/dma-mapping-fast.h @@ -36,6 +36,8 @@ struct dma_fast_smmu_mapping { spinlock_t lock; struct notifier_block notifier; + + int is_smmu_pt_coherent; }; #ifdef CONFIG_IOMMU_IO_PGTABLE_FAST |
