From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764770AbZEHAkS (ORCPT ); Thu, 7 May 2009 20:40:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762049AbZEHARb (ORCPT ); Thu, 7 May 2009 20:17:31 -0400 Received: from adsl-76-233-236-102.dsl.pltn13.sbcglobal.net ([76.233.236.102]:48373 "EHLO abulafia.goop.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1762334AbZEHAR0 (ORCPT ); Thu, 7 May 2009 20:17:26 -0400 From: Jeremy Fitzhardinge To: Ingo Molnar Cc: FUJITA Tomonori , the arch/x86 maintainers , Linux Kernel Mailing List , Xen-devel , Jeremy Fitzhardinge Subject: [PATCH 8/9] xen/swiotlb: add sync functions Date: Thu, 7 May 2009 17:17:21 -0700 Message-Id: <1241741842-7966-9-git-send-email-jeremy@goop.org> X-Mailer: git-send-email 1.6.0.6 In-Reply-To: <1241741842-7966-1-git-send-email-jeremy@goop.org> References: <1241741842-7966-1-git-send-email-jeremy@goop.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jeremy Fitzhardinge Impact: bugfix Add all the missing sync functions. This fixes iwlagn. (Need to think about what to do with non-swiotlb mode.) Signed-off-by: Jeremy Fitzhardinge --- drivers/pci/xen-iommu.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/pci/xen-iommu.c b/drivers/pci/xen-iommu.c index 492ef42..81338b2 100644 --- a/drivers/pci/xen-iommu.c +++ b/drivers/pci/xen-iommu.c @@ -312,6 +312,13 @@ static struct dma_mapping_ops xen_swiotlb_dma_ops = { .mapping_error = swiotlb_dma_mapping_error, + .sync_single_for_cpu = swiotlb_sync_single_for_cpu, + .sync_single_for_device = swiotlb_sync_single_for_device, + .sync_single_range_for_cpu = swiotlb_sync_single_range_for_cpu, + .sync_single_range_for_device = swiotlb_sync_single_range_for_device, + .sync_sg_for_cpu = swiotlb_sync_sg_for_cpu, + .sync_sg_for_device = swiotlb_sync_sg_for_device, + .is_phys = 0, }; -- 1.6.0.6