From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH v3] drm/i915: Always normalize return timeout for wait_timeout_ioctl Date: Tue, 30 Apr 2013 10:50:56 +0200 Message-ID: <20130430085056.GE6169@phenom.ffwll.local> References: <1366981740-905-1-git-send-email-ville.syrjala@linux.intel.com> <1366982566-11245-1-git-send-email-ville.syrjala@linux.intel.com> <20130427195133.GA13526@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by gabe.freedesktop.org (Postfix) with ESMTP id A8923E5C2F for ; Tue, 30 Apr 2013 01:47:51 -0700 (PDT) Received: by mail-wi0-f172.google.com with SMTP id hm14so3642104wib.17 for ; Tue, 30 Apr 2013 01:47:51 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20130427195133.GA13526@bwidawsk.net> 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: Ben Widawsky Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Sat, Apr 27, 2013 at 12:51:33PM -0700, Ben Widawsky wrote: > On Fri, Apr 26, 2013 at 04:22:46PM +0300, ville.syrjala@linux.intel.com w= rote: > > From: Chris Wilson > > = > > As we recompute the remaining timeout after waiting, there is a > > potential for that timeout to be less than zero and so need sanitizing. > > The timeout is always returned to userspace and validated, so we should > > always perform the sanitation. > > = > > v2 [vsyrjala]: Only normalize the timespec if it's invalid > > v3: Add a comment to clarify the situation and remove the now > > useless WARN_ON() (ickle) > > = > > Cc: Ben Widawsky > > Signed-off-by: Chris Wilson > > Signed-off-by: Ville Syrj=E4l=E4 > = > This does an excellent job of removing the warnings I'd sometimes see. > = > Unfortunately I've confirmed I can still reproduce the hang, and now > with no errors to leave any clues. I can't promise, but I'm 75%ish > certain I'd not always see a WARN before too (in fact I think that was > the case when Chris wrote the original patch) > = > The frequency with which I see the hangs seem to be increasing as well. > Does nobody else see this? I will have to take a shot at getting more > info. Picked up for -fixes, thanks for the patch. -Daniel -- = Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch