ia64/xen-unstable
changeset 5737:e6f48ae99035
Place all low mem in DMA pool.
Signed-off-by: Keir Fraser <keir@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Mon Jul 11 15:56:50 2005 +0000 (2005-07-11) |
parents | 0d415d73f8f2 |
children | f1a16642edaf |
files | linux-2.6-xen-sparse/arch/xen/i386/kernel/setup.c |
line diff
1.1 --- a/linux-2.6-xen-sparse/arch/xen/i386/kernel/setup.c Mon Jul 11 15:46:46 2005 +0000 1.2 +++ b/linux-2.6-xen-sparse/arch/xen/i386/kernel/setup.c Mon Jul 11 15:56:50 2005 +0000 1.3 @@ -1107,7 +1107,14 @@ void __init zone_sizes_init(void) 1.4 unsigned long zones_size[MAX_NR_ZONES] = {0, 0, 0}; 1.5 unsigned int max_dma, low; 1.6 1.7 - max_dma = virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT; 1.8 + /* 1.9 + * XEN: Our notion of "DMA memory" is fake when running over Xen. 1.10 + * We simply put all RAM in the DMA zone so that those drivers which 1.11 + * needlessly specify GFP_DMA do not get starved of RAM unnecessarily. 1.12 + * Those drivers that *do* require lowmem are screwed anyway when 1.13 + * running over Xen! 1.14 + */ 1.15 + max_dma = max_low_pfn; 1.16 low = max_low_pfn; 1.17 1.18 if (low < max_dma)