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] [linux-2.6.18-xen] [IA64] Fix swiotlb_dma_supported

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] [IA64] Fix swiotlb_dma_supported
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 07 Sep 2007 09:10:14 -0700
Delivery-date: Fri, 07 Sep 2007 09:10:59 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=