sparc64: Enable sun4v dma ops to use IOMMU v2 APIs
authorTushar Dave <tushar.n.dave@oracle.com>
Fri, 28 Oct 2016 17:12:44 +0000 (10:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Nov 2016 19:17:00 +0000 (11:17 -0800)
commitf08978b0fdbf37d3c91efb60a20bdee3ba8f59c6
tree61a2039e1611d9898c0c23b13e9d95b70430087a
parent5116ab4eabed575b7cca61a6e89b7d6fb7440970
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>
arch/sparc/include/asm/hypervisor.h
arch/sparc/kernel/pci_sun4v.c
arch/sparc/kernel/pci_sun4v.h
arch/sparc/kernel/pci_sun4v_asm.S