WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] IO DMA isn't bound by physical address, but it is by mac

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] IO DMA isn't bound by physical address, but it is by machine address.
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Fri, 03 Jun 2005 07:55:30 +0000
Delivery-date: Fri, 03 Jun 2005 08:02:01 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1658, 2005/06/03 08:55:30+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        IO DMA isn't bound by physical address, but it is by machine address.
        Signed-off-by: Scott Parish <srparish@xxxxxxxxxx>



 dma-mapping.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/dma-mapping.h 
b/linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/dma-mapping.h
--- a/linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/dma-mapping.h  
2005-06-03 04:02:49 -04:00
+++ b/linux-2.6.11-xen-sparse/include/asm-xen/asm-x86_64/dma-mapping.h  
2005-06-03 04:02:49 -04:00
@@ -39,11 +39,11 @@
 
        if (direction == DMA_NONE)
                out_of_line_bug();
-       addr = virt_to_phys(ptr);
+       addr = virt_to_machine(ptr);
 
        if ((addr+size) & ~*hwdev->dma_mask)
                out_of_line_bug();
-       return phys_to_machine(addr);
+       return addr;
 }
 
 static inline void dma_unmap_single(struct device *hwdev, dma_addr_t dma_addr,

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] IO DMA isn't bound by physical address, but it is by machine address., BitKeeper Bot <=