Re: Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Maarten Lankhorst
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, 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-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 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-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 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-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 inki

RE: Introduce a new helper framework for buffer synchronization

2013-05-28 Thread Inki Dae
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 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-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 inki@samsung.com wrote: I think I already used reservation stuff any time in that way except ww-mutex. And I'm not sure

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

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-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 wrote: - Integration of fence syncing

RE: Introduce a new helper framework for buffer synchronization

2013-05-23 Thread Inki Dae
; 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 inki@samsung.com wrote: -Original Message- From: Daniel Vetter [mailto:daniel.vet...@ffwll.ch] On Behalf Of Daniel Vetter Sent

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-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 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-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 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-media@vger.kernel.org Subject: Re: Introduce a new helper framework

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

Re: Introduce a new helper framework for buffer synchronization

2013-05-15 Thread Rob Clark
...@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 inki@samsung.com wrote: well, for cache management, I think it is a better idea.. I didn't really catch

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

RE: Introduce a new helper framework for buffer synchronization

2013-05-14 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-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
-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, 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 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-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 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