Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2193774ybl; Thu, 15 Aug 2019 08:01:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxl5TTibfeZcqAr/WHBVixKj7O7ODRKXVbuTpXJv4WmXlng0Vd9mVkrlsP+6hEsWDc8EPU/ X-Received: by 2002:a17:902:ca:: with SMTP id a68mr4621797pla.204.1565881261042; Thu, 15 Aug 2019 08:01:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565881261; cv=none; d=google.com; s=arc-20160816; b=UlHxlIrOn9hCrMC94LG33QHQkJb/OuXeAx/R14fVwpBzqYPsAAW00cAUO97Fhm3Wp/ Dr8BX2Jorp3BQnmb+WdI1orfLtD5+kBMniEusP31m6NqkCKtaRj8h00oYE4d017LqSNP 4dFVfCORVY/Xza0mw8EJJTEX5db11CvmSSUhkWrCAA9kk0lOzHM7Bh6z3Ut+8LucYAIl qQEr8jryRmaxV/z6ZeMgetHRj6Xe84zbVGzQq/fI+15nDtsB6OO/Cxv9TSRbU8Bg1Soq 25/Syjh/kT9h/HJQCYlOmg5yIEWdx1sLh4/Z6zjxAHQUPFyqLqFztp71qVG9uUDdrK/h 9fgQ== 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; bh=zjZjZbcIgFSCeXCzJ3fYgRDZYWhQcWjEsXASi7XjuhE=; b=VIeyltOd6CxcjcPF6MxaZUi+HSE6S04Qoqy2BR+fb75P6SQ5O70/1d4ZmiLCOCYLMR vPuOubX3NrfZ8HQylDcFYoU+230onQdf799yr3gwujCJ7ZNsiE2fC6PC5uDut6ncOAjB zuicz3tMCQWWBTbuE9BifQrQOgIQE0g8W+y8jp5jcre39lBnEWrQUDjjohlbFFDf+YTi br0MTmmuD/WgGfYad8RRKxhsWEgKMywg60GTYeTFtYEfBBDN1UCS60taWZalfH26gv0P 2C4coyLaHTM2r/qfpEdENsgep1LKKRl4VV9/G5dpwxNarg79vXaU9BbRd8y95ovPMxHZ 8VTQ== 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 g24si2228377pfi.119.2019.08.15.08.00.44; Thu, 15 Aug 2019 08:01:01 -0700 (PDT) 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 S1732261AbfHONXC (ORCPT + 99 others); Thu, 15 Aug 2019 09:23:02 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:42890 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732232AbfHONXC (ORCPT ); Thu, 15 Aug 2019 09:23:02 -0400 Received: by mail-qk1-f196.google.com with SMTP id 201so1756277qkm.9 for ; Thu, 15 Aug 2019 06:23:01 -0700 (PDT) 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=zjZjZbcIgFSCeXCzJ3fYgRDZYWhQcWjEsXASi7XjuhE=; b=Ujha+GTSN9wSbkeXUZcytL8asRv/37j3UhG2TNmmmmBiWXV6TAIz6yfZOpAx1uycWn H2HDiVJe+yPYBjuwgMUoNJhWVJdRPhVpJXGSjQN8kYAII6kRisLHOcAEDALU2Ktq4ox2 a+6q/E/vUvlg6WUXMlec6IYz4MmCNqhPVbOmii+OM2KnRft5JsNz31GqKCfbCBUMfdvx qCrpCfWlREj/ftctWvs7LL8vdAIOMnAEm5c6BUOeAgiiSr3EJ5WaSADvlCQl5xHpgVbr bVX+6p/cUYnpjM8g385rxxNUdh6+nXMiZ6FGK5qllMAjzW30LB7seDC5sJuY++as08Wt najw== X-Gm-Message-State: APjAAAX+LW1UuuDxpe+YE2XTli8DXytz96Zz2e/NHbflnZPlUNJ/E1Y4 7Q5XJjB2KJI+o9RCH6wjubWF7sXK48Zf1GkqN+I= X-Received: by 2002:a37:4ac3:: with SMTP id x186mr3920539qka.138.1565875381281; Thu, 15 Aug 2019 06:23:01 -0700 (PDT) MIME-Version: 1.0 References: <20190814000622.GB20365@mit.edu> <342565604d704b6ebaf2e9ec28d3e109@AcuMS.aculab.com> <0089C4CC-DD85-48A1-869B-A9D71852BEC7@zytor.com> In-Reply-To: <0089C4CC-DD85-48A1-869B-A9D71852BEC7@zytor.com> From: Arnd Bergmann Date: Thu, 15 Aug 2019 15:22:45 +0200 Message-ID: Subject: Re: New kernel interface for sys_tz and timewarp? To: "H. Peter Anvin" Cc: David Laight , "Theodore Y. Ts'o" , Linus Torvalds , Linux Kernel Mailing List , Thomas Gleixner , John Stultz , Alexandre Belloni , Stephen Boyd , Florian Weimer , Palmer Dabbelt , Alistair Francis , GNU C Library , Karel Zak , Lennart Poettering , OGAWA Hirofumi 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 Wed, Aug 14, 2019 at 6:48 PM wrote: > > I believe Windows 10 changed the default RTC to UTC, although perhaps > only if running under UEFI. I looked at the efi rtc driver now, and found two things: - The EFI get_time() call passes down timezone information, so we know what UTC is, and can just ignore the timezone. This is good. - The RTC_DRV_EFI depends on !X86 as of commit 7efe665903d0 ("rtc: Disable EFI rtc for x86"). This unfortunately means we always fall back to either the rtc-cmos driver or the x86 specific read_persistent_clock64() implementation even when the EFI RTC is reliable. If 64-bit Windows relies on a working EFI RTC implementation, we could decide to leave the driver enabled on 64-bit and only disable it for 32-bit EFI. That way, future distros would no longer have to worry about the localtime hack, at least the ones that have dropped support for 32-bit x86 kernels. Arnd