Re: [PATCH 2/2] drm/i915: Kill intel_crtc->vbl_wait

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 22, 2014 at 06:05:34PM +0200, Daniel Vetter wrote:
> On Thu, May 22, 2014 at 04:49:03PM +0100, Chris Wilson wrote:
> > On Thu, May 22, 2014 at 06:39:33PM +0300, ville.syrjala@xxxxxxxxxxxxxxx wrote:
> > > From: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>
> > > 
> > > Share the waitqueue that drm_irq uses when performing the vblank evade
> > > trick for atomic pipe updates.
> > > 
> > > Suggested-by: Daniel Vetter <daniel@xxxxxxxx>
> > > Signed-off-by: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>
> > > ---
> > >  drivers/gpu/drm/i915/i915_irq.c      | 25 ++++++-------------------
> > >  drivers/gpu/drm/i915/intel_display.c |  2 --
> > >  drivers/gpu/drm/i915/intel_drv.h     |  2 --
> > >  drivers/gpu/drm/i915/intel_sprite.c  |  5 +++--
> > >  4 files changed, 9 insertions(+), 25 deletions(-)
> > > 
> > > diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
> > > index 304f86a..5905a9d 100644
> > > --- a/drivers/gpu/drm/i915/i915_irq.c
> > > +++ b/drivers/gpu/drm/i915/i915_irq.c
> > > @@ -1724,19 +1724,6 @@ static void gen6_rps_irq_handler(struct drm_i915_private *dev_priv, u32 pm_iir)
> > >  	}
> > >  }
> > >  
> > > -static bool intel_pipe_handle_vblank(struct drm_device *dev, enum pipe pipe)
> > > -{
> > > -	struct intel_crtc *crtc;
> > > -
> > > -	if (!drm_handle_vblank(dev, pipe))
> > > -		return false;
> > > -
> > > -	crtc = to_intel_crtc(intel_get_crtc_for_pipe(dev, pipe));
> > > -	wake_up(&crtc->vbl_wait);
> > > -
> > > -	return true;
> > > -}
> > 
> > Can we keep this bare wrapper? It is quite useful for hooking in vblank
> > checks - i.e. saves me having to reinrtoduce it.
> 
> Just smash them into drm_handle_vblank?

The ones I have in mind the pageflip stall checks and gpu-boost for
missed pageflips, i.e. driver specific.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux