File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -5786,6 +5786,13 @@ static void intel_iommu_apply_resv_region(struct device *dev,
57865786 WARN_ON_ONCE (!reserve_iova (& dmar_domain -> iovad , start , end ));
57875787}
57885788
5789+ static struct iommu_group * intel_iommu_device_group (struct device * dev )
5790+ {
5791+ if (dev_is_pci (dev ))
5792+ return pci_device_group (dev );
5793+ return generic_device_group (dev );
5794+ }
5795+
57895796#ifdef CONFIG_INTEL_IOMMU_SVM
57905797struct intel_iommu * intel_svm_device_to_iommu (struct device * dev )
57915798{
@@ -5958,7 +5965,7 @@ const struct iommu_ops intel_iommu_ops = {
59585965 .get_resv_regions = intel_iommu_get_resv_regions ,
59595966 .put_resv_regions = intel_iommu_put_resv_regions ,
59605967 .apply_resv_region = intel_iommu_apply_resv_region ,
5961- .device_group = pci_device_group ,
5968+ .device_group = intel_iommu_device_group ,
59625969 .dev_has_feat = intel_iommu_dev_has_feat ,
59635970 .dev_feat_enabled = intel_iommu_dev_feat_enabled ,
59645971 .dev_enable_feat = intel_iommu_dev_enable_feat ,
You can’t perform that action at this time.
0 commit comments