Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp18426683ybl; Fri, 3 Jan 2020 02:04:38 -0800 (PST) X-Google-Smtp-Source: APXvYqztmvnAMUnK39LSW0mhD7tdP9gKpxSlstz9IzxIghCUI2xmMOWw1nQdtxTwraXysBIZJz5Q X-Received: by 2002:a9d:461b:: with SMTP id y27mr106224819ote.280.1578045878318; Fri, 03 Jan 2020 02:04:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578045878; cv=none; d=google.com; s=arc-20160816; b=evPPXAhwKC4fs3yCRAeo5Lli99ciTegHe9GsJ4JTrO0np5BDpD9ZE/iOPD+zgkabjU yNf1VLNXj+HOpSJiQ+x7PX4Sliimypx/GeLB/Ll/+AFX/Z2IhECmiG+clcSPk841EwwN Y8ychCj9TIbClsc8WyuHf7bHM80hO0A7CZ2CK8ttdVOB9FRd6Ilq+ilRgxiV+ccStMAk yCwLeZCqRLpmHnaek2flo0A2BrocntD582kwJHgSnaOuPjNqXq9AT3k5t1p0nBTUx9gV eTWtIi88wKwx101y4M4KgQI1LUPuvxqwHyc0G1jEaG9fryi4a8wf/za7pPQnOoYBPYpA Azug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gJAiF+/zUbeFs21isHhgd/5jUQJuliYiLZnbdOYt/Ss=; b=IhgLT8ToEVhBMIkn97MNN764TvRRyUKbQ+duBk6yY7dUoUTuyzuX4fDLhW+m0Ixp8+ 1kOeyKj0QhYUCw7ty8ppKWxEwq6twul7e8FXw/643jQG5Tr1wy9TdXTRqk7/NcPKbG7z B0Z6RgR09ewbrf6Ry5TfcmbTpb1jOtrAt+7UFtEJAlGA7shOOLHfopucWjCsvw8/OXU9 plquNXVnF5WBAio9YEAHiV8aPGksKSjikAvSagBSE1QRl+BdnMrVMumHNWaRr+NzsPkO zDTqx9622+YbOVo5f94knGcfxsaai9OmZRRQsbUxlSVDS5zRGSZ5S+OqylXVS1LkKpi7 SQoQ== 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 t14si24874275otp.210.2020.01.03.02.04.25; Fri, 03 Jan 2020 02:04:38 -0800 (PST) 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 S1727457AbgACKCf (ORCPT + 99 others); Fri, 3 Jan 2020 05:02:35 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:55947 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbgACKCf (ORCPT ); Fri, 3 Jan 2020 05:02:35 -0500 Received: from localhost (lfbn-lyo-1-1670-129.w90-65.abo.wanadoo.fr [90.65.102.129]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 0AC84200004; Fri, 3 Jan 2020 10:02:32 +0000 (UTC) Date: Fri, 3 Jan 2020 11:02:32 +0100 From: Alexandre Belloni To: Mikhail Gavrilov Cc: J William Piggott , Karel Zak , util-linux@vger.kernel.org, Linux List Kernel Mailing , linux-rtc@vger.kernel.org Subject: Re: [bugreport] "hwclock -w" reset time instead of setting the right time Message-ID: <20200103100232.GH3040@piout.net> References: <20200101141748.GA191637@mit.edu> <20200102110817.ahqaqidw3ztw3kax@10.255.255.10> <20200102131434.tky2hquki23laqqo@10.255.255.10> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 02/01/2020 22:17:26+0500, Mikhail Gavrilov wrote: > On Thu, 2 Jan 2020 at 21:59, J William Piggott wrote: > > > > You've demonstrated that 'hwclock -w' does not 'reset' the RTC. > > > > Does your new motherboard use a battery backup for the RTC? > > Is the battery good? > > > > If you look carefully demonstration the RTC 'reset' happens after > reboot __only__ when 'hwclock -w' have been entered before reboot. > So if I reboot the computer without 'hwclock -w' the RTC will be not reset. > What is your kernel version? -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com