RE: Memory sharing issue by application on V4L2 based device driver with system mmu.

2011-01-13 Thread Jonghun Han
'InKi Dae'; linux-media@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > 'linux-fbdev'; kyungmin.p...@samsung.com > Subject: Re: Memory sharing issue by application on V4L2 based device driver > with system mmu. > > > .. snip.. > > But 64KB or 1MB ph

Re: Memory sharing issue by application on V4L2 based device driver with system mmu.

2011-01-11 Thread Konrad Rzeszutek Wilk
.. snip.. > But 64KB or 1MB physically contiguous memory is better than 4KB page in the > point of performance. Could you explain that in more details please? I presume you are talking about a CPU that has a MMU unit, right? -- To unsubscribe from this list: send the line "unsubscribe linux-medi

Re: Memory sharing issue by application on V4L2 based device driver with system mmu.

2011-01-07 Thread daeinki
Michel Dänzer 쓴 글: On Fre, 2011-01-07 at 11:17 +0900, InKi Dae wrote: thank you for your comments. your second comment has no any problem as I said before, user virtual addess could be translated in page unit. but the problem, as you said, is that when cpu access to the memory in user mode, the

Re: Memory sharing issue by application on V4L2 based device driver with system mmu.

2011-01-07 Thread Michel Dänzer
On Fre, 2011-01-07 at 11:17 +0900, InKi Dae wrote: > thank you for your comments. > > your second comment has no any problem as I said before, user virtual > addess could be translated in page unit. but the problem, as you said, > is that when cpu access to the memory in user mode, the memory > a

Re: Memory sharing issue by application on V4L2 based device driver with system mmu.

2011-01-06 Thread daeinki
; linux-arm-ker...@lists.infradead.org; > linux-fbdev; >> kyungmin.p...@samsung.com >> Subject: Re: Memory sharing issue by application on V4L2 based device > driver >> with system mmu. >> >> thank you for your comments. >> >> your second comment ha

RE: Memory sharing issue by application on V4L2 based device driver with system mmu.

2011-01-06 Thread Jonghun Han
.com > Subject: Re: Memory sharing issue by application on V4L2 based device driver > with system mmu. > > thank you for your comments. > > your second comment has no any problem as I said before, user virtual addess > could be translated in page unit. but the problem, as you s

Re: Memory sharing issue by application on V4L2 based device driver with system mmu.

2011-01-06 Thread InKi Dae
thank you for your comments. your second comment has no any problem as I said before, user virtual addess could be translated in page unit. but the problem, as you said, is that when cpu access to the memory in user mode, the memory allocated by malloc, page fault occurs so we can't find pfn to us

RE: Memory sharing issue by application on V4L2 based device driver with system mmu.

2011-01-06 Thread Jonghun Han
Hello, There are two reasons why malloc isn't suitable for it. The first is that malloc doesn't allocate memory when malloc is called. So driver or vb2 cannot find PFN for it in the VIDIOC_QBUF. The second is that malloc uses 4KB page allocation. SYS.MMU(IO-MMU) can handle scattered memory. But