Skip to contentSkip to conversation

iommu: Remove iommu_sva_unbind_gpasid

PATCH In review Mark-PK Tsai 3 participants 3 messages Jun 28, 2024 – Jul 2, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommu: Remove iommu_sva_unbind_gpasid

This is a left over of commit 0c9f17877891
("iommu: Remove guest pasid related interfaces and definitions")

---
 include/linux/iommu.h | 2 --
 1 file changed, 2 deletions(-)
include/linux/iommu.h +0 -2
index 17b3f36ad843..225403cfe614 100644
@@ -785,8 +785,6 @@ extern int iommu_attach_device(struct iommu_domain *domain,
 			       struct device *dev);
 extern void iommu_detach_device(struct iommu_domain *domain,
 				struct device *dev);
-extern int iommu_sva_unbind_gpasid(struct iommu_domain *domain,
-				   struct device *dev, ioasid_t pasid);
 extern struct iommu_domain *iommu_get_domain_for_dev(struct device *dev);
 extern struct iommu_domain *iommu_get_dma_domain(struct device *dev);
 extern int iommu_map(struct iommu_domain *domain, unsigned long iova,
Signature · 1 line
2.18.0
#1 lore raw
Quoted 13 lines · Mark-PK Tsai

This is a left over of commit 0c9f17877891
("iommu: Remove guest pasid related interfaces and definitions")

---
  include/linux/iommu.h | 2 --
  1 file changed, 2 deletions(-)
include/linux/iommu.h +0 -0
index 17b3f36ad843..225403cfe614 100644

include/linux/iommu.h extern int iommu_attach_device(struct iommu_domain *domain, · line 789

Quoted 5 lines
include/linux/iommu.h +0 -2
@@ -785,8 +785,6 @@ extern int iommu_attach_device(struct iommu_domain *domain,
  			       struct device *dev);
  extern void iommu_detach_device(struct iommu_domain *domain,
  				struct device *dev);
-extern int iommu_sva_unbind_gpasid(struct iommu_domain *domain,
-				   struct device *dev, ioasid_t pasid);

Not sure why this still remains there. But it seems not alone.

$ git grep iommu_sva_unbind_gpasid
Documentation/userspace-api/iommu.rst:  int iommu_sva_unbind_gpasid(struct iommu_domain *domain,
include/linux/iommu.h:extern int iommu_sva_unbind_gpasid(struct iommu_domain *domain,

I believe the document should also be removed.

include/linux/iommu.h extern int iommu_attach_device(struct iommu_domain *domain, · line 790

Quoted 3 lines
include/linux/iommu.h +0 -0
  extern struct iommu_domain *iommu_get_domain_for_dev(struct device *dev);
  extern struct iommu_domain *iommu_get_dma_domain(struct device *dev);
  extern int iommu_map(struct iommu_domain *domain, unsigned long iova,

Best regards,
baolu

maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Mark-PK Tsai

Il 28/06/24 13:30, Mark-PK Tsai ha scritto:

Quoted 4 lines

This is a left over of commit 0c9f17877891
("iommu: Remove guest pasid related interfaces and definitions")

Please also fix the documentation, after which:

Quoted 17 lines
---
  include/linux/iommu.h | 2 --
  1 file changed, 2 deletions(-)
include/linux/iommu.h +0 -2
index 17b3f36ad843..225403cfe614 100644
@@ -785,8 +785,6 @@ extern int iommu_attach_device(struct iommu_domain *domain,
  			       struct device *dev);
  extern void iommu_detach_device(struct iommu_domain *domain,
  				struct device *dev);
-extern int iommu_sva_unbind_gpasid(struct iommu_domain *domain,
-				   struct device *dev, ioasid_t pasid);
  extern struct iommu_domain *iommu_get_domain_for_dev(struct device *dev);
  extern struct iommu_domain *iommu_get_dma_domain(struct device *dev);
  extern int iommu_map(struct iommu_domain *domain, unsigned long iova,