Problem allocating large meory using m8260_cpm_hostalloc

Goodman, Brad bgoodman at empirix.com
Fri Jul 29 03:29:13 EST 2005


I think you have to increase MAX_ORDER in linux/mmzone.h

This number means you can allocate a maximum of 2^(MAX_ORDER-1)
contiguous pages.

Brad Goodman


-----Original Message-----
From: linuxppc-embedded-bounces at ozlabs.org
[mailto:linuxppc-embedded-bounces at ozlabs.org] On Behalf Of Prashant
Alange
Sent: Thursday, July 28, 2005 12:50 PM
To: Linuxppc-embedded at ozlabs.org
Subject: Problem allocating large meory using m8260_cpm_hostalloc

Hi everyone,
I am having problem in allocating large memory using 
m8260_cpm_hostalloc function in my driver. (Approx 256 Kbytes). I
tried increaing the NUM_CPM_HOST_PAGES macro in cpm_8260.h file to 64
but still it fails for 200K of memory request. This macro is used by
alloc_bootmem_pages() function. I have read that we should use this
function if we intend to have consecutive memory pages allocated.

Could anyone tell what I am missing here?
How can I allocate large memory in my driver using this hostalloc
function?

Thanks for your time.

Prashant
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded at ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded



More information about the Linuxppc-embedded mailing list