From: Chris Wilson Subject: Re: [PATCH] drm/i915: Eliminate race from gen2/3 page flip interrupt handling Date: Mon, 18 Feb 2013 13:19:46 +0000 Message-ID: <20130218131946.GI16131@cantiga.alporthouse.com> References: <1361188671-11639-1-git-send-email-ville.syrjala@linux.intel.com> <20130218121609.GG16131@cantiga.alporthouse.com> <20130218122724.GN9135@intel.com> 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 0214DE62B4 for ; Mon, 18 Feb 2013 05:19:53 -0800 (PST) Content-Disposition: inline In-Reply-To: <20130218122724.GN9135@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Mon, Feb 18, 2013 at 02:27:24PM +0200, Ville Syrj=E4l=E4 wrote: > On Mon, Feb 18, 2013 at 12:16:09PM +0000, Chris Wilson wrote: > > /* We detect FlipDone by looking for the change in PendingFlip from '1' > > * to '0' on the following vblank, i.e. IIR has the Pendingflip > > * asserted following the MI_DISPLAY_FLIP, but ISR is deasserted, hence > > * the flip is completed (no longer pending). Since this doesn't raise = an > > * interrupt per-se, we watch for the change at vblank. > > */ > = > You want me to include that comment somewhere in the code? Please, would be useful for future archaeologists. I'd pick the gen3 location as it is more compact. -Chris -- = Chris Wilson, Intel Open Source Technology Centre