Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1088021pxu; Wed, 2 Dec 2020 10:41:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5V97oST+55yFMz7i7td9WBJvCAk1Q4hGC27fQiawthC/9WiqANmRBaJu7X84F8UiNgyj7 X-Received: by 2002:a50:99cb:: with SMTP id n11mr1305767edb.362.1606934493189; Wed, 02 Dec 2020 10:41:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606934493; cv=none; d=google.com; s=arc-20160816; b=beRDbrI4ukx3df/3XeBbyXunCdQJ9ksbjTAIsVbuXfesNpvjhPbVsDj0MM22t+wHAb XhjmIbshc3oMAAXbLOvuiNaVNG5CtpeeNf39NoUrM0eUWXxOpve7R37GWMsWRHzuJtjC yjzqlsdWTiKw/Y3vLgpV6+jyO555nin6qxfBpCE1kLwqF+NngJ3vxFp3dOy26gNyKq0x BJNNFV/1tVvm1CJPqTSam9aZQvSQwSEgCgHqEq92sHAbXBHqBi6+Kw0sg9yiUGK5RbN4 YkdiQjn6t83E2wgx5hK0apj59hkn3PZ9RoBxUhrLaOAaqy/FUmiqJrKCO3uabwdmexdy bI5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=1foj5CsrViA5SnitgSB9afdnS+nk8RYKri/uQf762Sw=; b=plSvnH59507zT9xInPLoaH0x4gDNMc37jVxxModBrDHr45w4AoY3ja8tPTfWFv3pLW 19wH+axh99XLVHoiwMGjmhb7SdT3670qM6U1oeBffgJNIVpLdnlpNp935ZJNC9GFy3Xe Zj16/yUAfI7LA9+GmtlYzJuel6IhEE+Y0V/H+SSPc6H9X4eHGRIFgUTNlb+UQncoqIkL cL32NtLA+cmNX8BbW7eKPTfi0HJsgMXcUbQdOK7Mqycuua2p13n51EvC5byq5UysZHcD MZT3FzsDpHnTQ3XyOaH9Esaye1kl5K8DUvVHxZCt7yIqDLBZo4Y2yJCG6LxVB68Qf3Qg P5Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gwasJt4p; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si481948edc.196.2020.12.02.10.41.08; Wed, 02 Dec 2020 10:41:33 -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=@linutronix.de header.s=2020 header.b=gwasJt4p; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729173AbgLBSha (ORCPT + 99 others); Wed, 2 Dec 2020 13:37:30 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:35564 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729130AbgLBSha (ORCPT ); Wed, 2 Dec 2020 13:37:30 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1606934208; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1foj5CsrViA5SnitgSB9afdnS+nk8RYKri/uQf762Sw=; b=gwasJt4poOMW5wOYjISAkGD39Hg11wWf7RWMwG0ZUzlWUPsB/RtTTOt4qsQx306KjFJi5j 6O17bg2fqul9rX9Hh7jbSJhSyV/gkUEEMRYOpYLGZuuF/zTq4yT6k/n4mF+cg+n78rqByy 4rxxM2Z94IRy1d++35EpyUzWn+adeXAmTdkWZmIKfBZ+8bZFalHYWVkrwtBvxG28/6/kM2 pfNcjf//jQQdKnQcwHodOh9nLEvjQCggxmMEa+Alsu33nNM2p+7pR1JaVPg5sOBFY39XnO tLEK1u+xUzrJYtTj06JUMRMjZFxfjnVZQ69Pi5V8pvGG7m8KoUnAcHn5cTD8mw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1606934208; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1foj5CsrViA5SnitgSB9afdnS+nk8RYKri/uQf762Sw=; b=RSWTZTk0SHOmL86mzhZi8XFkcjohexnCZi2/sqDGub0NrcrnQm00BCnZQ101U/cSU26Rsy gH8cU2scPQ1K4TAA== To: Miroslav Lichvar Cc: Jason Gunthorpe , linux-kernel@vger.kernel.org, John Stultz , Prarit Bhargava Subject: Re: [PATCH] rtc: adapt allowed RTC update error In-Reply-To: <20201202153656.GC2231584@localhost> References: <20201201143835.2054508-1-mlichvar@redhat.com> <20201201161224.GF5487@ziepe.ca> <20201201171420.GN1900232@localhost> <20201201173540.GH5487@ziepe.ca> <87mtywe2zu.fsf@nanos.tec.linutronix.de> <20201202150725.GA2231584@localhost> <20201202153656.GC2231584@localhost> Date: Wed, 02 Dec 2020 19:36:47 +0100 Message-ID: <87eek8dphc.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 02 2020 at 16:36, Miroslav Lichvar wrote: > On Wed, Dec 02, 2020 at 04:07:28PM +0100, Miroslav Lichvar wrote: >> On Wed, Dec 02, 2020 at 02:44:53PM +0100, Thomas Gleixner wrote: >> > Something like the completely untested below should make this reliable >> > and only needs to retry when the work is running late (busy machine), >> > but the wakeup will be on time or at max 1 jiffie off when high >> > resolution timers are not available or disabled. >> >> It seems to work nicely. In my test most of the updates succeeded on >> the first attempt hitting the right tick, the rest succeeding on the >> second attempt. Only when the clock was set to run 10% faster, it >> needed few more attempts to converge to the target time. > > I noticed an observable change wrt adjtimex() calls though. It seems > it now reschedules the RTC update, i.e. there can be more than one > update per 11 minutes. Was this intended? No. Let me fix that. Thanks, tglx