[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.