sparc64: Enable sun4v dma ops to use IOMMU v2 APIs
Add Hypervisor IOMMU v2 APIs pci_iotsb_map(), pci_iotsb_demap() and enable sun4v dma ops to use IOMMU v2 API for all PCIe devices with 64bit DMA mask. 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>
This commit is contained in:

committed by
David S. Miller

parent
5116ab4eab
commit
f08978b0fd
@@ -2377,6 +2377,12 @@ unsigned long sun4v_vintr_set_target(unsigned long dev_handle,
|
||||
* iotsb_index Zero-based IOTTE number within an IOTSB.
|
||||
*/
|
||||
|
||||
/* The index_count argument consists of two fields:
|
||||
* bits 63:48 #iottes and bits 47:0 iotsb_index
|
||||
*/
|
||||
#define HV_PCI_IOTSB_INDEX_COUNT(__iottes, __iotsb_index) \
|
||||
(((u64)(__iottes) << 48UL) | ((u64)(__iotsb_index)))
|
||||
|
||||
/* pci_iotsb_conf()
|
||||
* TRAP: HV_FAST_TRAP
|
||||
* FUNCTION: HV_FAST_PCI_IOTSB_CONF
|
||||
|
Reference in New Issue
Block a user