Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp588931pxu; Thu, 3 Dec 2020 07:55:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMmpwnOxsmZfKL5N01JiPIf9Vbp/cZlOTPdRX4K9paXKhasVDDHDOcPnFL+dV4L2RYvpfy X-Received: by 2002:a05:6402:1153:: with SMTP id g19mr3441846edw.312.1607010927735; Thu, 03 Dec 2020 07:55:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607010927; cv=none; d=google.com; s=arc-20160816; b=KpfelBxSNlYubLCXiQMB4xJCWBPKjy3aTT2aGrVOw5TluvK4CZJqyqKUyEoTOVw6mk X5/2cDPfAGPZBThO1bwrOwmqYP5Z0ffYifirFEOcfNKQxc1NfiVbLVEXAj26EcrSH1g0 iKSWuXpELnbPGpPKrqiDgJZG0l4et6jsmNhnjHx8+zS3k7TxW1waBvcnpRlDer7R0jAq tQfuJG5mDWB757dwHkD6wz0TsS/MQNTEQZ4cLL0/KsW3X3fFq3hFYMJYG3uf6Pdlu4pU IEKwWyXffujYrK8/jd4rk6jSHU6VLKL83HgGJGPxKEx1gIqESKz0iFrXhwKmG2KKD9Q0 kjAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sza1dnpdO/xRy/URAk8vbDczQ7tTlrJ7/tYshaI+Ua4=; b=Y4W/3bsrrcSQpIGAKoU1N9VZs0aD4jW/I8oozEqmjMjakFZ5iewA7To5YM8tl0Z4Oo aylQrdPN8bHgM4IH9OTTN+wCiCZs/0oeNJYOfP6eNYxRPfqhTV7XCfIiFIxZvogZEay0 sRFWijugXYfB4HJsL9+EbwDoPMYHij09WvUBiX+QAalAqLwTQhQXsLmqJAm5Uc+RGkvR i2YFV80CndtzCqWroASmYsBw7lsR7auzKF5SWCVeD1BCptxzY4CB9s2/G/+l3VufYVxv A5KNqPITIs04rs4xxBRfZ0nuAo3K9L2QRdZd/atUQGeb6fZCgoiZ8aDfKTBdsGJQv0qq V7Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=hF8ouXjH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r24si1321185eji.211.2020.12.03.07.55.03; Thu, 03 Dec 2020 07:55:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=hF8ouXjH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726897AbgLCPxd (ORCPT + 99 others); Thu, 3 Dec 2020 10:53:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbgLCPxc (ORCPT ); Thu, 3 Dec 2020 10:53:32 -0500 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E53EBC061A4E for ; Thu, 3 Dec 2020 07:52:51 -0800 (PST) Received: by mail-qv1-xf36.google.com with SMTP id g19so1153484qvy.2 for ; Thu, 03 Dec 2020 07:52:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=sza1dnpdO/xRy/URAk8vbDczQ7tTlrJ7/tYshaI+Ua4=; b=hF8ouXjHXZqJp61av+QLd2XwK8d0cLF9jIOk7ianNFJeR0UjYKxMwX59VX43vhHmTc jlNF6uUnkKdDdQXma1bBEMVkSXz+AbXX2me+VSEg4D7CMzllqWgIS4GHBcAae5b9yyrm CYyiQEhg9cOgRRW1PKZzW+5iMUUcXUBqK7kvCMICnbzMviockO55k0BF4lSPgssdipfH 4+THgwN89siTKIGheN4Q9RgyGfjqBV1tNhowV+DzQ8IjKOXix4jrOvrtfBMy8w1b2Zbh L6nyaud1Ki3ou9dv88UzwzdQ2Nxunpc6m1rnqL4YX6wD1AjlTE4tNSb0vFSsHskwUNM4 /PoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=sza1dnpdO/xRy/URAk8vbDczQ7tTlrJ7/tYshaI+Ua4=; b=KV3jAMmxDx+k0UAl30I1qVISPKhXKErKKEo3YzJGIqhVC1GIjefCPHjaq8Yz7Fu+Yq w5YaRPluxCWUHr2ZeXT92NRHdIuxHB/1IqD5TMqXa//Gu4XbFzReZn3G+1N/1CL7UiOG U3MXXxb4WoIrqqCP2VXhSH0EFbEyCBKlgBRmguplLTt1VPeZeHbGRelel+yzvoeLXyFO F0PcQTOgL3dWI0fhByIf3159q1SUXlJIofHEevFj8PNa1IoCBykZm60uYFcbEE9k6uOt 8ACOZo6m7Z52Z3rW218ivphJeU4TX/92EpCM90GNOGNkLY98V12UPViRgRcGaBHvSknp BNdQ== X-Gm-Message-State: AOAM5326fZdGX+mgezn75WOE/Zq6s57VUSN/0ml4qbJw2NQF+L/tCKR6 nO1vItA9ILY4kgsTuFKUzY3+Ew== X-Received: by 2002:a0c:fb07:: with SMTP id c7mr3690951qvp.52.1607010770946; Thu, 03 Dec 2020 07:52:50 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-156-34-48-30.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.48.30]) by smtp.gmail.com with ESMTPSA id k27sm1686039qkj.79.2020.12.03.07.52.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 07:52:50 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1kkquX-005Wrn-O4; Thu, 03 Dec 2020 11:52:49 -0400 Date: Thu, 3 Dec 2020 11:52:49 -0400 From: Jason Gunthorpe To: Alexandre Belloni Cc: Thomas Gleixner , Miroslav Lichvar , linux-kernel@vger.kernel.org, John Stultz , Prarit Bhargava , Alessandro Zummo , linux-rtc@vger.kernel.org, Peter Zijlstra Subject: Re: [PATCH] rtc: adapt allowed RTC update error Message-ID: <20201203155249.GT5487@ziepe.ca> References: <20201201161224.GF5487@ziepe.ca> <20201201171420.GN1900232@localhost> <20201201173540.GH5487@ziepe.ca> <87mtywe2zu.fsf@nanos.tec.linutronix.de> <20201202162723.GJ5487@ziepe.ca> <87a6uwdnfn.fsf@nanos.tec.linutronix.de> <20201202205418.GN5487@ziepe.ca> <874kl3eu8p.fsf@nanos.tec.linutronix.de> <87zh2vd72z.fsf@nanos.tec.linutronix.de> <20201203021047.GG3544@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201203021047.GG3544@piout.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 03, 2020 at 03:10:47AM +0100, Alexandre Belloni wrote: > IIRC, used in conjunction with rtc_hctosys which also adds > inconditionnaly 500ms this can ends up with the system time > being one second away from the wall clock time which NTP will take quite > some time to remove. I can't remember the details, but this was not the intention. As long as systohc and hctosys exist then the design goal of rtclib should be to provide sub-second accuracy on the round trip of time through the RTC. Otherwise what is the point? Jason