From 9bbc577a32d600a6e0706699b48315726b58d87e Mon Sep 17 00:00:00 2001 From: Mitchel Humpherys Date: Fri, 8 Aug 2014 15:28:44 -0700 Subject: iommu/arm-smmu: add .domain_{set,get}_attr for coherent walk control Under certain conditions coherent hardware translation table walks can result in degraded performance. Add a new domain attribute to disable/enable this feature in generic code along with the domain attribute setter and getter to handle it in the ARM SMMU driver. Change-Id: Ic9812d5047af19093ec2db8246a7f0f9ccb626ab Signed-off-by: Mitchel Humpherys --- include/linux/iommu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') diff --git a/include/linux/iommu.h b/include/linux/iommu.h index e6a7c9ff72f2..54ea8444cf19 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -84,6 +84,7 @@ enum iommu_attr { DOMAIN_ATTR_FSL_PAMU_ENABLE, DOMAIN_ATTR_FSL_PAMUV1, DOMAIN_ATTR_NESTING, /* two stages of translation */ + DOMAIN_ATTR_COHERENT_HTW_DISABLE, DOMAIN_ATTR_MAX, }; -- cgit v1.2.3