From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Davis Subject: [PATCH 12/22] x86, swiotlb: Add swiotlb_map_peer_resource() to swiotlb_dma_ops Date: Tue, 15 Sep 2015 12:10:57 -0500 Message-ID: <1442337067-22964-13-git-send-email-wdavis@nvidia.com> References: <1442337067-22964-1-git-send-email-wdavis@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1442337067-22964-1-git-send-email-wdavis@nvidia.com> Sender: linux-pci-owner@vger.kernel.org To: Bjorn Helgaas Cc: Alex Williamson , Joerg Roedel , iommu@lists.linux-foundation.org, linux-pci@vger.kernel.org, Konrad Wilk , Mark Hounschell , "David S. Miller" , Jonathan Corbet , Terence Ripperda , John Hubbard , Jerome Glisse , Will Davis List-Id: iommu@lists.linux-foundation.org Signed-off-by: Will Davis --- arch/x86/kernel/pci-swiotlb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kernel/pci-swiotlb.c b/arch/x86/kernel/pci-swiotlb.c index adf0392..844b89b 100644 --- a/arch/x86/kernel/pci-swiotlb.c +++ b/arch/x86/kernel/pci-swiotlb.c @@ -57,6 +57,9 @@ static struct dma_map_ops swiotlb_dma_ops = { .unmap_sg = swiotlb_unmap_sg_attrs, .map_page = swiotlb_map_page, .unmap_page = swiotlb_unmap_page, +#ifdef CONFIG_HAS_DMA_P2P + .map_peer_resource = swiotlb_map_peer_resource, +#endif .dma_supported = NULL, }; -- 2.5.1