summaryrefslogtreecommitdiff
path: root/drivers/iommu/intel/cap_audit.h
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2021-10-14 08:38:34 +0300
committerJoerg Roedel <jroedel@suse.de>2021-10-18 13:31:48 +0300
commit7afd7f6aa21a2929aff3a059b741933ee1819c6b (patch)
tree4379bf76741627358ad42d1af8e80a9a23266d8f /drivers/iommu/intel/cap_audit.h
parentb34380a6d767c54480a937951e6189a7f9699443 (diff)
downloadlinux-7afd7f6aa21a2929aff3a059b741933ee1819c6b.tar.xz
iommu/vt-d: Check FL and SL capability sanity in scalable mode
An iommu domain could be allocated and mapped before it's attached to any device. This requires that in scalable mode, when the domain is allocated, the format (FL or SL) of the page table must be determined. In order to achieve this, the platform should support consistent SL or FL capabilities on all IOMMU's. This adds a check for this and aborts IOMMU probing if it doesn't meet this requirement. Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Link: https://lore.kernel.org/r/20210926114535.923263-1-baolu.lu@linux.intel.com Link: https://lore.kernel.org/r/20211014053839.727419-5-baolu.lu@linux.intel.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel/cap_audit.h')
-rw-r--r--drivers/iommu/intel/cap_audit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/intel/cap_audit.h b/drivers/iommu/intel/cap_audit.h
index 74cfccae0e81..d07b75938961 100644
--- a/drivers/iommu/intel/cap_audit.h
+++ b/drivers/iommu/intel/cap_audit.h
@@ -111,6 +111,7 @@ bool intel_cap_smts_sanity(void);
bool intel_cap_pasid_sanity(void);
bool intel_cap_nest_sanity(void);
bool intel_cap_flts_sanity(void);
+bool intel_cap_slts_sanity(void);
static inline bool scalable_mode_support(void)
{