File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -5817,6 +5817,13 @@ static void intel_iommu_apply_resv_region(struct device *dev,
5817
5817
WARN_ON_ONCE (!reserve_iova (& dmar_domain -> iovad , start , end ));
5818
5818
}
5819
5819
5820
+ static struct iommu_group * intel_iommu_device_group (struct device * dev )
5821
+ {
5822
+ if (dev_is_pci (dev ))
5823
+ return pci_device_group (dev );
5824
+ return generic_device_group (dev );
5825
+ }
5826
+
5820
5827
#ifdef CONFIG_INTEL_IOMMU_SVM
5821
5828
struct intel_iommu * intel_svm_device_to_iommu (struct device * dev )
5822
5829
{
@@ -5989,7 +5996,7 @@ const struct iommu_ops intel_iommu_ops = {
5989
5996
.get_resv_regions = intel_iommu_get_resv_regions ,
5990
5997
.put_resv_regions = intel_iommu_put_resv_regions ,
5991
5998
.apply_resv_region = intel_iommu_apply_resv_region ,
5992
- .device_group = pci_device_group ,
5999
+ .device_group = intel_iommu_device_group ,
5993
6000
.dev_has_feat = intel_iommu_dev_has_feat ,
5994
6001
.dev_feat_enabled = intel_iommu_dev_feat_enabled ,
5995
6002
.dev_enable_feat = intel_iommu_dev_enable_feat ,
You can’t perform that action at this time.
0 commit comments