Skip to contentSkip to conversation

8MB physical memory allocation

DISCUSSION Alessio Sangalli 2 participants 2 messages Sep 11, 2008

lore
Share & tools
lore
#0 lore raw

Hi, I'm writing a driver for a video adapter that needs to allocate 8MB (maximum resolution) in physical, contiguos memory. I am working on a ARM9 platform.

I guess the only way to go is alloc_bootmem(). Any other solution that may be recently introduced?

bye
as

#1 lore raw
Quoted 3 lines · Alessio Sangalli

Hi, I'm writing a driver for a video adapter that needs to allocate 8MB (maximum resolution) in physical, contiguos memory. I am working on a ARM9 platform.

Not sure about arm9, but on ia64, alloc_pages does the trick.

	alloc_pages(GFP_KERNEL, 33-PAGE_SHIFT);

Might be slightly large of an allocation for any time other than boot, but that is the call.

Thanks,
Robin