Re: how to reserve memory in linux?

2006-10-22 Thread Rahul
On 10/21/06, Ming Liu [EMAIL PROTECTED] wrote: Dear sudheer,About the mem=xx argument, I checked it from the website and got such aexplanation:This argument has several purposes: The original purpose was to specify theamount of installed memory (or a value less than that if you wanted to limit the

Re: how to reserve memory in linux?

2006-10-22 Thread Ming Liu
Dear Rahul, why do you think so ? Can't you give the physical address of the allocated memory from linux kernel to peripheral's DMA.? Unless you need to hardcode the physicall address i hope virt_to_phys(kmalloc_address) can be given to DMA. Sorry if i am still wrong in understanding your

Re: how to reserve memory in linux?

2006-10-22 Thread Eric Nuckols
Dear Eric, Have you tried the function alloc_bootmem_low() early in the boot process in main.c ? Yes, it sounds reasonable. With this function, I can reserve a large amount of buffer during booting time. But I think maybe it will be better to put this function in the device driver and when