RE: Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Inki Dae
I mailing list; linux-arm-ker...@lists.infradead.org; > linux-media@vger.kernel.org > Subject: Re: Introduce a new helper framework for buffer synchronization > > On Tue, May 28, 2013 at 4:50 PM, Inki Dae wrote: > > I think I already used reservation stuff any time in that way exc

Re: Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Daniel Vetter
On Tue, May 28, 2013 at 4:50 PM, Inki Dae wrote: > I think I already used reservation stuff any time in that way except > ww-mutex. And I'm not sure that embedded system really needs ww-mutex. If > there is any case, > could you tell me the case? I really need more advice and understanding :) If

RE: Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Inki Dae
rk; myungjoo.ham; DRI mailing list; linux-arm-ker...@lists.infradead.org; > linux-media@vger.kernel.org > Subject: Re: Introduce a new helper framework for buffer synchronization > > On Mon, May 27, 2013 at 11:56 PM, Inki Dae wrote: > > > > > >> -Original Mes

RE: Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Inki Dae
..@vger.kernel.org [mailto:linux-fbdev- > > > ow...@vger.kernel.org] On Behalf Of Rob Clark > > > Sent: Tuesday, May 28, 2013 12:48 AM > > > To: Inki Dae > > > Cc: Maarten Lankhorst; Daniel Vetter; linux-fbdev; YoungJun Cho; > Kyungmin > > > Par

Re: Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Rob Clark
;> Cc: Maarten Lankhorst; Daniel Vetter; linux-fbdev; YoungJun Cho; Kyungmin >> Park; myungjoo.ham; DRI mailing list; > linux-arm-ker...@lists.infradead.org; >> linux-media@vger.kernel.org >> Subject: Re: Introduce a new helper framework for buffer synchronization >

Re: Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Daniel Vetter
: Inki Dae > > Cc: Maarten Lankhorst; Daniel Vetter; linux-fbdev; YoungJun Cho; Kyungmin > > Park; myungjoo.ham; DRI mailing list; > linux-arm-ker...@lists.infradead.org; > > linux-media@vger.kernel.org > > Subject: Re: Introduce a new helper framework for buffer synchroniz

Re: Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Maarten Lankhorst
27;; 'linux-fbdev'; 'YoungJun Cho'; 'Kyungmin >> Park'; 'myungjoo.ham'; 'DRI mailing list'; linux-arm- >> ker...@lists.infradead.org; linux-media@vger.kernel.org >> Subject: Re: Introduce a new helper framework for buffer synchronization >&g

RE: Introduce a new helper framework for buffer synchronization

2013-05-27 Thread Inki Dae
iling list; linux-arm-ker...@lists.infradead.org; > linux-media@vger.kernel.org > Subject: Re: Introduce a new helper framework for buffer synchronization > > On Mon, May 27, 2013 at 5:47 PM, Rob Clark wrote: > > On Mon, May 27, 2013 at 6:38 AM, Inki Dae wrote: > >>

RE: Introduce a new helper framework for buffer synchronization

2013-05-27 Thread Inki Dae
rk; myungjoo.ham; DRI mailing list; linux-arm-ker...@lists.infradead.org; > linux-media@vger.kernel.org > Subject: Re: Introduce a new helper framework for buffer synchronization > > On Mon, May 27, 2013 at 6:38 AM, Inki Dae wrote: > > Hi all, > > > > I have been

RE: Introduce a new helper framework for buffer synchronization

2013-05-27 Thread Inki Dae
gt; Park'; 'myungjoo.ham'; 'DRI mailing list'; linux-arm- > ker...@lists.infradead.org; linux-media@vger.kernel.org > Subject: Re: Introduce a new helper framework for buffer synchronization > > Hey, > > Op 27-05-13 12:38, Inki Dae schreef: > > Hi all,

Re: Introduce a new helper framework for buffer synchronization

2013-05-27 Thread Daniel Vetter
On Mon, May 27, 2013 at 5:47 PM, Rob Clark wrote: > On Mon, May 27, 2013 at 6:38 AM, Inki Dae wrote: >> Hi all, >> >> I have been removed previous branch and added new one with more cleanup. >> This time, the fence helper doesn't include user side interfaces and cache >> operation relevant codes

Re: Introduce a new helper framework for buffer synchronization

2013-05-27 Thread Rob Clark
On Mon, May 27, 2013 at 6:38 AM, Inki Dae wrote: > Hi all, > > I have been removed previous branch and added new one with more cleanup. > This time, the fence helper doesn't include user side interfaces and cache > operation relevant codes anymore because not only we are not sure that > coupling t

Re: Introduce a new helper framework for buffer synchronization

2013-05-27 Thread Maarten Lankhorst
Hey, Op 27-05-13 12:38, Inki Dae schreef: > Hi all, > > I have been removed previous branch and added new one with more cleanup. > This time, the fence helper doesn't include user side interfaces and cache > operation relevant codes anymore because not only we are not sure that > coupling those tw

RE: Introduce a new helper framework for buffer synchronization

2013-05-27 Thread Inki Dae
Hi all, I have been removed previous branch and added new one with more cleanup. This time, the fence helper doesn't include user side interfaces and cache operation relevant codes anymore because not only we are not sure that coupling those two things, synchronizing caches and buffer access betwe

RE: Introduce a new helper framework for buffer synchronization

2013-05-23 Thread Inki Dae
un Cho; linux-arm-ker...@lists.infradead.org; linux- > me...@vger.kernel.org > Subject: Re: Introduce a new helper framework for buffer synchronization > > On Tue, May 21, 2013 at 11:22 AM, Inki Dae wrote: > >> -Original Message- > >> From: Daniel Vetter [mailto:daniel.vet...@

Re: Introduce a new helper framework for buffer synchronization

2013-05-23 Thread Daniel Vetter
'Rob Clark'; 'linux-fbdev'; 'DRI mailing list'; >> 'Kyungmin Park'; 'myungjoo.ham'; 'YoungJun Cho'; linux-arm- >> ker...@lists.infradead.org; linux-media@vger.kernel.org >> Subject: Re: Introduce a new helper framework for buffe

RE: Introduce a new helper framework for buffer synchronization

2013-05-21 Thread Inki Dae
t; 'Kyungmin Park'; 'myungjoo.ham'; 'YoungJun Cho'; linux-arm- > ker...@lists.infradead.org; linux-media@vger.kernel.org > Subject: Re: Introduce a new helper framework for buffer synchronization > > On Tue, May 21, 2013 at 04:03:06PM +0900, Inki Dae wro

Re: Introduce a new helper framework for buffer synchronization

2013-05-21 Thread Daniel Vetter
On Tue, May 21, 2013 at 04:03:06PM +0900, Inki Dae wrote: > > - Integration of fence syncing into dma_buf. Imo we should have a > > per-attachment mode which decides whether map/unmap (and the new sync) > > should wait for fences or whether the driver takes care of syncing > > through the new

RE: Introduce a new helper framework for buffer synchronization

2013-05-21 Thread Inki Dae
.@lists.infradead.org; linux- > me...@vger.kernel.org > Subject: Re: Introduce a new helper framework for buffer synchronization > > On Mon, May 20, 2013 at 11:13:04PM +0200, Daniel Vetter wrote: > > On Sat, May 18, 2013 at 03:47:43PM +0900, Inki Dae wrote: > > > 2013/5/15

Re: Introduce a new helper framework for buffer synchronization

2013-05-20 Thread Daniel Vetter
t; >> YoungJun > > > >> Cho; linux-arm-ker...@lists.infradead.org; linux-media@vger.kernel.org > > > >> Subject: Re: Introduce a new helper framework for buffer > > > >> synchronization > > > >> > > > >> On Mon, May 13, 2

Re: Introduce a new helper framework for buffer synchronization

2013-05-20 Thread Daniel Vetter
> >> Sent: Tuesday, May 14, 2013 10:39 PM > > >> To: Inki Dae > > >> Cc: linux-fbdev; DRI mailing list; Kyungmin Park; myungjoo.ham; YoungJun > > >> Cho; linux-arm-ker...@lists.infradead.org; linux-media@vger.kernel.org > > >> Subject: Re: In

Re: Introduce a new helper framework for buffer synchronization

2013-05-16 Thread Daniel Vetter
On Wed, May 15, 2013 at 4:06 PM, Rob Clark wrote: > So while it seems nice and orthogonal/clean to couple cache and > synchronization and handle dma->cpu and cpu->cpu and cpu->dma in the > same generic way, but I think in practice we have to make things more > complex than they otherwise need to b

Re: Introduce a new helper framework for buffer synchronization

2013-05-15 Thread Rob Clark
.ham; YoungJun >> Cho; linux-arm-ker...@lists.infradead.org; linux-media@vger.kernel.org >> Subject: Re: Introduce a new helper framework for buffer synchronization >> >> On Mon, May 13, 2013 at 10:52 PM, Inki Dae wrote: >> >> well, for cache management, I think it is a bet

RE: Introduce a new helper framework for buffer synchronization

2013-05-14 Thread Inki Dae
.org > Subject: Re: Introduce a new helper framework for buffer synchronization > > On Mon, May 13, 2013 at 10:52 PM, Inki Dae wrote: > >> well, for cache management, I think it is a better idea.. I didn't > >> really catch that this was the motivation from the initial

Re: Introduce a new helper framework for buffer synchronization

2013-05-14 Thread Rob Clark
On Mon, May 13, 2013 at 10:52 PM, Inki Dae wrote: >> well, for cache management, I think it is a better idea.. I didn't >> really catch that this was the motivation from the initial patch, but >> maybe I read it too quickly. But cache can be decoupled from >> synchronization, because CPU access i

RE: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Inki Dae
.org > Subject: Re: Introduce a new helper framework for buffer synchronization > > On Mon, May 13, 2013 at 1:18 PM, Inki Dae wrote: > > > > > > 2013/5/13 Rob Clark > >> > >> On Mon, May 13, 2013 at 8:21 AM, Inki Dae wrote: > >> > >

Re: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Tomasz Figa
tter'; 'DRI mailing list'; linux-arm- > > ker...@lists.infradead.org; linux-media@vger.kernel.org; > > 'linux-fbdev'; > > 'Kyungmin Park'; 'myungjoo.ham'; 'YoungJun Cho' > > Subject: Re: Introduce a new helper framework for

Re: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Rob Clark
On Mon, May 13, 2013 at 1:18 PM, Inki Dae wrote: > > > 2013/5/13 Rob Clark >> >> On Mon, May 13, 2013 at 8:21 AM, Inki Dae wrote: >> > >> >> In that case you still wouldn't give userspace control over the fences. >> >> I >> >> don't see any way that can end well. >> >> What if userspace never si

Re: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Rob Clark
On Mon, May 13, 2013 at 8:21 AM, Inki Dae wrote: > >> In that case you still wouldn't give userspace control over the fences. I >> don't see any way that can end well. >> What if userspace never signals? What if userspace gets killed by oom >> killer. Who keeps track of that? >> > > In all cases,

RE: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Inki Dae
t'; linux-arm- > ker...@lists.infradead.org; linux-media@vger.kernel.org; 'linux-fbdev'; > 'Kyungmin Park'; 'myungjoo.ham'; 'YoungJun Cho' > Subject: Re: Introduce a new helper framework for buffer synchronization > > Op 13-05-13 13:24, Ink

Re: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Maarten Lankhorst
Op 13-05-13 13:24, Inki Dae schreef: >> and can be solved with userspace locking primitives. No need for the >> kernel to get involved. >> > Yes, that is how we have synchronized buffer between CPU and DMA device > until now without buffer synchronization mechanism. I thought that it's best > to ma

RE: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Inki Dae
d.org; linux-media@vger.kernel.org; 'linux-fbdev'; > 'Kyungmin Park'; 'myungjoo.ham'; 'YoungJun Cho' > Subject: Re: Introduce a new helper framework for buffer synchronization > > Op 13-05-13 11:21, Inki Dae schreef: > > > >> -Original M

Re: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Maarten Lankhorst
ker...@lists.infradead.org; linux-media@vger.kernel.org; linux-fbdev; >> Kyungmin Park; myungjoo.ham; YoungJun Cho >> Subject: Re: Introduce a new helper framework for buffer synchronization >> >> Op 09-05-13 09:33, Inki Dae schreef: >>> Hi all, >>> >>&

RE: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Inki Dae
v; > Kyungmin Park; myungjoo.ham; YoungJun Cho > Subject: Re: Introduce a new helper framework for buffer synchronization > > Op 09-05-13 09:33, Inki Dae schreef: > > Hi all, > > > > This post introduces a new helper framework based on dma fence. And the > >

Re: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Maarten Lankhorst
Op 09-05-13 09:33, Inki Dae schreef: > Hi all, > > This post introduces a new helper framework based on dma fence. And the > purpose of this post is to collect other opinions and advices before RFC > posting. > > First of all, this helper framework, called fence helper, is in progress > yet so migh