From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com ([192.55.52.93]:57766 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754374AbdBPNm3 (ORCPT ); Thu, 16 Feb 2017 08:42:29 -0500 Message-ID: <1487252540.3071.1.camel@linux.intel.com> Subject: Re: [PATCH] drm/i915: Squelch any ktime/jiffie rounding errors for wait-ioctl From: Joonas Lahtinen To: Chris Wilson , intel-gfx@lists.freedesktop.org Cc: Matthew Auld , "# v4 . 10-rc1+" , stable@vger.kernel.org Date: Thu, 16 Feb 2017 15:42:20 +0200 In-Reply-To: <20170216125441.30923-1-chris@chris-wilson.co.uk> References: <20170216125441.30923-1-chris@chris-wilson.co.uk> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: On to, 2017-02-16 at 12:54 +0000, Chris Wilson wrote: > We wait upon jiffies, but report the time elapsed using a > high-resolution timer. This discrepancy can lead to us timing out the > wait prior to us reporting the elapsed time as complete. > > This restores the squelching lost in commit e95433c73a11 ("drm/i915: > Rearrange i915_wait_request() accounting with callers"). > > Fixes: e95433c73a11 ("drm/i915: Rearrange i915_wait_request() accounting with callers") > Signed-off-by: Chris Wilson > Cc: Matthew Auld > Cc: Joonas Lahtinen > Cc: # v4.10-rc1+ > Cc: stable@vger.kernel.org Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation