|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
[Xen-devel] [PATCH 08/10] xen/swiotlb: add sync functions
 
| 
To:  | 
Ingo Molnar <mingo@xxxxxxx> | 
 
| 
Subject:  | 
[Xen-devel] [PATCH 08/10] xen/swiotlb: add sync functions | 
 
| 
From:  | 
Jeremy Fitzhardinge <jeremy@xxxxxxxx> | 
 
| 
Date:  | 
Tue, 12 May 2009 14:50:49 -0700 | 
 
| 
Cc:  | 
Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>,	Joerg Roedel <joerg.roedel@xxxxxxx>,	the arch/x86 maintainers <x86@xxxxxxxxxx>,	Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>,	FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx>,	Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>,	Matthew Wilcox <willy@xxxxxxxxxxxxxxx> | 
 
| 
Delivery-date:  | 
Tue, 12 May 2009 16:25:27 -0700 | 
 
| 
Envelope-to:  | 
www-data@xxxxxxxxxxxxxxxxxxx | 
 
| 
In-reply-to:  | 
<1242165051-6636-1-git-send-email-jeremy@xxxxxxxx> | 
 
| 
List-help:  | 
<mailto:xen-devel-request@lists.xensource.com?subject=help> | 
 
| 
List-id:  | 
Xen developer discussion <xen-devel.lists.xensource.com> | 
 
| 
List-post:  | 
<mailto:xen-devel@lists.xensource.com> | 
 
| 
List-subscribe:  | 
<http://lists.xensource.com/mailman/listinfo/xen-devel>,	<mailto:xen-devel-request@lists.xensource.com?subject=subscribe> | 
 
| 
List-unsubscribe:  | 
<http://lists.xensource.com/mailman/listinfo/xen-devel>,	<mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> | 
 
| 
References:  | 
<1242165051-6636-1-git-send-email-jeremy@xxxxxxxx> | 
 
| 
Sender:  | 
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx | 
 
 
 
From: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
Add all the missing sync functions.  This fixes iwlagn.
(Need to think about what to do with non-swiotlb mode.)
[ Impact: bugfix; makes iwlagn driver work under Xen ]
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
---
 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 d09ff91..b1a7d93 100644
--- a/drivers/pci/xen-iommu.c
+++ b/drivers/pci/xen-iommu.c
@@ -304,6 +304,13 @@ static struct dma_map_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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread>
 |  
- [Xen-devel] [GIT PULL] Xen dom0 swiotlb updates, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 07/10] xen/swiotlb: improve comment on gfp flags	in xen_alloc_coherent(), Jeremy Fitzhardinge
 
- [Xen-devel] [PATCH 08/10] xen/swiotlb: add sync functions,
Jeremy Fitzhardinge <=
 
- [Xen-devel] [PATCH 01/10] xen: make sure swiotlb allocation is	physically contigious, Jeremy Fitzhardinge
 
- [Xen-devel] [PATCH 02/10] xen swiotlb: fixup swiotlb is chunks	smaller than MAX_CONTIG_ORDER, Jeremy Fitzhardinge
 
- [Xen-devel] [PATCH 03/10] xen: add hooks for mapping phys<->bus	addresses in swiotlb, Jeremy Fitzhardinge
 
- [Xen-devel] [PATCH 04/10] xen/swiotlb: add hook for	swiotlb_arch_range_needs_mapping, Jeremy Fitzhardinge
 
- [Xen-devel] [PATCH 06/10] swiotlb: use swiotlb_alloc_boot to	allocate emergency pool, Jeremy Fitzhardinge
 
- [Xen-devel] [PATCH 10/10] xen/swiotlb: define xen_wants_swiotlb	when PCI_XEN is not enabled, Jeremy Fitzhardinge
 
- [Xen-devel] [PATCH 09/10] xen/swiotlb: make sure prototypes are in	scope for swiotlb functions, Jeremy Fitzhardinge
 
- [Xen-devel] [PATCH 05/10] xen: enable swiotlb for xen domain 0., Jeremy Fitzhardinge
 
 
 
 
 |  
  
 | 
    | 
  
  
    |   | 
    |