Introduce a new helper framework for buffer synchronization

2013-05-29 Thread Inki Dae
oo.ham; DRI mailing list; linux-arm-kernel at lists.infradead.org; > linux-media at 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 tim

Introduce a new helper framework for buffer synchronization

2013-05-29 Thread Inki Dae
t; Park; myungjoo.ham; DRI mailing list; linux-arm-kernel at lists.infradead.org; > linux-media at 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: > > > > > >> -

Introduce a new helper framework for buffer synchronization

2013-05-29 Thread Inki Dae
rnel.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 > > > Park; myungjoo.ham; DRI mailing list; > > linux-arm-kernel at lis

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

Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Inki Dae
oo.ham; DRI mailing list; linux-arm-kernel at lists.infradead.org; > linux-media at 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:

Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Inki Dae
t; Park; myungjoo.ham; DRI mailing list; linux-arm-kernel at lists.infradead.org; > linux-media at 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

Introduce a new helper framework for buffer synchronization

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

Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Inki Dae
inux-arm- > kernel at lists.infradead.org; linux-media at 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, > > > > I have been removed previous branch and add

Introduce a new helper framework for buffer synchronization

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

Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Maarten Lankhorst
'YoungJun Cho'; 'Kyungmin >> Park'; 'myungjoo.ham'; 'DRI mailing list'; linux-arm- >> kernel at lists.infradead.org; linux-media at vger.kernel.org >> Subject: Re: Introduce a new helper framework for buffer synchronization >> >> Hey, >> >> Op 27-05-13 12:38, Inki Dae

Re: Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Maarten Lankhorst
mailing list'; linux-arm- ker...@lists.infradead.org; linux-me...@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, I have been removed previous branch and added new one with more cleanup. This time

Re: Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Daniel Vetter
; linux-fbdev; YoungJun Cho; Kyungmin Park; myungjoo.ham; DRI mailing list; linux-arm-ker...@lists.infradead.org; linux-me...@vger.kernel.org Subject: Re: Introduce a new helper framework for buffer synchronization On Mon, May 27, 2013 at 6:38 AM, Inki Dae inki@samsung.com wrote: Hi

Re: Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Rob Clark
Vetter; linux-fbdev; YoungJun Cho; Kyungmin Park; myungjoo.ham; DRI mailing list; linux-arm-ker...@lists.infradead.org; linux-me...@vger.kernel.org Subject: Re: Introduce a new helper framework for buffer synchronization On Mon, May 27, 2013 at 6:38 AM, Inki Dae inki@samsung.com wrote: Hi all

RE: Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Inki Dae
Lankhorst; Daniel Vetter; linux-fbdev; YoungJun Cho; Kyungmin Park; myungjoo.ham; DRI mailing list; linux-arm-ker...@lists.infradead.org; linux-me...@vger.kernel.org Subject: Re: Introduce a new helper framework for buffer synchronization On Mon, May 27, 2013 at 6:38 AM, Inki Dae inki

RE: Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Inki Dae
list; linux-arm-ker...@lists.infradead.org; linux-me...@vger.kernel.org Subject: Re: Introduce a new helper framework for buffer synchronization On Mon, May 27, 2013 at 11:56 PM, Inki Dae inki@samsung.com wrote: -Original Message- From: linux-fbdev-ow...@vger.kernel.org

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 inki@samsung.com 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

RE: Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Inki Dae
...@lists.infradead.org; linux-me...@vger.kernel.org Subject: Re: Introduce a new helper framework for buffer synchronization On Tue, May 28, 2013 at 4:50 PM, Inki Dae inki@samsung.com wrote: I think I already used reservation stuff any time in that way except ww-mutex. And I'm not sure

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

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

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

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

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

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 two

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 inki@samsung.com 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

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 robdcl...@gmail.com wrote: On Mon, May 27, 2013 at 6:38 AM, Inki Dae inki@samsung.com 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

RE: Introduce a new helper framework for buffer synchronization

2013-05-27 Thread Inki Dae
...@lists.infradead.org; linux-me...@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, I have been removed previous branch and added new one with more cleanup. This time, the fence helper doesn't include user

RE: Introduce a new helper framework for buffer synchronization

2013-05-27 Thread Inki Dae
list; linux-arm-ker...@lists.infradead.org; linux-me...@vger.kernel.org Subject: Re: Introduce a new helper framework for buffer synchronization On Mon, May 27, 2013 at 6:38 AM, Inki Dae inki@samsung.com wrote: Hi all, I have been removed previous branch and added new one with more

RE: Introduce a new helper framework for buffer synchronization

2013-05-27 Thread Inki Dae
...@lists.infradead.org; linux-me...@vger.kernel.org Subject: Re: Introduce a new helper framework for buffer synchronization On Mon, May 27, 2013 at 5:47 PM, Rob Clark robdcl...@gmail.com wrote: On Mon, May 27, 2013 at 6:38 AM, Inki Dae inki@samsung.com wrote: Hi all, I have been

Introduce a new helper framework for buffer synchronization

2013-05-23 Thread Inki Dae
un Cho; linux-arm-kernel at lists.infradead.org; linux- > media at 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

Introduce a new helper framework for buffer synchronization

2013-05-23 Thread Daniel Vetter
k'; 'linux-fbdev'; 'DRI mailing list'; >> 'Kyungmin Park'; 'myungjoo.ham'; 'YoungJun Cho'; linux-arm- >> kernel at lists.infradead.org; linux-media at vger.kernel.org >> Subject: Re: Introduce a new helper framework for buffer synchronization >> >> On Tue, May 21, 2013

Re: Introduce a new helper framework for buffer synchronization

2013-05-23 Thread Daniel Vetter
'; 'Kyungmin Park'; 'myungjoo.ham'; 'YoungJun 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 04:03:06PM +0900, Inki Dae wrote: - Integration of fence syncing

Introduce a new helper framework for buffer synchronization

2013-05-21 Thread Inki Dae
'YoungJun Cho'; linux-arm- > kernel at lists.infradead.org; linux-media at 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 wrote: > > > - Integration of fence syncing into

Introduce a new helper framework for buffer synchronization

2013-05-21 Thread Inki Dae
Cho; linux-arm-kernel at lists.infradead.org; linux- > media at 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: > > > 2

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

Introduce a new helper framework for buffer synchronization

2013-05-21 Thread Daniel Vetter
gt; >> YoungJun > > > >> Cho; linux-arm-kernel at lists.infradead.org; linux-media at > > > >> vger.kernel.org > > > >> Subject: Re: Introduce a new helper framework for buffer > > > >> synchronization > > > >> > >

Introduce a new helper framework for buffer synchronization

2013-05-21 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-kernel at lists.infradead.org; linux-media at > > >> vger.kernel.org > >

RE: Introduce a new helper framework for buffer synchronization

2013-05-21 Thread Inki Dae
- 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 Rob Clark robdcl...@gmail.com On Wed, May 15, 2013 at 1

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 fence

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 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

Re: Introduce a new helper framework for buffer synchronization

2013-05-20 Thread Daniel Vetter
To: Inki Dae Cc: linux-fbdev; DRI mailing list; Kyungmin Park; myungjoo.ham; YoungJun Cho; linux-arm-ker...@lists.infradead.org; linux-me...@vger.kernel.org Subject: Re: Introduce a new helper framework for buffer synchronization On Mon, May 13, 2013 at 10:52 PM, Inki Dae inki

Re: Introduce a new helper framework for buffer synchronization

2013-05-20 Thread Daniel Vetter
[mailto:robdcl...@gmail.com] 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-me...@vger.kernel.org Subject: Re: Introduce a new helper framework

Introduce a new helper framework for buffer synchronization

2013-05-18 Thread Inki Dae
Hi Daniel, 2013/5/17 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

Introduce a new helper framework for buffer synchronization

2013-05-18 Thread Inki Dae
: linux-fbdev; DRI mailing list; Kyungmin Park; myungjoo.ham; YoungJun > >> Cho; linux-arm-kernel at lists.infradead.org; linux-media at > >> vger.kernel.org > >> Subject: Re: Introduce a new helper framework for buffer synchronization > >> > >> On Mon, May

Re: Introduce a new helper framework for buffer synchronization

2013-05-18 Thread Inki Dae
; myungjoo.ham; YoungJun Cho; linux-arm-ker...@lists.infradead.org; linux-me...@vger.kernel.org Subject: Re: Introduce a new helper framework for buffer synchronization On Mon, May 13, 2013 at 10:52 PM, Inki Dae inki@samsung.com wrote: well, for cache management, I think it is a better

Re: Introduce a new helper framework for buffer synchronization

2013-05-18 Thread Inki Dae
Hi Daniel, 2013/5/17 Daniel Vetter dan...@ffwll.ch On Wed, May 15, 2013 at 4:06 PM, Rob Clark robdcl...@gmail.com 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

Introduce a new helper framework for buffer synchronization

2013-05-17 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

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 robdcl...@gmail.com 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

Introduce a new helper framework for buffer synchronization

2013-05-15 Thread Inki Dae
rnel.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 th

Introduce a new helper framework for buffer synchronization

2013-05-15 Thread Rob Clark
m; YoungJun >> Cho; linux-arm-kernel at lists.infradead.org; linux-media at 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 cac

RE: Introduce a new helper framework for buffer synchronization

2013-05-15 Thread Inki Dae
a new helper framework for buffer synchronization On Mon, May 13, 2013 at 10:52 PM, Inki Dae inki@samsung.com 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

Re: Introduce a new helper framework for buffer synchronization

2013-05-15 Thread Rob Clark
...@lists.infradead.org; linux-me...@vger.kernel.org Subject: Re: Introduce a new helper framework for buffer synchronization On Mon, May 13, 2013 at 10:52 PM, Inki Dae inki@samsung.com wrote: well, for cache management, I think it is a better idea.. I didn't really catch

Introduce a new helper framework for buffer synchronization

2013-05-14 Thread Inki Dae
rnel.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: > >> > >

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

Introduce a new helper framework for buffer synchronization

2013-05-14 Thread Inki Dae
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 signals? What if userspace gets killed by oom > >> killer. Who keeps

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 inki@samsung.com 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

Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Tomasz Figa
g list'; linux-arm- > > kernel at lists.infradead.org; linux-media at 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 1

Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Inki Dae
inux-arm- > kernel at lists.infradead.org; linux-media at 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, Inki Dae schreef: > >> and can be solved

Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Inki Dae
.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 Message- > >> From: Maarten Lankhorst [mailto:maar

Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Inki Dae
l.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, > > > > This post introduces a new helper framework based on dma fence. And the >

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

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

Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Maarten Lankhorst
t; kernel at lists.infradead.org; linux-media at 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

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

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 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 might not

RE: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Inki Dae
; 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 purpose of this post is to collect other opinions and advices before RFC

Re: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Maarten Lankhorst
; 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, This post introduces a new helper framework based on dma fence. And the purpose of this post is to collect other

RE: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Inki Dae
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 Message- From: Maarten Lankhorst [mailto:maarten.lankho...@canonical.com] Sent: Monday, May 13, 2013 5:01 PM To: Inki Dae

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 make user

RE: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Inki Dae
-me...@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, Inki Dae schreef: and can be solved with userspace locking primitives. No need for the kernel to get involved

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 inki@samsung.com 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

Re: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Inki Dae
2013/5/13 Rob Clark robdcl...@gmail.com On Mon, May 13, 2013 at 8:21 AM, Inki Dae inki@samsung.com 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

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 inki@samsung.com wrote: 2013/5/13 Rob Clark robdcl...@gmail.com On Mon, May 13, 2013 at 8:21 AM, Inki Dae inki@samsung.com wrote: In that case you still wouldn't give userspace control over the fences. I don't see any way that can end

Re: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Tomasz Figa
; linux-me...@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 Message- From: Maarten Lankhorst [mailto:maarten.lankho

RE: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Inki Dae
a new helper framework for buffer synchronization On Mon, May 13, 2013 at 1:18 PM, Inki Dae inki@samsung.com wrote: 2013/5/13 Rob Clark robdcl...@gmail.com On Mon, May 13, 2013 at 8:21 AM, Inki Dae inki@samsung.com wrote: In that case you still wouldn't give userspace

Introduce a new helper framework for buffer synchronization

2013-05-09 Thread Inki Dae
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 might not have enough comments in codes and also might

Introduce a new helper framework for buffer synchronization

2013-05-09 Thread Inki Dae
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 might not have enough comments in codes and also might