[RFC] drm: add flip-work helper

2013-08-05 Thread Rob Clark
On Mon, Aug 5, 2013 at 4:00 AM, Daniel Vetter wrote: > On Sun, Aug 04, 2013 at 10:20:54PM -0400, Rob Clark wrote: >> On Sun, Aug 4, 2013 at 1:34 PM, Daniel Vetter wrote: >> > On Thu, Aug 1, 2013 at 1:23 AM, Rob Clark wrote: >> >> A small helper to queue up work to do, from workqueue context,

[RFC] drm: add flip-work helper

2013-08-05 Thread Daniel Vetter
On Sun, Aug 04, 2013 at 10:20:54PM -0400, Rob Clark wrote: > On Sun, Aug 4, 2013 at 1:34 PM, Daniel Vetter wrote: > > On Thu, Aug 1, 2013 at 1:23 AM, Rob Clark wrote: > >> A small helper to queue up work to do, from workqueue context, after a > >> flip. Typically useful to defer unreffing

Re: [RFC] drm: add flip-work helper

2013-08-05 Thread Daniel Vetter
On Sun, Aug 04, 2013 at 10:20:54PM -0400, Rob Clark wrote: On Sun, Aug 4, 2013 at 1:34 PM, Daniel Vetter dan...@ffwll.ch wrote: On Thu, Aug 1, 2013 at 1:23 AM, Rob Clark robdcl...@gmail.com wrote: A small helper to queue up work to do, from workqueue context, after a flip. Typically useful

Re: [RFC] drm: add flip-work helper

2013-08-05 Thread Rob Clark
On Mon, Aug 5, 2013 at 4:00 AM, Daniel Vetter dan...@ffwll.ch wrote: On Sun, Aug 04, 2013 at 10:20:54PM -0400, Rob Clark wrote: On Sun, Aug 4, 2013 at 1:34 PM, Daniel Vetter dan...@ffwll.ch wrote: On Thu, Aug 1, 2013 at 1:23 AM, Rob Clark robdcl...@gmail.com wrote: A small helper to queue up

[RFC] drm: add flip-work helper

2013-08-04 Thread Rob Clark
On Sun, Aug 4, 2013 at 1:34 PM, Daniel Vetter wrote: > On Thu, Aug 1, 2013 at 1:23 AM, Rob Clark wrote: >> A small helper to queue up work to do, from workqueue context, after a >> flip. Typically useful to defer unreffing buffers that may be read by >> the display controller until vblank. >>

[RFC] drm: add flip-work helper

2013-08-04 Thread Daniel Vetter
On Thu, Aug 1, 2013 at 1:23 AM, Rob Clark wrote: > A small helper to queue up work to do, from workqueue context, after a > flip. Typically useful to defer unreffing buffers that may be read by > the display controller until vblank. > > Signed-off-by: Rob Clark > --- > I've re-inventing the

Re: [RFC] drm: add flip-work helper

2013-08-04 Thread Daniel Vetter
On Thu, Aug 1, 2013 at 1:23 AM, Rob Clark robdcl...@gmail.com wrote: A small helper to queue up work to do, from workqueue context, after a flip. Typically useful to defer unreffing buffers that may be read by the display controller until vblank. Signed-off-by: Rob Clark robdcl...@gmail.com

[RFC] drm: add flip-work helper

2013-07-31 Thread Rob Clark
A small helper to queue up work to do, from workqueue context, after a flip. Typically useful to defer unreffing buffers that may be read by the display controller until vblank. Signed-off-by: Rob Clark --- I've re-inventing the same wheel three times in as many drivers (omapdrm, tilcdc, and in

[RFC] drm: add flip-work helper

2013-07-31 Thread Rob Clark
A small helper to queue up work to do, from workqueue context, after a flip. Typically useful to defer unreffing buffers that may be read by the display controller until vblank. Signed-off-by: Rob Clark robdcl...@gmail.com --- I've re-inventing the same wheel three times in as many drivers