Re: [patch] bootmem: use MAX_DMA_ADDRESS instead of LOW32LIMIT

From: Ingo Molnar
Date: Fri Jul 28 2006 - 09:17:00 EST



* Heiko Carstens <heiko.carstens@xxxxxxxxxx> wrote:

> From: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
>
> __alloc_bootmem_low() and __alloc_bootmem_low_node() should use
> MAX_DMA_ADDRESS as limit which is per architecture instead of a global
> LOW32LIMIT. Otherwise the bootmem allocator may return addresses to
> memory regions which cannot be used for DMA access.

> -#define LOW32LIMIT 0xffffffff

> if ((ptr = __alloc_bootmem_core(bdata, size,
> - align, goal, LOW32LIMIT)))
> + align, goal, MAX_DMA_ADDRESS)))

but this limits things to 16MB on i686. Are you sure this wont break
anything?

Ingo
-
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/