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

[Xen-changelog] [xen-3.0-testing] [LINUX] Allow dma_alloc_coherent() to work for regions up to 2MB.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 63f6a063d93654c9386b95572d3220997f6fbe1c
# Parent  17fbffb737d90727b068ecd4f77b727114ed9d95
[LINUX] Allow dma_alloc_coherent() to work for regions up to 2MB.
The previous limit of 0.5MB was insufficient for some drivers
(e.g., when loading firmware).
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
xen-unstable changeset:   10502:02b0ed160e8ef9b8cdfd8b7e4fdd58fb19f7b344
xen-unstable date:        Tue Jun 27 12:17:45 2006 +0100
---
 linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 17fbffb737d9 -r 63f6a063d936 
linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c
--- a/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c    Thu Jun 22 21:41:19 
2006 +0100
+++ b/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c    Tue Jun 27 12:19:54 
2006 +0100
@@ -264,7 +264,7 @@ static void contiguous_bitmap_clear(
 }
 
 /* Protected by balloon_lock. */
-#define MAX_CONTIG_ORDER 7
+#define MAX_CONTIG_ORDER 9 /* 2MB */
 static unsigned long discontig_frames[1<<MAX_CONTIG_ORDER];
 
 /* Ensure multi-page extents are contiguous in machine memory. */

_______________________________________________
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®.