From: Daniel Vetter Subject: Re: [PATCH v2] drm/i915: Fix pipe off timeout handling for pre-gen4 Date: Fri, 11 Oct 2013 23:22:50 +0200 Message-ID: <20131011212250.GH8303@phenom.ffwll.local> References: <20131010204244.GD4195@nuc-i3427.alporthouse.com> <1381490491-20687-1-git-send-email-ville.syrjala@linux.intel.com> <20131011114354.GA8349@nuc-i3427.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-ea0-f171.google.com (mail-ea0-f171.google.com [209.85.215.171]) by gabe.freedesktop.org (Postfix) with ESMTP id 91F1E437D7 for ; Fri, 11 Oct 2013 14:22:30 -0700 (PDT) Received: by mail-ea0-f171.google.com with SMTP id n15so2135100ead.2 for ; Fri, 11 Oct 2013 14:22:29 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20131011114354.GA8349@nuc-i3427.alporthouse.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: Chris Wilson , ville.syrjala@linux.intel.com, intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Fri, Oct 11, 2013 at 12:43:54PM +0100, Chris Wilson wrote: > On Fri, Oct 11, 2013 at 02:21:31PM +0300, ville.syrjala@linux.intel.com w= rote: > > From: Ville Syrj=E4l=E4 > > = > > The current pre-gen4 pipe off code might break out of the loop > > due to the timeout, but then the fail to print the warning. > > = > > Refactor the code a bit to use wait_for() to avoid the problem, > > and that we also re-check the condition after the timeout has > > expired. > > = > > v2: Use wait_for() > > = > > Signed-off-by: Ville Syrj=E4l=E4 > Reviewed-by: Chris Wilson Queued for -next, thanks for the patch. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch