Re: [RFC 1/1] bootmem: move big allocations behing 4G
From: Johannes Weiner
Date: Tue Jan 19 2010 - 09:58:31 EST
Hello Jiri,
On Mon, Jan 18, 2010 at 11:56:30PM +0100, Jiri Slaby wrote:
> Hi, I'm fighting a bug where Grub loads the kernel just fine, whereas
> isolinux doesn't. I found out, it's due to different addresses of
> loaded initrd. On a machine with 128G of memory, grub loads the
> initrd at 895M in our case and flat mem_map (2G long) is allocated
> above 4G due to 2-4G BIOS reservation.
>
> On the other hand, with isolinux, the 0-2G is free and mem_map is
> placed there leaving no space for others, hence kernel panics for
> swiotlb which needs to be below 4G.
Bootmem already protects the lower 16MB DMA zone for the obvious reasons,
how about shifting the default bootmem goal above the DMA32 zone if it exists?
I added Ralf and the x86 Team on Cc as this only affects x86 and mips, afaics.
> Any ideas?
I tested the below on a rather dull x86_64 machine and it seems to work. Would
this work in your case as well? The goal for mem_map should now be above 4G.
Hannes