[PATCH] drm/prime: keep a reference from the handle to exported dma-buf (v2)

2012-12-20 Thread Daniel Vetter
On Thu, Dec 20, 2012 at 01:39:07PM +1000, Dave Airlie wrote: > From: Dave Airlie > > This is likely the simplest solution to the problem, and seems > to work fine. > > When we export a dma_buf from a gem object, we keep track of it > with the handle, we take a reference to the dma_buf. When we c

[PATCH] drm/prime: keep a reference from the handle to exported dma-buf (v2)

2012-12-20 Thread Daniel Vetter
On Thu, Dec 20, 2012 at 01:39:07PM +1000, Dave Airlie wrote: > From: Dave Airlie > > This is likely the simplest solution to the problem, and seems > to work fine. > > When we export a dma_buf from a gem object, we keep track of it > with the handle, we take a reference to the dma_buf. When we c

[PATCH] drm/prime: keep a reference from the handle to exported dma-buf (v2)

2012-12-20 Thread Dave Airlie
From: Dave Airlie This is likely the simplest solution to the problem, and seems to work fine. When we export a dma_buf from a gem object, we keep track of it with the handle, we take a reference to the dma_buf. When we close the handle (i.e. userspace is finished with the buffer), we drop the r

Re: [PATCH] drm/prime: keep a reference from the handle to exported dma-buf (v2)

2012-12-20 Thread Daniel Vetter
On Thu, Dec 20, 2012 at 01:39:07PM +1000, Dave Airlie wrote: > From: Dave Airlie > > This is likely the simplest solution to the problem, and seems > to work fine. > > When we export a dma_buf from a gem object, we keep track of it > with the handle, we take a reference to the dma_buf. When we c

Re: [PATCH] drm/prime: keep a reference from the handle to exported dma-buf (v2)

2012-12-20 Thread Daniel Vetter
On Thu, Dec 20, 2012 at 01:39:07PM +1000, Dave Airlie wrote: > From: Dave Airlie > > This is likely the simplest solution to the problem, and seems > to work fine. > > When we export a dma_buf from a gem object, we keep track of it > with the handle, we take a reference to the dma_buf. When we c

[PATCH] drm/prime: keep a reference from the handle to exported dma-buf (v2)

2012-12-19 Thread Dave Airlie
From: Dave Airlie This is likely the simplest solution to the problem, and seems to work fine. When we export a dma_buf from a gem object, we keep track of it with the handle, we take a reference to the dma_buf. When we close the handle (i.e. userspace is finished with the buffer), we drop the r