* Reserving physical memory in Linux
@ 2010-12-27 6:59 Asha R
2010-12-27 7:27 ` Rajat Sharma
2010-12-27 7:31 ` Adam Lee
0 siblings, 2 replies; 6+ messages in thread
From: Asha R @ 2010-12-27 6:59 UTC (permalink / raw)
To: kernelnewbies
Hi,
I want to reserve one range of physical memory say from 0x10000000 of 256MB
in Linux. This region is required for DMA functions alone.
Please help me understand how we can reserve this in Linux. Can this be
done using boot options or any other?
Regards,
Asha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20101227/8a332d0f/attachment.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Reserving physical memory in Linux
2010-12-27 6:59 Reserving physical memory in Linux Asha R
@ 2010-12-27 7:27 ` Rajat Sharma
2010-12-27 7:31 ` Adam Lee
1 sibling, 0 replies; 6+ messages in thread
From: Rajat Sharma @ 2010-12-27 7:27 UTC (permalink / raw)
To: kernelnewbies
look at alloc_bootmem and family of function to allocate memory at
boot time, description for same is available in chapter 8 Linux device
drivers.
Rajat
On Mon, Dec 27, 2010 at 12:29 PM, Asha R <rd.asha22@gmail.com> wrote:
> Hi,
> I want to reserve one range of physical memory say from 0x10000000 of?256MB
> in Linux. This region is required for DMA functions alone.
> Please help me understand how we can reserve this in Linux. Can this be
> done?using?boot options or any other?
>
> Regards,
> Asha
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Reserving physical memory in Linux
2010-12-27 6:59 Reserving physical memory in Linux Asha R
2010-12-27 7:27 ` Rajat Sharma
@ 2010-12-27 7:31 ` Adam Lee
2010-12-27 9:06 ` Asha R
1 sibling, 1 reply; 6+ messages in thread
From: Adam Lee @ 2010-12-27 7:31 UTC (permalink / raw)
To: kernelnewbies
On Mon, Dec 27, 2010 at 2:59 PM, Asha R <rd.asha22@gmail.com> wrote:
> Hi,
> I want to reserve one range of physical memory say from 0x10000000 of?256MB
> in Linux. This region is required for DMA functions alone.
> Please help me understand how we can reserve this in Linux. Can this be
> done?using?boot options or any other?
>
> Regards,
> Asha
try adding "mem=256M$0x10000000" in arg.
via http://lxr.linux.no/source/Documentation/kernel-parameters.txt
--
Regards,
Adam Lee
--------------------------------------------------
E-mail: adam8157 at gmail.com
Website: http://www.adam8157.info
--------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Reserving physical memory in Linux
2010-12-27 7:31 ` Adam Lee
@ 2010-12-27 9:06 ` Asha R
2010-12-27 9:09 ` Adam Lee
2010-12-28 3:49 ` Bharath H S
0 siblings, 2 replies; 6+ messages in thread
From: Asha R @ 2010-12-27 9:06 UTC (permalink / raw)
To: kernelnewbies
Thanks Adam Lee.
Is this mem= or memmap=?
Regards,
Asha
On Mon, Dec 27, 2010 at 1:01 PM, Adam Lee <adam8157@gmail.com> wrote:
> On Mon, Dec 27, 2010 at 2:59 PM, Asha R <rd.asha22@gmail.com> wrote:
> > Hi,
> > I want to reserve one range of physical memory say from 0x10000000
> of 256MB
> > in Linux. This region is required for DMA functions alone.
> > Please help me understand how we can reserve this in Linux. Can this be
> > done using boot options or any other?
> >
> > Regards,
> > Asha
>
> try adding "mem=256M$0x10000000" in arg.
>
> via http://lxr.linux.no/source/Documentation/kernel-parameters.txt
>
> --
> Regards,
> Adam Lee
> --------------------------------------------------
> E-mail: adam8157 at gmail.com
> Website: http://www.adam8157.info
> --------------------------------------------------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20101227/f20beac2/attachment-0001.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Reserving physical memory in Linux
2010-12-27 9:06 ` Asha R
@ 2010-12-27 9:09 ` Adam Lee
2010-12-28 3:49 ` Bharath H S
1 sibling, 0 replies; 6+ messages in thread
From: Adam Lee @ 2010-12-27 9:09 UTC (permalink / raw)
To: kernelnewbies
On Mon, Dec 27, 2010 at 5:06 PM, Asha R <rd.asha22@gmail.com> wrote:
> Thanks Adam Lee.
> Is this mem= or memmap=?
Opps, sorry.
It should be "memmap=256M$0x10000000"
--
Regards,
Adam Lee
--------------------------------------------------
E-mail: adam8157 at gmail.com
Website: http://www.adam8157.info
--------------------------------------------------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Reserving physical memory in Linux
2010-12-27 9:06 ` Asha R
2010-12-27 9:09 ` Adam Lee
@ 2010-12-28 3:49 ` Bharath H S
1 sibling, 0 replies; 6+ messages in thread
From: Bharath H S @ 2010-12-28 3:49 UTC (permalink / raw)
To: kernelnewbies
Asha,
You let the kernel now that X amount is DMA space only. It depends on
architecture though. What is architecture being worked upon?
- Bharath H S
On Mon, Dec 27, 2010 at 2:36 PM, Asha R <rd.asha22@gmail.com> wrote:
> Thanks Adam Lee.
> Is this mem= or memmap=?
> Regards,
> Asha
> On Mon, Dec 27, 2010 at 1:01 PM, Adam Lee <adam8157@gmail.com> wrote:
>>
>> On Mon, Dec 27, 2010 at 2:59 PM, Asha R <rd.asha22@gmail.com> wrote:
>> > Hi,
>> > I want to reserve one range of physical memory say from 0x10000000
>> > of?256MB
>> > in Linux. This region is required for DMA functions alone.
>> > Please help me understand how we can reserve this in Linux. Can this be
>> > done?using?boot options or any other?
>> >
>> > Regards,
>> > Asha
>>
>> try adding "mem=256M$0x10000000" in arg.
>>
>> via http://lxr.linux.no/source/Documentation/kernel-parameters.txt
>>
>> --
>> Regards,
>> Adam Lee
>> --------------------------------------------------
>> E-mail: adam8157 at gmail.com
>> Website: http://www.adam8157.info
>> --------------------------------------------------
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-12-28 3:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-27 6:59 Reserving physical memory in Linux Asha R
2010-12-27 7:27 ` Rajat Sharma
2010-12-27 7:31 ` Adam Lee
2010-12-27 9:06 ` Asha R
2010-12-27 9:09 ` Adam Lee
2010-12-28 3:49 ` Bharath H S
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).