|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [linux-2.6.18-xen] [IA64] Fix swiotlb_dma_supported
# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1185390450 21600
# Node ID b3ac98591e60cdea898aa0357c8da1334b6e26c8
# Parent b64323b3a96337535f16e69d17a46086d069d941
[IA64] 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>
---
arch/ia64/xen/swiotlb.c | 4 ++++
1 files changed, 4 insertions(+)
diff -r b64323b3a963 -r b3ac98591e60 arch/ia64/xen/swiotlb.c
--- a/arch/ia64/xen/swiotlb.c Thu Jul 19 16:02:02 2007 -0600
+++ b/arch/ia64/xen/swiotlb.c Wed Jul 25 13:07:30 2007 -0600
@@ -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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [linux-2.6.18-xen] [IA64] Fix swiotlb_dma_supported,
Xen patchbot-linux-2.6.18-xen <=
|
|
|
|
|