From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Subject: Re: [PATCH v8 3/9] drm/i915: Make sprite updates atomic Date: Thu, 22 May 2014 16:24:50 +0300 Message-ID: <20140522132450.GV27580@intel.com> References: <1398767752-619-1-git-send-email-ville.syrjala@linux.intel.com> <1398767752-619-4-git-send-email-ville.syrjala@linux.intel.com> <20140522130355.GT14357@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 428826EC19 for ; Thu, 22 May 2014 06:24:54 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140522130355.GT14357@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Daniel Vetter Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, May 22, 2014 at 03:03:56PM +0200, Daniel Vetter wrote: > On Tue, Apr 29, 2014 at 01:35:46PM +0300, ville.syrjala@linux.intel.com w= rote: > > diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/in= tel_drv.h > > index 96ae78d..d8b540b 100644 > > --- a/drivers/gpu/drm/i915/intel_drv.h > > +++ b/drivers/gpu/drm/i915/intel_drv.h > > @@ -401,6 +401,8 @@ struct intel_crtc { > > /* watermarks currently being used */ > > struct intel_pipe_wm active; > > } wm; > > + > > + wait_queue_head_t vbl_wait; > > }; > = > A bit late, but found something: Why can't we use dev->vblank[crtc].queue > here? We reuse all the vblank infrastructure already ... > = > If you want pretty just add a tiny helper function > = > wait_queue_head_t *drm_crtc_vblank_waitqueue(struct drm_crtc *crtc) > { > return &dev->vblank[drm_crtc_index(crtc)].queue; > } > = > somewhere. > = > I feel guilty here since I've killed Akash's patch over adding a new > vblank wait queue and let yours slip through ;-) Can you please take care > of this? Can do. -- = Ville Syrj=E4l=E4 Intel OTC