Hello all, On some ia64 NUMA platforms with some specific memory configurations, the 2.6.18.3 kernel crashes at system initialisation due to conflict for allocating DMA memory. The machine has the following memory configuration: physical address length node 0 2GB 0 4GB 4GB 1 8GB 2GB 0 We use 64 KB pages and the default CONFIG_FORCE_MAX_ZONEORDER=17 value, that provides the availability to use 4GB huge pages ( 2^(17-1)*2^16 B). After some investigations I stated that count_node_pages() was computing mem_data[1].min_pfn = 0, and mem_data[1].max_pfn = 20000 for node 1, thus conflicting with the 0-2GB DMA memory range on node 0. This is due to the line: start = ORDERROUNDDOWN(start); that computes the value 0 for the 0x100000000 (4GB) address. I suppose the goal was to check that the memory range is aligned on a 4GB boundary ( 2^(17-1)*2^16 Bytes), and in our case there should be no round of ht value. I fixed the ORDERROUNDDOWN macro and system boots OK. It is not sure that this fixes the problem in all cases: with a CONFIG_FORCE_MAX_ZONEORDER=18 value, the ORDERROUNDDOWN macro would have generated the same problem (mem_data[1].min_pfn=0). This should at least be checked in the count_node_pages() function. --- linux-2.6.18.3/include/asm-ia64/meminit.h 2006-11-19 04:28:22.000000000 +0100 +++ linux-2.6.18.3new/include/asm-ia64/meminit.h 2006-11-29 15:23:37.000000000 +0100 @@ -40,7 +40,7 @@ */ #define GRANULEROUNDDOWN(n) ((n) & ~(IA64_GRANULE_SIZE-1)) #define GRANULEROUNDUP(n) (((n)+IA64_GRANULE_SIZE-1) & ~(IA64_GRANULE_SIZE-1)) -#define ORDERROUNDDOWN(n) ((n) & ~((PAGE_SIZE<swapper: page allocation failure. order:0, mode:0x21 Call Trace: [] show_stack+0x50/0xa0 sp=e000000100cdfbf0 bsp=e000000100cd13c8 [] dump_stack+0x30/0x60 sp=e000000100cdfdc0 bsp=e000000100cd13b0 [] __alloc_pages+0x500/0x540 sp=e000000100cdfdc0 bsp=e000000100cd1348 [] alloc_page_interleave+0xd0/0x160 sp=e000000100cdfdd0 bsp=e000000100cd1318 [] alloc_pages_current+0x130/0x1a0 sp=e000000100cdfdd0 bsp=e000000100cd12e8 [] __get_free_pages+0x30/0x100 sp=e000000100cdfdd0 bsp=e000000100cd12c0 [] swiotlb_alloc_coherent+0x70/0x280 sp=e000000100cdfdd0 bsp=e000000100cd1280 [] ide_setup_dma+0x430/0x8c0 sp=e000000100cdfdd0 bsp=e000000100cd1240 [] ide_pci_setup_ports+0xd60/0xea0 sp=e000000100cdfdd0 bsp=e000000100cd11a8 [] do_ide_setup_pci_device+0x800/0x840 sp=e000000100cdfde0 bsp=e000000100cd1138 [] ide_setup_pci_device+0x40/0x140 sp=e000000100cdfdf0 bsp=e000000100cd1100 [] piix_init_one+0x50/0x80 sp=e000000100cdfe00 bsp=e000000100cd10d8 [] ide_scan_pcidev+0xf0/0x180 sp=e000000100cdfe00 bsp=e000000100cd10a8 [] ide_scan_pcibus+0x40/0x1e0 sp=e000000100cdfe00 bsp=e000000100cd1080 [] ide_init+0xb0/0xe0 sp=e000000100cdfe00 bsp=e000000100cd1060 [] init+0x380/0x7a0 sp=e000000100cdfe00 bsp=e000000100cd1020 [] kernel_thread_helper+0xd0/0x100 sp=e000000100cdfe30 bsp=e000000100cd0ff0 [] start_kernel_thread+0x20/0x40 sp=e000000100cdfe30 bsp=e000000100cd0ff0 Mem-info: Node 0 DMA free:0kB min:2688kB low:3328kB high:4032kB active:0kB inactive:0kB present:1943936kB pages_scanned:0 all_unreclaimable? yes Node 1 DMA free:1876352kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB