From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752407AbbJTKtF (ORCPT ); Tue, 20 Oct 2015 06:49:05 -0400 Received: from www.linutronix.de ([62.245.132.108]:50128 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752351AbbJTKtD (ORCPT ); Tue, 20 Oct 2015 06:49:03 -0400 Date: Tue, 20 Oct 2015 12:48:03 +0200 (CEST) From: Thomas Gleixner To: Richard Cochran cc: John Stultz , Christopher Hall , Jeff Kirsher , "H. Peter Anvin" , Ingo Molnar , Peter Zijlstra , "x86@kernel.org" , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, lkml , kevin.b.stanton@intel.com Subject: Re: [PATCH v4 1/4] Produce system time from correlated clocksource In-Reply-To: <20151020085408.GA2542@netboy> Message-ID: References: <1444675522-4198-1-git-send-email-christopher.s.hall@intel.com> <1444675522-4198-2-git-send-email-christopher.s.hall@intel.com> <20151020085408.GA2542@netboy> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Oct 2015, Richard Cochran wrote: > On Mon, Oct 19, 2015 at 05:36:56PM -0700, John Stultz wrote: > > If we're only tracking 4ms of history, how does this solution > > measurably improve the error over using the timestamps to generate > > MONOTONIC_RAW clock deltas (which doesn't require keeping any history) > > and using getnstime_raw_and_real to take an anchor point to calculate > > the delta from? Why is adding complexity necessary? > > This idea is variant of what I suggested in another reply in this > thread. To my understanding, there is no need at all to keep a > history arbitrarily 4 ms long. Instead, the DSP driver (or whoever > else may need such a thing) can simply sample the system time at the > rate needed for that particular application. That's complete nonsense. The whole point is to have a proper correlation from ART/audio timestamps to system time. Sampling system time does not help in any way, Thanks, tglx