>It appears that __get_free_pages(GFP_DMA, sz) returns pages well outside the
>16MB limit in 2.2.12-rmk1 and that it's allocating memory starting at the
>top (32MB, in this case). Same with kmalloc.
>
>Any hints on how to allocate memory to use with ISA DMA?
Looks like the kernel doesn't track DMA memory currently. It might be
enough to add these two lines to arch/arm/mm/init.c::mem_init:
#define BETWEEN(w,min,max) ((w) >= (unsigned long)(min) && \
(w) < (unsigned long)(max))
for (tmp = PAGE_OFFSET; tmp < end_mem ; tmp += PAGE_SIZE) {
+ if (tmp >= MAX_DMA_ADDRESS)
+ clear_bit(PG_DMA, &mem_map[MAP_NR(tmp)].flags);
if (PageReserved(mem_map+MAP_NR(tmp))) {
if (BETWEEN(tmp, &__init_begin, &__init_end))
or something of the sort.
p.
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++ Please use [EMAIL PROTECTED] for ++
++ kernel-related discussions. ++