Re: [RFC 1/1] bootmem: move big allocations behing 4G

From: Johannes Weiner
Date: Wed Jan 20 2010 - 10:30:14 EST


Hi Jiri,

On Wed, Jan 20, 2010 at 02:50:13PM +0100, Jiri Slaby wrote:
> On 01/19/2010 03:33 PM, Johannes Weiner wrote:
> > --- a/include/linux/bootmem.h
> > +++ b/include/linux/bootmem.h
> > @@ -96,20 +96,26 @@ extern void *__alloc_bootmem_low_node(pg_data_t *pgdat,
> > unsigned long align,
> > unsigned long goal);
> >
> > +#ifdef MAX_DMA32_PFN
> > +#define BOOTMEM_DEFAULT_GOAL (__pa(MAX_DMA32_PFN << PAGE_SHIFT))
> > +#else
> > +#define BOOTMEM_DEFAULT_GOAL MAX_DMA_ADDRESS
>
> I just noticed this should write:
> #define BOOTMEM_DEFAULT_GOAL __pa(MAX_DMA_ADDRESS)

Pardon my sloppiness, it's all backwards. The other case should
be without the __pa(), of course.

I'll send a fixed and tested version later.

Thanks,
Hannes
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/