* 8MB physical memory allocation
@ 2008-09-11 4:30 Alessio Sangalli
2008-09-11 9:35 ` Robin Holt
0 siblings, 1 reply; 2+ messages in thread
From: Alessio Sangalli @ 2008-09-11 4:30 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 8MB physical memory allocation
2008-09-11 4:30 8MB physical memory allocation Alessio Sangalli
@ 2008-09-11 9:35 ` Robin Holt
0 siblings, 0 replies; 2+ messages in thread
From: Robin Holt @ 2008-09-11 9:35 UTC (permalink / raw)
To: Alessio Sangalli; +Cc: linux-kernel
On Wed, Sep 10, 2008 at 09:30:05PM -0700, Alessio Sangalli wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-11 9:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-11 4:30 8MB physical memory allocation Alessio Sangalli
2008-09-11 9:35 ` Robin Holt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox