Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1137478imd; Thu, 1 Nov 2018 10:46:08 -0700 (PDT) X-Google-Smtp-Source: AJdET5epYwca6WqlcwbrkudP+pZY0ijRJpoL1t1QkD/hL9/Sw1m2YBa8/BkfDjyyJD9f1ruXOLrU X-Received: by 2002:a17:902:be0f:: with SMTP id r15-v6mr8361767pls.170.1541094368767; Thu, 01 Nov 2018 10:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541094368; cv=none; d=google.com; s=arc-20160816; b=0yV66Ml4GRT3+2yZTEYwGIctrP8yBxvmhfHKNO/d/YxCnEn8iyIG+aByXIXlrUVpCA li3cG2mRUW3EEZO9asnIv3dLFBFip/y/4qrjrWKS49kcYQC3IJhmQxIF5OspOTNMe7g8 MLJV0NYPKbI2MOvLZiQfyAUtiAPXtve4gvmHn7mFQqKRFtRaHKXQp7Z44XQYJFtm9xWE vGoCyO9weuZkVqMjd6gkib8UQEdlexSVrBRLIb4lNcn8pAIjXcHZeUJUyyePb24Y1iP7 1UM20vTJElSLTbPlKb/VzWwqLuTcnmfIleuyMZItNLuGmAy67XGDXKI169t2JUydTrSW O8og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=SXEa2z6Kqy4ptPhNrKYFb6T5hNiNs3Ha8nRoDXQyYuw=; b=ydiDfhyZF0z/nLCh4Kqepm2qEPRqxKz3dOLCx4LoVzwNIZ2q4kI+AgxQzu/BQqpnB7 wGwlLUmwi+BXkeSOvOiXx9FoUt/hnZNUZc8SfOm4OseK+ObJDif8KvdCvIATsQG6rvu7 VGMK6w0MUlsUZ9P8LjpBAMOp+cZayNrBXTD3xU3L+47oSR17MNVihMSw6GmRBOOPq/Gv 5nTOYrhp9olV9ZcqprEFi1ZDPRTvS6J+KvB/cf7WUBe4+iK/wLMgO1NBvvlZIu1SavGJ jE3yF3Mumnpg8/kfc7lI00Q92N6bD/3ql3/qPnMdMkCM+unLC5M7QUa988fGNIRuMCuO ui8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3-v6si30573245pgr.252.2018.11.01.10.45.50; Thu, 01 Nov 2018 10:46:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727981AbeKBCtL (ORCPT + 99 others); Thu, 1 Nov 2018 22:49:11 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:57877 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbeKBCtL (ORCPT ); Thu, 1 Nov 2018 22:49:11 -0400 Received: from p5492fe24.dip0.t-ipconnect.de ([84.146.254.36] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gIH1e-0007sg-9T; Thu, 01 Nov 2018 18:44:58 +0100 Date: Thu, 1 Nov 2018 18:44:57 +0100 (CET) From: Thomas Gleixner To: John Stultz cc: Christopher Hall , "H. Peter Anvin" , linux-rt-users , jesus.sanchez-palencia@intel.com, Gavin Hindman , liam.r.girdwood@intel.com, Peter Zijlstra , LKML , Miroslav Lichvar Subject: Re: TSC to Mono-raw Drift In-Reply-To: Message-ID: References: <20181015160945.5993-1-christopher.s.hall@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Oct 2018, John Stultz wrote: > On Fri, Oct 19, 2018 at 3:36 PM, John Stultz wrote: > I spent a little bit of time thinking this out. Unfortunately I don't > think its a simple matter of calculating the granularity error on the > raw clock and adding it in each interval. The other trouble spot is > that the adjusted clocks (monotonic/realtime) are adjusted off of that > raw clock. So they would need to have that error added as well, > otherwise the raw and a otherwise non-adjusted monotonic clock would > drift. > > However, to be correct, the ntp adjustments made would have to be made > to both the base interval + error, which mucks the math up a fair bit. Hmm, confused as usual. Why would you need to do anything like that? Thanks, tglx