[Intel-gfx] [PATCH 3/4] drm/i915: Convert wait_for(I915_READ(reg)) to intel_wait_for_register()

Chris Wilson chris at chris-wilson.co.uk
Thu Jun 30 13:34:45 UTC 2016


On Thu, Jun 30, 2016 at 02:27:55PM +0100, Tvrtko Ursulin wrote:
> On 30/06/16 12:30, Chris Wilson wrote:
> >By using the out-of-line intel_wait_for_register() not only do we can
> >efficiency from using the hybrid wait_for() contained within, but we
> >avoid code bloat from the numerous inlined loops:
> >
> >    text    data     bss     dec     hex filename
> >1078551    4557     416 1083524  108884 drivers/gpu/drm/i915/i915.ko
> >1070775    4557     416 1075748  106a24 drivers/gpu/drm/i915/i915.ko
> >
> >Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

> Read it all and did not spot any errors.
> 
> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

I think I will split this patch into per-file changes just to help
bisection, just in case. I just wanted to share how big an impact this
is. (There are still more we can do mostly for vlv sidebands.)

Mind if I keep your r-b tag on splitting?
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list