]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Check FL and SL capability sanity in scalable mode
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 14 Oct 2021 05:38:34 +0000 (13:38 +0800)
committerJoerg Roedel <jroedel@suse.de>
Mon, 18 Oct 2021 10:31:48 +0000 (12:31 +0200)
commita7c488606b11a03f9ce0942fb1c00b9257441188
tree4379bf76741627358ad42d1af8e80a9a23266d8f
parentb3fdd945495a5e5a7298275fe359c9660fb640dc
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>
drivers/iommu/intel/cap_audit.c
drivers/iommu/intel/cap_audit.h