On Thu, Dec 09, 2004 at 01:50:21PM -0800, Dave Hansen wrote: > On Thu, 2004-12-09 at 13:38, Mark Wong wrote: > > With the hotplug memory option turned on, it compiles ok. I tried > > running aioalloc again and got the following: > > > > kernel BUG at include/linux/nonlinear.h:111! > > Did you happen to capture the debugging message right above the BUG()? > > static inline void * > __va(const unsigned long addr) > { > if(phys_section[addr_to_section(addr)] == INVALID_PHYS_SECTION) { > printk("%s(%08lx) phys_section[%d] is invalid\n", > __func__, addr, addr_to_section(addr)); > BUG(); > } > return __boot_va(section_to_addr(phys_section[addr_to_section(addr)]) | > section_offset(addr)); > } > The only stuff that shows up before that are the debug messages in the logs, nothing on the console: Dec 9 15:14:35 cl007 add_memory(0000000040000000, 0000000008000000, 00000000) Dec 9 15:14:35 cl007 __add_pages(c03ba680, 00040000, 32768, 00000000) Dec 9 15:14:35 cl007 for: i: 0 Dec 9 15:14:35 cl007 __add_section(c03ba680, 00040000, 00000000) Dec 9 15:14:35 cl007 __add_section() phys_start_pfn: 00040000 Dec 9 15:14:35 cl007 alloc_memsections(00040000, 00040000, 00008000) Dec 9 15:14:35 cl007 set mem_section[8].phys_section: 8 Dec 9 15:14:35 cl007 set phys_section[8]: 8 Dec 9 15:14:35 cl007 build_zonelists_node() zonelist: c03baa00