Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2248385pxb; Mon, 11 Jan 2021 05:08:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyayRTkCViSbMk65HmkMmfYLX+1GaP2pMkd2AVT5GTPfSGMW2p5OGVJp4jqqpbeFo8Ulb0r X-Received: by 2002:a17:907:2116:: with SMTP id qn22mr10640146ejb.483.1610370520173; Mon, 11 Jan 2021 05:08:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610370520; cv=none; d=google.com; s=arc-20160816; b=wC+EyvVjpqTCpk0jPnpLC5lHOoo5S3M2mmeOS9E7B4ZYgBCG0YT2Tfvhbm7yS02XM2 5fexft4jpaJuYwO9weSWtlb8eMVn0cd2WTRMAyBZSFgoG9Xs/nLPjo1Zb0U2ApUo59vA 8LOYhUYSIMJ6RtBygPEGv0sIgl9Yt9Mm39gEyLzoqSft3OpXpeqSX+FSOmVUM94KOBjv OutzFsCggUm73YUOg0jIgQtxixzi9MZpz8D5SUM+i9pUa8z4jMRv/ucbXpey7XJ7Ppza vWAIUdqsxlt2cHjlbBCtRXRr2iWpzIozYTkgiF5MBSybk39jp7TrqwQZksrGlNgQ+EGS 221Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=fQE92wGImoCuHGlTBsuRYfPJyJNJDeXQD1pa+O0heSQ=; b=el+1m56xg3HZj3xdcJe8OIpsllpnmdh+KNb0MxeZm6xgiJNDhcXxFu+GViMe2034jp V4pfrn+t3qL6ssM2ksyMGhjoaczI1tNZOxb1TcIGortKLnqTgz7sGXVoUlde6+bU1jEZ W2WOOp6YylOvzKbyWm6pUHd2N9c5ZdY+NiF1AK+QkI/CsV6GDdq3GHippkNuICZJgTBw 6T8UMTwsgEnE0/Xa7G2m9bEJKho1hRGf0YsRk1kXhFllJ0eS3ZFx8DBAP03qDDuu8NfL /+zaA61Lxceu7WE1fMwEi38ifb7MfauY5gd4CHQTlvmI4D5NR6IlE2gQPwjHA1mT3cQf T0Og== ARC-Authentication-Results: i=1; mx.google.com; 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 h19si6389791ejf.742.2021.01.11.05.08.15; Mon, 11 Jan 2021 05:08:40 -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; 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 S1729318AbhAKKlV (ORCPT + 99 others); Mon, 11 Jan 2021 05:41:21 -0500 Received: from mail-ot1-f54.google.com ([209.85.210.54]:34125 "EHLO mail-ot1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbhAKKlV (ORCPT ); Mon, 11 Jan 2021 05:41:21 -0500 Received: by mail-ot1-f54.google.com with SMTP id a109so16470566otc.1; Mon, 11 Jan 2021 02:41:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fQE92wGImoCuHGlTBsuRYfPJyJNJDeXQD1pa+O0heSQ=; b=k3CagimkYb5qti0xPocP9KUUcWHcx57HTW4rxNTMiDtntcJOflk9XuQSFaKrsXryQG VKFQdGQ2KtNcgl7UBf+xmXsHosyL7TgRxvXV/W0TL0t+bgrqheg0g8QdADQTlDAP8r0M pfCEOlCGoVuP1L/Bv1BeAtzDrfOvNcqwYzkgI/+wZ7CoL3SdlFBAkzy5aA1zOivBcKN8 Z4n9bPH8RwZFO+OAdBhBrAJHbnSqKYIXPavjD9BNLEP6WGIQWcXdeZJjmi9Idv73TszC vbn4RpeScyaseBMScBrAFfTWQ7jFRppq0mpLVy+Kge83L6SGNRHeYhAV4Sk9Dtlej9KV qLAQ== X-Gm-Message-State: AOAM531zKhywTZpLSAwkmf4zJE32isxlh+FPfxtQJIef+UvJOYLRkd12 sBN18F/uIUWiUOCUO6/ndNC4KcpOItHbKJXTupE= X-Received: by 2002:a05:6830:1f5a:: with SMTP id u26mr10469024oth.250.1610361640322; Mon, 11 Jan 2021 02:40:40 -0800 (PST) MIME-Version: 1.0 References: <20201206214613.444124194@linutronix.de> <20201206220542.062910520@linutronix.de> <87lfcz7pem.fsf@nanos.tec.linutronix.de> In-Reply-To: <87lfcz7pem.fsf@nanos.tec.linutronix.de> From: Geert Uytterhoeven Date: Mon, 11 Jan 2021 11:40:29 +0100 Message-ID: Subject: Re: [patch 5/8] ntp: Make the RTC synchronization more reliable To: Thomas Gleixner Cc: LKML , Alexandre Belloni , Jason Gunthorpe , Miroslav Lichvar , John Stultz , Prarit Bhargava , Alessandro Zummo , linux-rtc@vger.kernel.org, Peter Zijlstra , Wolfram Sang , Linux-Renesas Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, On Mon, Jan 11, 2021 at 11:12 AM Thomas Gleixner wrote: > On Tue, Dec 29 2020 at 20:41, Geert Uytterhoeven wrote: > >> Reported-by: Miroslav Lichvar > >> Signed-off-by: Thomas Gleixner > > > > Thanks for your patch, which is now commit c9e6189fb03123a7 ("ntp: Make > > the RTC synchronization more reliable"). > > > > Since this commit, the I2C RTC on the R-Car M2-W Koelsch development > > board is accessed every two seconds. Sticking a WARN() in the I2C > > activation path gives e.g. > > Huch? Every two seconds? The timer is armed with 11 * 60 * NSEC_PER_SEC, > which is 11 minutes. Confused.... Thanks for the hint: #define SYNC_PERIOD_NS (11UL * 60 * NSEC_PER_SEC) is truncated on 32-bit platforms. Patch sent. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds