diff options
author | Tushar Dave <tushar.n.dave@oracle.com> | 2016-10-28 19:12:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-18 20:16:59 +0100 |
commit | 5116ab4eabed575b7cca61a6e89b7d6fb7440970 (patch) | |
tree | caa1c853c629845f71228a52899013b7c474497f /arch/sparc/kernel/pci_sun4v.h | |
parent | sparc64: Initialize iommu_map_table and iommu_pool (diff) | |
download | linux-5116ab4eabed575b7cca61a6e89b7d6fb7440970.tar.xz linux-5116ab4eabed575b7cca61a6e89b7d6fb7440970.zip |
sparc64: Bind PCIe devices to use IOMMU v2 service
In order to use Hypervisor (HV) IOMMU v2 API for map/demap, each PCIe
device has to be bound to IOTSB using HV API pci_iotsb_bind().
Signed-off-by: Tushar Dave <tushar.n.dave@oracle.com>
Reviewed-by: chris hyser <chris.hyser@oracle.com>
Acked-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/pci_sun4v.h')
-rw-r--r-- | arch/sparc/kernel/pci_sun4v.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sparc/kernel/pci_sun4v.h b/arch/sparc/kernel/pci_sun4v.h index 0ef6d1c456e7..1019e0fe6e9d 100644 --- a/arch/sparc/kernel/pci_sun4v.h +++ b/arch/sparc/kernel/pci_sun4v.h @@ -96,4 +96,7 @@ unsigned long pci_sun4v_iotsb_conf(unsigned long devhandle, unsigned long page_size, unsigned long dvma_base, u64 *iotsb_num); +unsigned long pci_sun4v_iotsb_bind(unsigned long devhandle, + unsigned long iotsb_num, + unsigned int pci_device); #endif /* !(_PCI_SUN4V_H) */ |