Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp19569682ybl; Sat, 4 Jan 2020 04:25:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxRg1GWANue7nlvVO54UsAgM5eM4CzSNRZRcrU8QM9CFGnVDf3ZVCxklpd+Qcrk1jAcRbkO X-Received: by 2002:a05:6830:1e11:: with SMTP id s17mr100383539otr.343.1578140721439; Sat, 04 Jan 2020 04:25:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578140721; cv=none; d=google.com; s=arc-20160816; b=yCdrdZzlCWTmc47Y9oMqfEvGVh2GkZGGK7jOifQ3KxbNYIgqTaFSfoJDjcAINyZdCq SSqb87WRgCRWfqlFLdgQbySHplONtZrAJmmY3VVwALzsqeCxByTqpaP5xp1Kkt6irPXY f6dpzEkpE/TjbOk8lkqJf7kyJp+PMrDSrJeoSX0Z3EM/ohkxv/ffgXlvJHFJSAEQqADc 2R0YjgRodqVYYT+n0FIMLUegb7twN2Ba4XOzZtNesNe+daqFo4s3Q9ISxwvrdVULF/jb 3jG02OzGgme5mZd2pWMqBGmB4fshccogNLRYcp4LRbS6bu6T7dLlNP68bIGEYnX+XXdh urKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LKQLDuUQyKEp3PqqNw3i4af+LyZvLM7Wyx7d36N1/7g=; b=QoC4js7mhXLtSb70/rN3ZD8vsjffaTET4uYZTNGJ3MH6ZCEbWRoZRXgi1WIqBCxhb4 VopGX954MXg7PKmlaAHXmqs0srM3ob9ZS/yhXyXg0NfssA0PXQ/SzzbDySLdmlYPWA66 17Qhe2uqSfb6OJfHGIebD0z1pEUoO+ew7NAu75WrkVxxJ6i+Z+RwrJg/pYFAv4OFVCfS mIEqWAcpYqgcpL9tPPwYg3efrAW0iCeX+Jd5FBmp2NOfiuOi3BnL6Us/arMRvTc62lsm vFEpdaL56uHPGbeJEFF6Qlf/xK9/SFCBkLYc+GBUM5jFxpNigUSW+Lem9SQbH0mr9vyw +yBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vAB0O4s6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si28910678oic.19.2020.01.04.04.24.55; Sat, 04 Jan 2020 04:25:21 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vAB0O4s6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725884AbgADMXV (ORCPT + 99 others); Sat, 4 Jan 2020 07:23:21 -0500 Received: from mail-il1-f177.google.com ([209.85.166.177]:44442 "EHLO mail-il1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbgADMXU (ORCPT ); Sat, 4 Jan 2020 07:23:20 -0500 Received: by mail-il1-f177.google.com with SMTP id z12so2292751iln.11; Sat, 04 Jan 2020 04:23:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LKQLDuUQyKEp3PqqNw3i4af+LyZvLM7Wyx7d36N1/7g=; b=vAB0O4s6yBazbpmIEiJWWx9AHn68/D7fHgaqYwW8qVN6GEYn3Jd5FTODWftDaqvoWb o0aR4RUJuL8WgEYjmE59nhe1op+jIQ0w3FEU8F2Bi0d9e604m0gXTi4CX4zqkFy5ESIE a2/qY0xyBIhm3xiuremTqrk83EOHEEEnchWuG7ptss2XGcjOjGay+2Sv+5wQLTbIx8yS R2G7Z3Iwgsi2X50VkDj0E/nti4kMIRlzm1pGnx63us7gEwBE21oQhbjm0TqZ0z+erHs5 GLPxLYuLwVAzytAc5/aPAGggMgctbiurMUgkkfO2ZZmympTiR4XIrAf0sYhiPEX9gH79 usLw== 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=LKQLDuUQyKEp3PqqNw3i4af+LyZvLM7Wyx7d36N1/7g=; b=B240iv7WmWACD5yryV5Zfdep0qAXt7CEZrqq/hN8zAIr2UD9YoKMwlnilsOilS2GDX c2eByEyrIBuHZDVXDF2xtTIWPGTHT1rrsKalZKOfhKH4XCrUJmnbWLraDztComNXLrbu uKX8CZONYj7PoQ5TMxJvJLnpiD33aLsiTWQyVCDPDiQz5IkNxPP28dt+P5sfUXjDj7Ho anabQkZlLtiL7j4jcIZptaeaqWAm5nI9DPjk6Ar1AmgbthxaQjV6bVEfgq+8i97uwGcd ukP0gj2eU8xjzNkjnK+VMZmkh7xtHbdSVs/D92Wg/WTih4YlsMyeAxj32jkiaNPHGVsh pALA== X-Gm-Message-State: APjAAAV57W51veMPDzYYaISUebeXMP+QtJ2tayzUM8TaK618bGftDqHI cElf1++QeGuWfHm3KMqX0NGsdbdXuLrhwdmbLzRVLH0/5g8aRP0w X-Received: by 2002:a92:cc42:: with SMTP id t2mr79004310ilq.111.1578140599825; Sat, 04 Jan 2020 04:23:19 -0800 (PST) MIME-Version: 1.0 References: <20200102110817.ahqaqidw3ztw3kax@10.255.255.10> <20200102131434.tky2hquki23laqqo@10.255.255.10> <20200103100232.GH3040@piout.net> <20200103101935.GI3040@piout.net> <7c015680-01b7-9c3e-c4c7-5d0b6e964781@hygon.cn> <6ac1d65c-33ac-e3a4-799f-24279b677f90@hygon.cn> In-Reply-To: <6ac1d65c-33ac-e3a4-799f-24279b677f90@hygon.cn> From: Mikhail Gavrilov Date: Sat, 4 Jan 2020 17:23:09 +0500 Message-ID: Subject: Re: [bugreport] "hwclock -w" reset time instead of setting the right time To: Jinke Fan Cc: Alexandre Belloni , J William Piggott , Karel Zak , "util-linux@vger.kernel.org" , Linux List Kernel Mailing , "linux-rtc@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 4 Jan 2020 at 16:37, Jinke Fan wrote: > > Hi Mike: > Yes, We do check the time in BIOS Menu after first reboot. > > We do some further tests in our X570 platform: > * "AMD Ryzen 7 3700X" with mainboard "ASUS ROG STRIX X570-E GAMING". > * OS is Fedora rawhide, with default Kernel version which is shown as > follows: > $uname -a > Linux bogon 5.5.0-0.rc4.git0.1.fc32.x86_64 #1 SMP Mon Dec 30 06:32:36 > UTC 2019 x86_64 x86_64 x86_64 GNU/Linux > > And we upgrade/downgrade BIOS version from 1005/1201/1404/1405, and we > found out that : > * OLD BIOS version 1005/1201 does not reset the rtc time and keep the > setup rtc time after reboot. > * NEW BIOS version 1404/1405 DO reset the rtc time to 2019/01/01 after > reboot. > > Detailed pictures of the BIOS time after reboot is shown in [2], > > We suspect the BIOS 1201->1404 upgrade might cause this issue. > From x570 BIOS changelog, we found that the big difference between > 1201/1404 is the AMD AM4 PI upgrade from AGESA 1.0.0.3ABBA to AM4 combo > PI 1.0.0.4 patch B, The changelog for my BIOS are the same [1]. Unfortunately, I will not able downgrade to BIOS of 0404 ver for checking assumption because changelog description of ver 1404 contains warning "* You will not be able to downgrade your BIOS after updating to this BIOS version" > If possible, please tell us about the BIOS version and your hardware > platform, which can be get from BIOS UI or using "dmidecode" > in Linux env. The version of my BIOS is the latest. It is 1405 for my motherboard. Here is "dmidecode" paste: https://pastebin.com/akBPAvZJ [1] https://www.asus.com/Motherboards/ROG-Strix-X570-I-Gaming/HelpDesk_BIOS/ -- Best Regards, Mike Gavrilov.