From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Widawsky Subject: Re: [PATCH 1/2] drm/i915: timespec_sub should already be normalized Date: Tue, 29 Jul 2014 23:29:26 -0700 Message-ID: <20140730062926.GB1828@intel.com> References: <1406664870-29970-1-git-send-email-benjamin.widawsky@intel.com> <20140730061505.GH21570@nuc-i3427.alporthouse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 0AA6E6E54B for ; Tue, 29 Jul 2014 23:29:35 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140730061505.GH21570@nuc-i3427.alporthouse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Chris Wilson , Intel GFX , Ben Widawsky List-Id: intel-gfx@lists.freedesktop.org On Wed, Jul 30, 2014 at 07:15:05AM +0100, Chris Wilson wrote: > On Tue, Jul 29, 2014 at 01:14:29PM -0700, Ben Widawsky wrote: > > So don't bother checking it again. > > This was introduced: > > commit b361237bcc7cea1d99f770490120d8bc2aed7777 > > Author: Chris Wilson > > Date: Fri Aug 24 09:35:08 2012 +0100 > > > > drm/i915: Juggle code order to ease flow of the next patch > > > > Cc: Chris Wilson > > Signed-off-by: Ben Widawsky > > Ah, it is not so much that the timeout may be unnormalized, but that it > *may* be negative. > -Chris > > -- > Chris Wilson, Intel Open Source Technology Centre >>From looking at the code, I thought it didn't matter (ie. I thought it dtrt regardless of negative). However, I just wrote a little test, and you are correct. It is needed. Sorry about that. -- Ben Widawsky, Intel Open Source Technology Center