Re: [PATCH 2/2] dma-buf: add helpers for attacher dma-parms

2012-08-05 Thread Semwal, Sumit
On Fri, Jul 20, 2012 at 10:09 PM, Rob Clark wrote: > Fyi, Daniel Vetter had suggested on IRC that it would be cleaner to > have a single helper fxn that most-restrictive union of all attached > device's dma_parms. Really this should include dma_mask and > coherent_dma_mask, I think. But that tou

Re: [PATCH] omap_vout: Set DSS overlay_info only if paddr is non zero

2012-06-27 Thread Semwal, Sumit
On Mon, Mar 19, 2012 at 5:16 PM, Archit Taneja wrote: > On Monday 19 March 2012 02:15 PM, Hiremath, Vaibhav wrote: >> >> On Fri, Mar 16, 2012 at 16:41:27, Taneja, Archit wrote: >>> >>> Hi, >>> >>> On Friday 16 March 2012 03:46 PM, Archit Taneja wrote: On Monday 12 March 2012 03:34 PM, Hi

Re: [PATCHv6 00/13] Integration of videobuf2 with dmabuf

2012-05-30 Thread Semwal, Sumit
On Tue, May 29, 2012 at 6:25 AM, Laurent Pinchart wrote: > Hi Tomasz, Hi Tomasz, Laurent, Mauro, > > On Wednesday 23 May 2012 14:10:14 Tomasz Stanislawski wrote: >> Hello everyone, >> This patchset adds support for DMABUF [2] importing to V4L2 stack. >> The support for DMABUF exporting was moved t

Re: [RFCv2 PATCH 0/9] Integration of videobuf2 with dmabuf

2012-03-20 Thread Semwal, Sumit
Hi Tomasz, On Tue, Mar 6, 2012 at 5:08 PM, Tomasz Stanislawski wrote: > Hello everyone, > This patchset is an incremental patch to patchset created by Sumit Semwal [1]. > The patches are dedicated to help find a better solution for support of buffer > sharing by V4L2 API.  It is expected to start

Re: [RFCv2 PATCH 1/9] v4l: vb2: fixes for DMABUF support

2012-03-20 Thread Semwal, Sumit
On Tue, Mar 6, 2012 at 5:08 PM, Tomasz Stanislawski wrote: > This patch contains fixes to DMABUF support in vb2-core. > - fixes number of arguments of call_memop macro > - fixes setup of plane length > - fixes handling of error pointers > > Signed-off-by: Tomasz Stanislawski > Signed-off-by: Kyun

Re: [PATCH 2/3] dma-buf: add support for kernel cpu access

2012-03-06 Thread Semwal, Sumit
Hi Daniel, On Tue, Mar 6, 2012 at 12:27 AM, Daniel Vetter wrote: > On Fri, Mar 2, 2012 at 23:24, Rob Clark wrote: >> Perhaps we should check somewhere for required dmabuf ops fxns (like >> kmap_atomic here), rather than just calling unconditionally what might >> be a null ptr.  At least put it in

Re: Kernel Display and Video API Consolidation mini-summit at ELC 2012 - Notes

2012-02-17 Thread Semwal, Sumit
Hello Laurent, Everyone: On Fri, Feb 17, 2012 at 4:55 AM, Laurent Pinchart wrote: > Hello everybody, > > First of all, I would like to thank all the attendees for their participation > in the mini-summit that helped make the meeting a success. > > ***  dma-buf Implementation in V4L2 *** > >  Go

Re: [PATCH] dma-buf: add dma_data_direction to unmap dma_buf_op

2012-01-27 Thread Semwal, Sumit
Please ignore! I will send out a new version in a minute. Thanks and best regards, ~Sumit. On Fri, Jan 27, 2012 at 3:04 PM, Sumit Semwal wrote: > Some exporters may use DMA map/unmap APIs in dma-buf ops, which require > enum dma_data_direction while unmapping. > > Thus, the unmap dma_buf_op al

Re: [PATCH 1/3] dma-buf: Introduce dma buffer sharing mechanism

2012-01-25 Thread Semwal, Sumit
On Thu, Jan 26, 2012 at 1:37 AM, Daniel Vetter wrote: > On Wed, Jan 25, 2012 at 06:02:41PM +0100, Tomasz Stanislawski wrote: >> Hi Sumit, >> >> On 12/26/2011 10:23 AM, Sumit Semwal wrote: >> >This is the first step in defining a dma buffer sharing mechanism. >> > >> [snip] >> >> >+struct sg_table

Re: [PATCH 04/10] v4l: vb2: fixes for DMABUF support

2012-01-25 Thread Semwal, Sumit
Hi Tomasz, On Wed, Jan 25, 2012 at 4:04 PM, Tomasz Stanislawski wrote: > > Hi Sumit, > > On 01/25/2012 06:35 AM, Semwal, Sumit wrote: >> >> Hi Tomasz, >> On Mon, Jan 23, 2012 at 8:55 PM, Tomasz Stanislawski >>  wrote: >>> >>> Hi Mauro, >&g

Re: [Linaro-mm-sig] [PATCH 1/3] dma-buf: Introduce dma buffer sharing mechanism

2012-01-25 Thread Semwal, Sumit
On Fri, Jan 20, 2012 at 6:53 PM, Laurent Pinchart wrote: > Hi Summit, > > Sorry for the late review. I know that this code is now in mainline, but I > still have a couple of comments. I'll send patches if you agree with them. Hi Laurent, Thanks for your review; apologies for being late in replyin

Re: [PATCH 04/10] v4l: vb2: fixes for DMABUF support

2012-01-24 Thread Semwal, Sumit
Hi Tomasz, On Mon, Jan 23, 2012 at 8:55 PM, Tomasz Stanislawski wrote: > Hi Mauro, > > > > Ok. I should have given more details about the patch. I am sorry for missing > it. My kernel tree failed to compile after applying patches from > > [1] > http://thread.gmane.org/gmane.linux.drivers.video-in

[GIT PULL]: dma-buf tree: maintainer update

2012-01-20 Thread Semwal, Sumit
Hi Linus, Post the merge of dma-buf tree that was (very kindly) sent by Dave Airlie, various people involved in this project feel it is natural and practical for me to be the maintainer of this code. This is my first pull request to you, which only changes the MAINTAINERS file - could you please

Re: [Linaro-mm-sig] [RFCv1 2/4] v4l:vb2: add support for shared buffer (dma_buf)

2012-01-15 Thread Semwal, Sumit
On Mon, Jan 16, 2012 at 11:03 AM, Semwal, Sumit wrote: > > On Sun, Jan 15, 2012 at 2:08 AM, Sakari Ailus wrote: >> >> Hi Sumit, >> >> Thanks for the patch! > Hi Sakari, Thanks for reviewing this :) >> >> >> >> Shouldn't the buf

Re: [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2012-01-09 Thread Semwal, Sumit
On Tue, Jan 10, 2012 at 7:44 AM, Rob Clark wrote: > On Mon, Jan 9, 2012 at 7:34 PM, InKi Dae wrote: >> 2012/1/10 Rob Clark : >> at least with no IOMMU, the memory information(containing physical >> memory address) would be copied to vb2_xx_buf object if drm gem >> exported its own buffer and vb2

Re: [Linaro-mm-sig] [RFC v3 0/2] Introduce DMA buffer sharing mechanism

2011-12-25 Thread Semwal, Sumit
On Fri, Dec 23, 2011 at 10:50 PM, Rob Clark wrote: > On Fri, Dec 23, 2011 at 4:08 AM, Semwal, Sumit wrote: >> On Wed, Dec 21, 2011 at 1:50 AM, Dave Airlie wrote: >> >>>> >>>> Hence for both patches: >>>> Reviewed-by: Daniel Vetter &

Re: [Linaro-mm-sig] [RFC v3 0/2] Introduce DMA buffer sharing mechanism

2011-12-23 Thread Semwal, Sumit
On Wed, Dec 21, 2011 at 1:50 AM, Dave Airlie wrote: >> >> I think this is a really good v1 version of dma_buf. It contains all the >> required bits (with well-specified semantics in the doc patch) to >> implement some basic use-cases and start fleshing out the integration with >> various subsyste

Re: [Linaro-mm-sig] [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-23 Thread Semwal, Sumit
On Wed, Dec 21, 2011 at 10:57 PM, Arnd Bergmann wrote: > On Tuesday 20 December 2011, Daniel Vetter wrote: >> > I'm thinking for a first version, we can get enough mileage out of it by >> > saying: >> > 1) only exporter can mmap to userspace >> > 2) only importers that do not need CPU access to b

Re: [RFC v3 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-23 Thread Semwal, Sumit
Hi Konrad, On Tue, Dec 20, 2011 at 10:06 PM, Konrad Rzeszutek Wilk wrote: > On Mon, Dec 19, 2011 at 02:03:30PM +0530, Sumit Semwal wrote: >> This is the first step in defining a dma buffer sharing mechanism. >> >> A new buffer object dma_buf is added, with operations and API to allow easy >> shar

Re: [Linaro-mm-sig] [RFC v3 0/2] Introduce DMA buffer sharing mechanism

2011-12-22 Thread Semwal, Sumit
On Wed, Dec 21, 2011 at 3:56 AM, Rob Clark wrote: > On Tue, Dec 20, 2011 at 2:20 PM, Dave Airlie wrote: >>> >>> I think this is a really good v1 version of dma_buf. It contains all the >>> required bits (with well-specified semantics in the doc patch) to >>> implement some basic use-cases a

Re: [Linaro-mm-sig] [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-18 Thread Semwal, Sumit
Hi Arnd, Daniel, On Mon, Dec 12, 2011 at 10:18 PM, Arnd Bergmann wrote: > On Saturday 10 December 2011, Daniel Vetter wrote: >> If userspace (through some driver calls) >> tries to do stupid things, it'll just get garbage. See >> Message-ID: >> >> for my reasons why it think this is the right w

Re: [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-07 Thread Semwal, Sumit
Hi Daniel, Rob, On Tue, Dec 6, 2011 at 3:41 AM, Rob Clark wrote: > On Mon, Dec 5, 2011 at 3:23 PM, Daniel Vetter wrote: >> On Mon, Dec 05, 2011 at 02:46:47PM -0600, Rob Clark wrote: >>> On Mon, Dec 5, 2011 at 11:18 AM, Arnd Bergmann wrote: >>> > In the patch 2, you have a section about migrati

Re: [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-07 Thread Semwal, Sumit
On Wed, Dec 7, 2011 at 3:41 PM, Arnd Bergmann wrote: > On Wednesday 07 December 2011, Semwal, Sumit wrote: >> > >> > Do you have a use case for making the interface compile-time disabled? >> > I had assumed that any code using it would make no sense if it

Re: [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-06 Thread Semwal, Sumit
Hi Arnd, Thanks for your review! On Mon, Dec 5, 2011 at 10:48 PM, Arnd Bergmann wrote: > On Friday 02 December 2011, Sumit Semwal wrote: >> This is the first step in defining a dma buffer sharing mechanism. > > This looks very nice, but there are a few things I don't understand yet > and a bunch

Re: [RFC v2 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-12-05 Thread Semwal, Sumit
Hi Konrad, On Fri, Dec 2, 2011 at 10:41 PM, Konrad Rzeszutek Wilk wrote: > On Fri, Dec 02, 2011 at 02:27:31PM +0530, Sumit Semwal wrote: >> This is the first step in defining a dma buffer sharing mechanism. >> >> >> [1]: https://wiki.linaro.org/OfficeofCTO/MemoryManagement >> [2]: http://lwn.net

Re: [Linaro-mm-sig] [RFC 1/2] dma-buf: Introduce dma buffer sharing mechanism

2011-11-30 Thread Semwal, Sumit
Hi Dave, Daniel, Rob, > > On Sun, Nov 27, 2011 at 12:29 PM, Rob Clark wrote: >> >> On Sat, Nov 26, 2011 at 8:00 AM, Daniel Vetter wrote: >> > On Fri, Nov 25, 2011 at 17:28, Dave Airlie wrote: >> >> I've rebuilt my PRIME interface on top of dmabuf to see how it would >> >> work, >> >> >> >> I've

Re: [RFC 2/2] dma-buf: Documentation for buffer sharing framework

2011-10-12 Thread Semwal, Sumit
Hi Randy, On Thu, Oct 13, 2011 at 4:00 AM, Randy Dunlap wrote: > On 10/11/2011 02:23 AM, Sumit Semwal wrote: >> Add documentation for dma buffer sharing framework, explaining the >> various operations, members and API of the dma buffer sharing >> framework. >> >> Signed-off-by: Sumit Semwal >> Si

Re: [PATCH v4 2/5] OMAP_VOUT: CLEANUP: Remove redundant code from omap_vout_isr

2011-09-28 Thread Semwal, Sumit
On Wed, Sep 28, 2011 at 8:19 PM, Archit Taneja wrote: > Currently, there is a lot of redundant code is between DPI and VENC panels, > this > can be made common by moving out field/interlace specific code to a separate > function called omapvid_handle_interlace_display(). There is no functional >

Re: [PATCH v4 3/5] OMAP_VOUT: Fix VSYNC IRQ handling in omap_vout_isr

2011-09-28 Thread Semwal, Sumit
On Wed, Sep 28, 2011 at 8:19 PM, Archit Taneja wrote: > Currently, in omap_vout_isr(), if the panel type is DPI, and if we > get either VSYNC or VSYNC2 interrupts, we proceed ahead to set the > current buffers state to VIDEOBUF_DONE and prepare to display the > next frame in the queue. > > On OMAP

Re: [PATCH 3/5] [media]: OMAP_VOUT: Fix VSYNC IRQ handling in omap_vout_isr

2011-09-26 Thread Semwal, Sumit
Hi Vaibhav, On Tue, Sep 27, 2011 at 12:09 PM, Hiremath, Vaibhav wrote: >> -Original Message- >> From: Semwal, Sumit >> Sent: Tuesday, September 27, 2011 11:12 AM >> To: Hiremath, Vaibhav >> Cc: Taneja, Archit; Valkeinen, Tomi; linux-o...@vger.kernel.org; l

Re: [PATCH 3/5] [media]: OMAP_VOUT: Fix VSYNC IRQ handling in omap_vout_isr

2011-09-26 Thread Semwal, Sumit
Hi Vaibhav, >> >> On Mon, Sep 26, 2011 at 3:49 PM, Hiremath, Vaibhav wrote: >>> >>> > -Original Message- >>> > From: Taneja, Archit >>> > Sent: Thursday, September 22, 2011 11:46 AM >>> > To: Hiremath, Vaibhav >&g