Re: [Intel-gfx] [PATCH] drm/i915: Use usleep_range() in wait_for()

2015-03-23 Thread Daniel Vetter
On Mon, Mar 23, 2015 at 11:39:12AM +0200, Ville Syrjälä wrote: > On Fri, Mar 20, 2015 at 09:09:51PM +, Chris Wilson wrote: > > On Fri, Mar 20, 2015 at 09:28:08PM +0200, ville.syrj...@linux.intel.com > > wrote: > > > From: Ville Syrjälä > > > > > > msleep() can sleep for way too long, so swit

Re: [Intel-gfx] [PATCH] drm/i915: Use usleep_range() in wait_for()

2015-03-23 Thread Ville Syrjälä
On Fri, Mar 20, 2015 at 09:09:51PM +, Chris Wilson wrote: > On Fri, Mar 20, 2015 at 09:28:08PM +0200, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > msleep() can sleep for way too long, so switch wait_for() to use > > usleep_range() instead. Following a totally unscienti

Re: [Intel-gfx] [PATCH] drm/i915: Use usleep_range() in wait_for()

2015-03-23 Thread Daniel Vetter
On Fri, Mar 20, 2015 at 12:31:16PM -0700, Jesse Barnes wrote: > On 03/20/2015 12:28 PM, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > msleep() can sleep for way too long, so switch wait_for() to use > > usleep_range() instead. Following a totally unscientific method > > I j

Re: [Intel-gfx] [PATCH] drm/i915: Use usleep_range() in wait_for()

2015-03-20 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 6020 -Summary- Platform Delta drm-intel-nightly Series Applied PNV -2 274/274

Re: [Intel-gfx] [PATCH] drm/i915: Use usleep_range() in wait_for()

2015-03-20 Thread Chris Wilson
On Fri, Mar 20, 2015 at 09:28:08PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > msleep() can sleep for way too long, so switch wait_for() to use > usleep_range() instead. Following a totally unscientific method > I just picked the range as W-2W. > > This cuts the i915 in

Re: [Intel-gfx] [PATCH] drm/i915: Use usleep_range() in wait_for()

2015-03-20 Thread Jesse Barnes
On 03/20/2015 12:28 PM, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > msleep() can sleep for way too long, so switch wait_for() to use > usleep_range() instead. Following a totally unscientific method > I just picked the range as W-2W. > > This cuts the i915 init time on my BSW

[Intel-gfx] [PATCH] drm/i915: Use usleep_range() in wait_for()

2015-03-20 Thread ville . syrjala
From: Ville Syrjälä msleep() can sleep for way too long, so switch wait_for() to use usleep_range() instead. Following a totally unscientific method I just picked the range as W-2W. This cuts the i915 init time on my BSW to almost half: - initcall i915_init+0x0/0xa8 [i915] returned 0 after 41997