Re: [PATCH 3/3] drm: Peek at the current counter/timestamp for vblank queries

2017-03-15 Thread Chris Wilson
On Wed, Mar 15, 2017 at 11:06:32PM +0200, Ville Syrjälä wrote: > > @@ -1608,6 +1619,21 @@ int drm_wait_vblank(struct drm_device *dev, void > > *data, > > > > vblank = &dev->vblank[pipe]; > > > > + /* If the counter is currently enabled and accurate, short-circuit > > queries > > +*

Re: [PATCH 3/3] drm: Peek at the current counter/timestamp for vblank queries

2017-03-15 Thread Ville Syrjälä
On Wed, Mar 15, 2017 at 08:40:27PM +, Chris Wilson wrote: > Bypass all the spinlocks and return the last timestamp and counter from > the last vblank if the driver delcares that it is accurate (and stable > across on/off), and the vblank is currently enabled. > > This is dependent upon the bot

[PATCH 3/3] drm: Peek at the current counter/timestamp for vblank queries

2017-03-15 Thread Chris Wilson
Bypass all the spinlocks and return the last timestamp and counter from the last vblank if the driver delcares that it is accurate (and stable across on/off), and the vblank is currently enabled. This is dependent upon the both the hardware and driver to provide the proper barriers to facilitate r

[PATCH 3/3] drm: Peek at the current counter/timestamp for vblank queries

2016-01-06 Thread Chris Wilson
Bypass all the spinlocks and return the last timestamp and counter from the last vblank if the driver delcares that it is accurate (and stable across on/off), and the vblank is currently enabled. This is dependent upon the both the hardware and driver to provide the proper barriers to facilitate r