Re: [Intel-gfx] [PATCH v4] drm/i915: use hrtimer in wait for vblank

2014-04-01 Thread Daniel Vetter
On Tue, Apr 01, 2014 at 10:14:12AM +0530, Murthy, Arun R wrote: On Thursday 27 March 2014 10:18 AM, Murthy, Arun R wrote: On Tuesday 25 March 2014 03:16 PM, Murthy, Arun R wrote: On Tuesday 25 March 2014 03:02 PM, Jani Nikula wrote: On Tue, 25 Mar 2014, Chris Wilson ch...@chris-wilson.co.uk

Re: [Intel-gfx] [PATCH v4] drm/i915: use hrtimer in wait for vblank

2014-03-31 Thread Murthy, Arun R
On Thursday 27 March 2014 10:18 AM, Murthy, Arun R wrote: On Tuesday 25 March 2014 03:16 PM, Murthy, Arun R wrote: On Tuesday 25 March 2014 03:02 PM, Jani Nikula wrote: On Tue, 25 Mar 2014, Chris Wilson ch...@chris-wilson.co.uk wrote: On Tue, Mar 25, 2014 at 02:28:22PM +0530, Arun R Murthy

Re: [Intel-gfx] [PATCH v4] drm/i915: use hrtimer in wait for vblank

2014-03-26 Thread Murthy, Arun R
On Tuesday 25 March 2014 03:16 PM, Murthy, Arun R wrote: On Tuesday 25 March 2014 03:02 PM, Jani Nikula wrote: On Tue, 25 Mar 2014, Chris Wilson ch...@chris-wilson.co.uk wrote: On Tue, Mar 25, 2014 at 02:28:22PM +0530, Arun R Murthy wrote: In wait for vblank use usleep_range, which will use

[Intel-gfx] [PATCH v4] drm/i915: use hrtimer in wait for vblank

2014-03-25 Thread Arun R Murthy
In wait for vblank use usleep_range, which will use hrtimers instead of msleep. Using msleep(1~20) there are more chances of sleeping for 20ms. Using usleep_range uses hrtimers and hence are precise, worst case will trigger an interrupt at the higher/max timeout. As per kernel document

Re: [Intel-gfx] [PATCH v4] drm/i915: use hrtimer in wait for vblank

2014-03-25 Thread Chris Wilson
On Tue, Mar 25, 2014 at 02:28:22PM +0530, Arun R Murthy wrote: In wait for vblank use usleep_range, which will use hrtimers instead of msleep. Using msleep(1~20) there are more chances of sleeping for 20ms. Using usleep_range uses hrtimers and hence are precise, worst case will trigger an

Re: [Intel-gfx] [PATCH v4] drm/i915: use hrtimer in wait for vblank

2014-03-25 Thread Jani Nikula
On Tue, 25 Mar 2014, Chris Wilson ch...@chris-wilson.co.uk wrote: On Tue, Mar 25, 2014 at 02:28:22PM +0530, Arun R Murthy wrote: In wait for vblank use usleep_range, which will use hrtimers instead of msleep. Using msleep(1~20) there are more chances of sleeping for 20ms. Using usleep_range

Re: [Intel-gfx] [PATCH v4] drm/i915: use hrtimer in wait for vblank

2014-03-25 Thread Murthy, Arun R
On Tuesday 25 March 2014 03:02 PM, Jani Nikula wrote: On Tue, 25 Mar 2014, Chris Wilson ch...@chris-wilson.co.uk wrote: On Tue, Mar 25, 2014 at 02:28:22PM +0530, Arun R Murthy wrote: In wait for vblank use usleep_range, which will use hrtimers instead of msleep. Using msleep(1~20) there are