* Contiguous memory allocator
@ 2016-03-13 3:32 Ronit Halder
0 siblings, 0 replies; 2+ messages in thread
From: Ronit Halder @ 2016-03-13 3:32 UTC (permalink / raw)
To: kernelnewbies
What is the difference between function cma_init_reserved_mem() and
cma_declare_contiguous()?
If I am trying to allocate new CMA area at boot time, How to do that?
regards,
Ronit
^ permalink raw reply [flat|nested] 2+ messages in thread
* Contiguous memory allocator
@ 2016-03-26 6:31 Manoj Nayak
0 siblings, 0 replies; 2+ messages in thread
From: Manoj Nayak @ 2016-03-26 6:31 UTC (permalink / raw)
To: kernelnewbies
cma_declare_contiguous() allocates memory from memblock.
cma_init_reserved_mem() initialize the memory. Then the memory is given to
buddy allocator with migration type MIGRATE_MOVABLE. when CMA needs
those pages, it can take it from buddy allocator.
We are supposed to use equivalent DMA api dma_declare_contiguous().
dma_declare_contiguous() calls cma_declare_contiguous().
http://lxr.free-electrons.com/source/arch/arm/mach-davinci/devices-da8xx.c#L833
Regards
Manoj Nayak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160326/6c6908d8/attachment.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-26 6:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-13 3:32 Contiguous memory allocator Ronit Halder
-- strict thread matches above, loose matches on Subject: below --
2016-03-26 6:31 Manoj Nayak
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).