From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Cochran Subject: Re: [PATCH 1/5] Add functions producing system time given a backing counter value Date: Wed, 29 Jul 2015 13:48:41 +0200 Message-ID: <20150729114840.GA16880@localhost.localdomain> References: <1438044416-15588-1-git-send-email-christopher.s.hall@intel.com> <1438044416-15588-2-git-send-email-christopher.s.hall@intel.com> <20150729104944.GM19282@twins.programming.kicks-ass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Thomas Gleixner , John Stultz , Christopher Hall , Ingo Molnar , Jeff Kirsher , john.ronciak@intel.com, "H. Peter Anvin" , "x86@kernel.org" , lkml , netdev@vger.kernel.org To: Peter Zijlstra Return-path: Content-Disposition: inline In-Reply-To: <20150729104944.GM19282@twins.programming.kicks-ass.net> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Wed, Jul 29, 2015 at 12:49:44PM +0200, Peter Zijlstra wrote: > This is still fuzzy, right? The hardware ART timestamp could be from > _before_ the NTP adjust; or the NTP adjust could happen while we do this > conversion and we'll take the retry loop. In the original series, yes. > In both cases, the resulting value is computed using a different slope > than was in effect at the time of the stamp. With the end result being > slightly off from what it should be. In Thomas' patch the get_ts() is meant to read fresh pairs of time stamps from within the loop. Thanks, Richard