Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp61360pxu; Wed, 2 Dec 2020 15:05:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwB6LL5tRZi8aGcY1iNCppL3N9ZgFRuS7DEiFdTHze/3b0Yl/X1LGH6QF6ALryUnrG/vuGv X-Received: by 2002:aa7:dc4b:: with SMTP id g11mr285137edu.379.1606950329478; Wed, 02 Dec 2020 15:05:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606950329; cv=none; d=google.com; s=arc-20160816; b=ae3j6XTKvu7cUt12cImdAsRN4N/H9Oy+ab8RCdhywsNuwCr6zbb1o3Lwul7ZRFS1MJ gBvxGGba3Ouar+eOnc5hjC0JDOM/rQ4ENEb8b660bte3ghywFjBLbUAahcyZXgZmUDYO +r1TmBdT7keSG2GsuZqA81GRyZNbKkVGjsafv0vJEhTRBi9Xn7aJy+oO7SdxkyOkowup UxcBmWi3JtxGlhYeRc0llA+YABi67cCgjVeHR9xkYEGky0AC4FxHjDd10w2VKRtm4egj lA5WTT2GRcXBvAJDuelGpYdGwU0LTFVOOmxMAd6fhfA4CgRUaBQT/N8MiwcFmORqiOqV MVgA== 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=ePhzjfdwG9pWLhP9yjM1Ii8dmnBB9jfsh6D13e1UvSw=; b=GUjtzbkwCT4K3wHp+NQYiSXcQ/LiCSb6tq6qDMtP/k08AfxuD81H/OwvItL8C4Aqhb xAigSKl9A5Wv9V2cHPcfB/BByx1TL2LHybYHwmoCkSRbUV/uPvEJxOvqjIlFtQncYsDP BmXOjRbmk+6sQ3zOyGmpbAma9EfovEyuOZi/VNGyLpMaiFP6pOydVQXvoLAdIL0Qpber pgh5yHmDHpibYmMPam6AgO8B0rzr6QdfB1ygQAjPXNiTHnU1c35wkb1hJod5jzaLR530 GSDjHAm9qm4RvVwPf3bsv8iNb447+GHYNB46WYHRVMcyfnmKcrv3TlnSbyxMjrWAjnY2 +DsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=dY2766SK; 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 gj15si29236ejb.597.2020.12.02.15.05.06; Wed, 02 Dec 2020 15:05:29 -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=@ziepe.ca header.s=google header.b=dY2766SK; 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 S1726903AbgLBXDq (ORCPT + 99 others); Wed, 2 Dec 2020 18:03:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725985AbgLBXDq (ORCPT ); Wed, 2 Dec 2020 18:03:46 -0500 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C84A4C061A04 for ; Wed, 2 Dec 2020 15:03:05 -0800 (PST) Received: by mail-qk1-x743.google.com with SMTP id i199so436447qke.5 for ; Wed, 02 Dec 2020 15:03:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ePhzjfdwG9pWLhP9yjM1Ii8dmnBB9jfsh6D13e1UvSw=; b=dY2766SK5U3b70YHyiO3eGIt04TiP5vo3QE54q8MG8ELXk4zHIJ+MUexrXzMmCp8GG Ql+D5P1prpm+xNFbpVaxnCGsuFalkuAJc3MGVVm/fPRlahOWvGmgnyOHRyKVoRyjc1uf Y8O4mJru/2xWl5bd9+tIdGrZ1kdrD4oVPU1Vo/98U4TscWcfSbSDDplUfrowB1ReuYHf X0HG0izxRA2kRXA7Xztgj9oDM8rK2Tnz93xtgx0n+ROIU6HUeaH4IqtpSvS7L8ylNQlx 7U1pP94VsIoa7Q4E1Ey+wh2Mv5jgimkjtmH7KUNUgadxxl8zNxfD+LdPq+l2fqqFTU6k RfqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ePhzjfdwG9pWLhP9yjM1Ii8dmnBB9jfsh6D13e1UvSw=; b=JXXJMMcHmzMyEKl7I5nPJtF8f3uPmFP2Gewi7m/WYbkGKf5LNCeAlh+dQJRVa1Bubb teXDWGklzNr/9GoEUoatPsRf2YIwZjr2gJ38KJmpF8A1MrJepwZUkOer7gn9bX+/lbdM ULmeCL2UsHkbir2IzSH/61rtvPU0rBQ4OwXTj8Q410bLRdikV3HThFFnKzsiRArMnMm+ O6LMsYLh7NcNpbtzV0p7e/QtW9i5BbHelEALzXOPv9IoTktky7OcBclPPtBfBxgUWAWE BObepE8oel2RapqMSgf5JCrueaxtgBUcrbeXS5J0bobdaZfo8ZoaaIgJ57k3Io/SPkfL NLHQ== X-Gm-Message-State: AOAM531K+eah4mudmA/1b3P5RWNGH7FKYqh3lWgAhz9szU8kvpAmCWDB scDALi49n2qs0iLwHtk5TFwxIQ== X-Received: by 2002:ae9:ed89:: with SMTP id c131mr57633qkg.421.1606950185031; Wed, 02 Dec 2020 15:03:05 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-156-34-48-30.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.48.30]) by smtp.gmail.com with ESMTPSA id o125sm116809qke.56.2020.12.02.15.03.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2020 15:03:04 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1kkb9L-005Eim-A9; Wed, 02 Dec 2020 19:03:03 -0400 Date: Wed, 2 Dec 2020 19:03:03 -0400 From: Jason Gunthorpe To: Thomas Gleixner Cc: Miroslav Lichvar , linux-kernel@vger.kernel.org, John Stultz , Prarit Bhargava Subject: Re: [PATCH] rtc: adapt allowed RTC update error Message-ID: <20201202230303.GO5487@ziepe.ca> References: <20201201143835.2054508-1-mlichvar@redhat.com> <20201201161224.GF5487@ziepe.ca> <20201201171420.GN1900232@localhost> <20201201173540.GH5487@ziepe.ca> <87mtywe2zu.fsf@nanos.tec.linutronix.de> <20201202162723.GJ5487@ziepe.ca> <87a6uwdnfn.fsf@nanos.tec.linutronix.de> <20201202205418.GN5487@ziepe.ca> <874kl3eu8p.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874kl3eu8p.fsf@nanos.tec.linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 02, 2020 at 11:08:38PM +0100, Thomas Gleixner wrote: > > > > arch/x86/kernel/kvmclock.c: x86_platform.set_wallclock = kvm_set_wallclock; > > arch/x86/kernel/x86_init.c: x86_platform.set_wallclock = set_rtc_noop; > > arch/x86/xen/time.c: x86_platform.set_wallclock = xen_set_wallclock; > > arch/x86/xen/time.c: x86_platform.set_wallclock = xen_set_wallclock; > > All returns -ENODEV/EINVAL > > You forgot to stare at the .get_wallclock() functions. That's the more > interesting part, i.e. what's behind read_persistent_clock64(). Small steps! I was only looking at deleting the legacy CONFIG_GENERIC_CMOS_UPDATE from x86 which only controls the update_persistent_clock64() Yes, there is a similar redundancy with rtclib on the read_persistant_clock side, and that does looks much further.. > > arch/x86/kernel/x86_init.c: .set_wallclock = mach_set_rtc_mmss, > > This is already rtclib under drivers/rtc/rtc-mc146818-lib.c > > That's the shared library function for setting the darn thing. Yes, but if a PNP entry is present then rtc-cmos will load and call that function through the rtclib path instead of the update_persistent_clock64() path Jason