Thread (18 messages) 18 messages, 4 authors, 2012-11-23

[PATCH 0/5] OMAPFB: use dma_alloc instead of omap's vram

DORMANTno replies

From: Jello huang <hidden>
Date: 2012-11-23 10:07:13
Also in: linux-omap

Revision v1 of 2 in this series.

Revisions (2)
  1. v1 [diff vs current]
  2. v1 current
hi
Sorry donot describe clearly.
quoted
How do you allocate CMA memory from userspace
 memory is allocated by userland then  pass the size to kernel space

I mean that we can split two parts of memory heap .one for the kernel space
and other for userland app. we can use dma_declare_contiguous to declare
one dma device A and B .Then the all kernel driver allocate from A .The
other B allocate for userland


On 22 November 2012 21:52, Tomi Valkeinen [off-list ref] wrote:
Hi,

On 2012-11-21 16:22, Jello huang wrote:
quoted
HI Tomi,
we need  one rank of cma to allocate the memory for driver in kernel
space .And the default CMA is for allocating memory frome usespace.So
if we allocate the memory from the
default CMA zone ,there maybe introduce fragmention to the default CMA
zone.The kernel space memory donot touch the memory from userspace
Can you elaborate a bit? I didn't understand your point. Are you saying
each kernel driver that uses dma_alloc should have their own CMA zone?
That doesn't make sense...

How do you allocate CMA memory from userspace?

 Tomi


-- 
Thanks
Jello Huang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121123/0c141965/attachment.html>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help