Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp939484pxu; Wed, 2 Dec 2020 07:11:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRIRcjEnsnhkYQ9Cp3IzmWoggCfcM8Btj5MTmXZ1puMtrZETwXwFHqqZ1230EhIgsPnUqx X-Received: by 2002:a05:6402:21a:: with SMTP id t26mr326990edv.173.1606921885083; Wed, 02 Dec 2020 07:11:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606921885; cv=none; d=google.com; s=arc-20160816; b=g8WUXVKti+td12bCjiZJ/4b0H2tw8QchwBGfPQbcEgtXeg2ApU++dPcRtuwLIsMi1U NbE9YoDquH3Wa0w/3zOqq2WzmZK8YWkTAek619JwMQL3/3SkNvAg2huRz5axefmB7BAK kRAZbd2KPvQnnaUoavwxUOFv/q6sq5L5Mej+fZgxxmc3K0BREfSsN8GGMcIbKA2e1U1m Q3GH9ufsxydkcrepPwyCuNLJG56m+ABhUGWkqHdyfvOYl8UplVzkIzMN4D09/h/vvPIf skLhHTsTsNeXiCWsnRp3IMSpFAXA1l8MnihcdL4O/GKWm2PNZo8ChXS081lLzODiJG+j 1gzg== 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=q5xJvg4nvjjgZQmxkhKVMRdu9M0gEjHhA3AT4X447g0=; b=0Qf177NbrDJZJG1wsxtYYPK8BlDDurWOxrgIbMrL0UAhNOGjdY8rpO0m+cdB37fPLL 3tspFjCvkitqTMt5A9czYC5NRKh825Pcos6JeCqxeEa17lj5WgCHc0WS0Ow3WytK8P1K B4DTwX1qtFDrGvhTQwjC3xhzS75QiHtWhKpgKfMh9t8nHChyuagUipewKVq6655p1VqD Mf1iJGRvG1Q+qNshW1nTvlmi3nZTPwRlTprqfy8sQg/2kqrDFQ9jLKWlr4d6OR3RK9wE BtOONK4ghYtddkGnN5lyRQ9qSeNPI3fvekrS5uDWZzcC6Nqf4QAqpnkrxkTvfPdvy6Ic qedw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=VlC36XSJ; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y3si89019eju.441.2020.12.02.07.11.00; Wed, 02 Dec 2020 07:11:25 -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=@redhat.com header.s=mimecast20190719 header.b=VlC36XSJ; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728295AbgLBPJC (ORCPT + 99 others); Wed, 2 Dec 2020 10:09:02 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:44277 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727724AbgLBPJB (ORCPT ); Wed, 2 Dec 2020 10:09:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606921655; 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=q5xJvg4nvjjgZQmxkhKVMRdu9M0gEjHhA3AT4X447g0=; b=VlC36XSJDtxp0jocD8K842LI4G9nV+T073oMBm25Kjs98iAuGGm7UIbAF2LN5GZKPbpy5X ljBFTrxxS+ZwqmjEqm3ImPZ+koqGpTAIQP8is4+6hy8LULSch3Wc1qWQ5yqkaid1BpEF9+ RJ+6iJfvvpSy4K+QTvGPmf/6GU/Gk34= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-239-Bmuk68WSPjizgwxYJ3FhNg-1; Wed, 02 Dec 2020 10:07:29 -0500 X-MC-Unique: Bmuk68WSPjizgwxYJ3FhNg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 565048558E7; Wed, 2 Dec 2020 15:07:28 +0000 (UTC) Received: from localhost (holly.tpb.lab.eng.brq.redhat.com [10.43.134.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2AFCC5D705; Wed, 2 Dec 2020 15:07:27 +0000 (UTC) Date: Wed, 2 Dec 2020 16:07:25 +0100 From: Miroslav Lichvar To: Thomas Gleixner Cc: Jason Gunthorpe , linux-kernel@vger.kernel.org, John Stultz , Prarit Bhargava Subject: Re: [PATCH] rtc: adapt allowed RTC update error Message-ID: <20201202150725.GA2231584@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87mtywe2zu.fsf@nanos.tec.linutronix.de> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks, -- Miroslav Lichvar