summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2017-04-07 18:23:01 +0200
committerJoerg Roedel <jroedel@suse.de>2017-04-07 18:23:01 +0200
commitacf7f76b6466837ccbbcf7bb85b411d56c7df2ea (patch)
tree7be6329cbd5635e6d86ec295c1c14c964fe7442e /include
parenta71c9a1c779f2499fb2afc0553e543f18aff6edf (diff)
parent022f4e4f31fea69702f3ec810dc567af6a6d86d8 (diff)
downloadlinux-acf7f76b6466837ccbbcf7bb85b411d56c7df2ea.tar.gz
Merge branch 'for-joerg/arm-smmu/updates' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux into arm/smmu
Diffstat (limited to 'include')
-rw-r--r--include/linux/iommu.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/iommu.h b/include/linux/iommu.h
index 2e4de0deee53..88ec8c6580d3 100644
--- a/include/linux/iommu.h
+++ b/include/linux/iommu.h
@@ -32,10 +32,13 @@
 #define IOMMU_NOEXEC	(1 << 3)
 #define IOMMU_MMIO	(1 << 4) /* e.g. things like MSI doorbells */
 /*
- * This is to make the IOMMU API setup privileged
- * mapppings accessible by the master only at higher
- * privileged execution level and inaccessible at
- * less privileged levels.
+ * Where the bus hardware includes a privilege level as part of its access type
+ * markings, and certain devices are capable of issuing transactions marked as
+ * either 'supervisor' or 'user', the IOMMU_PRIV flag requests that the other
+ * given permission flags only apply to accesses at the higher privilege level,
+ * and that unprivileged transactions should have as little access as possible.
+ * This would usually imply the same permissions as kernel mappings on the CPU,
+ * if the IOMMU page table format is equivalent.
  */
 #define IOMMU_PRIV	(1 << 5)