ia64/xen-unstable
changeset 10542:02b0ed160e8e
[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@xensource.com>
The previous limit of 0.5MB was insufficient for some drivers
(e.g., when loading firmware).
Signed-off-by: Keir Fraser <keir@xensource.com>
author | kfraser@dhcp93.uk.xensource.com |
---|---|
date | Tue Jun 27 12:17:45 2006 +0100 (2006-06-27) |
parents | 234939c0ec3a |
children | 30a5eb240a20 |
files | linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c |
line diff
1.1 --- a/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c Tue Jun 27 12:03:46 2006 +0100 1.2 +++ b/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c Tue Jun 27 12:17:45 2006 +0100 1.3 @@ -264,7 +264,7 @@ static void contiguous_bitmap_clear( 1.4 } 1.5 1.6 /* Protected by balloon_lock. */ 1.7 -#define MAX_CONTIG_ORDER 7 1.8 +#define MAX_CONTIG_ORDER 9 /* 2MB */ 1.9 static unsigned long discontig_frames[1<<MAX_CONTIG_ORDER]; 1.10 1.11 /* Ensure multi-page extents are contiguous in machine memory. */