|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
[Xen-ia64-devel] [PATCH] fix swiotlb_dma_supported
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>
|
- [Xen-ia64-devel] [PATCH] fix swiotlb_dma_supported,
Kouya Shimura <=
|
|
|
|
|