+static void register_pasid_allocator(struct intel_iommu *iommu) +{ + if (!intel_iommu_sm) { Use sm_supported(iommu) instead. sounds good, seems we could separate the sm code more cleanly in the future to avoid all these checks.
+static void register_pasid_allocator(struct intel_iommu *iommu) +{ + if (!intel_iommu_sm) { Use sm_supported(iommu) instead.
+static void register_pasid_allocator(struct intel_iommu *iommu) +{ + if (!intel_iommu_sm) {