File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -2791,6 +2791,32 @@ static const struct iommu_dirty_ops amd_dirty_ops = {
2791
2791
.read_and_clear_dirty = amd_iommu_read_and_clear_dirty ,
2792
2792
};
2793
2793
2794
+ static int amd_iommu_dev_enable_feature (struct device * dev ,
2795
+ enum iommu_dev_features feat )
2796
+ {
2797
+ int ret ;
2798
+
2799
+ switch (feat ) {
2800
+ default :
2801
+ ret = - EINVAL ;
2802
+ break ;
2803
+ }
2804
+ return ret ;
2805
+ }
2806
+
2807
+ static int amd_iommu_dev_disable_feature (struct device * dev ,
2808
+ enum iommu_dev_features feat )
2809
+ {
2810
+ int ret ;
2811
+
2812
+ switch (feat ) {
2813
+ default :
2814
+ ret = - EINVAL ;
2815
+ break ;
2816
+ }
2817
+ return ret ;
2818
+ }
2819
+
2794
2820
const struct iommu_ops amd_iommu_ops = {
2795
2821
.capable = amd_iommu_capable ,
2796
2822
.domain_alloc = amd_iommu_domain_alloc ,
@@ -2803,6 +2829,8 @@ const struct iommu_ops amd_iommu_ops = {
2803
2829
.is_attach_deferred = amd_iommu_is_attach_deferred ,
2804
2830
.pgsize_bitmap = AMD_IOMMU_PGSIZES ,
2805
2831
.def_domain_type = amd_iommu_def_domain_type ,
2832
+ .dev_enable_feat = amd_iommu_dev_enable_feature ,
2833
+ .dev_disable_feat = amd_iommu_dev_disable_feature ,
2806
2834
.default_domain_ops = & (const struct iommu_domain_ops ) {
2807
2835
.attach_dev = amd_iommu_attach_device ,
2808
2836
.map_pages = amd_iommu_map_pages ,
You can’t perform that action at this time.
0 commit comments