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-ia64-devel

[Xen-ia64-devel] [PATCH] fix swiotlb_dma_supported

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH] fix swiotlb_dma_supported
From: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
Date: Tue, 24 Jul 2007 16:38:52 +0900
Delivery-date: Tue, 24 Jul 2007 00:36:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
CD/DVD-ROM on recent Dom0 is not available.
After some investigation, IDE controller is disabled
by reason that io_tlb_end is out of bounds.

Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>

diff -r bf38300f5e63 arch/ia64/xen/swiotlb.c
--- a/arch/ia64/xen/swiotlb.c   Sun Jul 15 13:48:57 2007 -0600
+++ b/arch/ia64/xen/swiotlb.c   Tue Jul 24 15:40:05 2007 +0900
@@ -882,7 +882,11 @@ int
 int
 swiotlb_dma_supported (struct device *hwdev, u64 mask)
 {
+#ifdef CONFIG_XEN
+       return (virt_to_bus(io_tlb_end - 1)) <= mask;
+#else
        return (virt_to_bus(io_tlb_end) - 1) <= mask;
+#endif
 }
 
 EXPORT_SYMBOL(swiotlb_init);
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>