From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Fix pipe off timeout handling for pre-gen4 Date: Thu, 10 Oct 2013 22:34:35 +0200 Message-ID: <20131010203435.GZ8303@phenom.ffwll.local> References: <1381426343-21584-1-git-send-email-ville.syrjala@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-ea0-f182.google.com (mail-ea0-f182.google.com [209.85.215.182]) by gabe.freedesktop.org (Postfix) with ESMTP id 6C0E7E6AA4 for ; Thu, 10 Oct 2013 13:34:16 -0700 (PDT) Received: by mail-ea0-f182.google.com with SMTP id o10so1439125eaj.27 for ; Thu, 10 Oct 2013 13:34:15 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1381426343-21584-1-git-send-email-ville.syrjala@linux.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.syrjala@linux.intel.com Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Oct 10, 2013 at 08:32:23PM +0300, ville.syrjala@linux.intel.com wro= te: > 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. > = > Fix the issue by making sure we pair up the correct time comparison > functions. It would be enough to change just the final check to use > time_after_eq(), but also changing the loop condition to use > time_before() instead of time_after() makes the whole thing look a > bit saner since then we always compare jiffies and timeout in the same > order, and the words before and after now feel more natural when > talking about the timeout. > = > Signed-off-by: Ville Syrj=E4l=E4 Queued for -next, thanks for the patch. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch