Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp768192pxy; Wed, 28 Apr 2021 13:53:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7QHeXQU4021hleqfn23IHmQi3Zl6yxzdScYcu7r4uqulNAUVrv0ZrN5b0axCz7UGWoWNv X-Received: by 2002:aa7:d413:: with SMTP id z19mr14130063edq.37.1619643235601; Wed, 28 Apr 2021 13:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619643235; cv=none; d=google.com; s=arc-20160816; b=shSaz4IP/707NA8VUqga60bO7FahjJXo6+xBupY60IKdQ9739bhGmiK3/dpTWDeRr3 odxZyP9/PVQAE1Rhd/QAuhPAN8rF9b2NBHGct8HUkVG8gZuDhS2HIKzB6y/bu1CFfbU2 UD6LN0ud2Gdd7pLzTtmssAizMFQf2bCvbQgu8w46qTKnFSbafWwRS3ilHnY9QaBJLA2e FlfjXG2twquQK06mCwUzotF5e5sQgmTDpIEWcI+EIwhK0CyW01wbqqquUYuiJ86LnrBN irShfimE59ucbvQcaOfDa+koJoWgTEPORawpvp0DUVnr1nBgE+ZfZS5DxUxzC0/tXKXl aMQw== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=zg0fx+pe01hptCPEF9Gcb8wUP4mkUjkUOEDaM41GNI0=; b=v1Esl1+Mz4zLg2X+ONmmRrfDLzCPgrnbIluhyIvY3jSRuRnC9+1SnMREcjGAh2SyZv M02mWWTmabW4Mc51k3BbU4hA5GWQsgp6Hcdw4J5v5aG/2udImkyJz0Fnh/jiIfRl6I0y VFEUTjCs0JXr0tsn36EGLTZ8WLWKyiD+9TTxLwKPZ/9qYQ2Ea/Cr0C6I+/0M1PYh1J2k Z+PCq75X5bHiWil392I77hzcv3vwotaMgG1cBrPtUfdRK4LAspKQp2Pg3Yk88wAOP9vV nGUM4whb0Y/OLkoFloXsW4RntFfy0GKphY5Jq6NmJSj3c7OWHbgXAHtQkYUUl+C6WLuU GsQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NJDTAfJL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si838003edi.195.2021.04.28.13.53.32; Wed, 28 Apr 2021 13:53:55 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=NJDTAfJL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243569AbhD1Sc2 (ORCPT + 99 others); Wed, 28 Apr 2021 14:32:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:45048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232390AbhD1Sc1 (ORCPT ); Wed, 28 Apr 2021 14:32:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 76E5361418; Wed, 28 Apr 2021 18:31:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619634702; bh=0Wm21LceUjTljj/ENED+DzPxqQXXE08eG6FFpKDL4aI=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=NJDTAfJLcQm4ytPxoDzdA4wNnmdDPw0hrGI8cD3LFBbdwTtnR/MEbLyK+0g1CCsEF SFFykNziKVSvScfSVnejE2l/ZKkQDGw22K6CVtug3DXoV6BWqeZPNq1ZmYMOhpTW+G Hp/AXK/3zoWEtH3oQ23WfrRaViB6YGxaKuXN6Ff6tPxlN1tiUah9pJNk5nIA6R4DwR khtTrbfG9/U0igm/JWvpPDDXxOqhHdKeofHcZMY7gjlC8GF78A2y26rHJFliOa7OCB oBkzF+KhJ/QuPGO+5ttpbBsZeUxGCm409ny6qd9ku8GR94klbntgU1EOVwSkxkSnwx OWIMw+kHC9csw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id EFBDD5C00FE; Wed, 28 Apr 2021 11:31:41 -0700 (PDT) Date: Wed, 28 Apr 2021 11:31:41 -0700 From: "Paul E. McKenney" To: Thomas Gleixner Cc: Feng Tang , kernel test robot , 0day robot , John Stultz , Stephen Boyd , Jonathan Corbet , Mark Rutland , Marc Zyngier , Andi Kleen , Xing Zhengjun , LKML , lkp@lists.01.org, kernel-team@fb.com, neeraju@codeaurora.org, zhengjun.xing@intel.com Subject: Re: [clocksource] 8c30ace35d: WARNING:at_kernel/time/clocksource.c:#clocksource_watchdog Message-ID: <20210428183141.GS975577@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20210427175027.GA945820@paulmck-ThinkPad-P17-Gen-1> <87y2d3mo2q.ffs@nanos.tec.linutronix.de> <20210428014819.GA965980@paulmck-ThinkPad-P17-Gen-1> <87czuen2au.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87czuen2au.ffs@nanos.tec.linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 28, 2021 at 12:14:49PM +0200, Thomas Gleixner wrote: > On Tue, Apr 27 2021 at 18:48, Paul E. McKenney wrote: > > On Tue, Apr 27, 2021 at 11:09:49PM +0200, Thomas Gleixner wrote: > >> Paul, > >> > >> On Tue, Apr 27 2021 at 10:50, Paul E. McKenney wrote: > >> > On Tue, Apr 27, 2021 at 06:37:46AM -0700, Paul E. McKenney wrote: > >> >> I suppose that I give it (say) 120 seconds instead of the current 60, > >> >> which might be the right thing to do, but it does feel like papering > >> >> over a very real initramfs problem. Alternatively, I could provide a > >> >> boot parameter allowing those with slow systems to adjust as needed. > >> > > >> > OK, it turns out that there are systems for which boot times in excess > >> > of one minute are expected behavior. They are a bit rare, though. > >> > So what I will do is keep the 60-second default, add a boot parameter, > >> > and also add a comment by the warning pointing out the boot parameter. > >> > >> Oh, no. This starts to become yet another duct tape horror show. > >> > >> I'm not at all against a more robust and resilent watchdog mechanism, > >> but having a dozen knobs to tune and heuristics which are doomed to fail > >> is not a solution at all. > > > > One problem is that I did the .max_drift patch backwards. I tightened > > the skew requirements on all clocks except those specially marked, and > > I should have done the reverse. With that change, all of the clocks > > except for clocksource_tsc would work (or as the case might be, fail to > > work) in exactly the same way that they do today, but still rejecting > > false-positive skew events due to NMIs, SMIs, vCPU preemption, and so on. > > > > Then patch v10 7/7 can go away completely, and patch 6/7 becomes much > > smaller (and gets renamed), for example, as shown below. > > > > Does that help? > > No. Because the problem is on both ends. We have TSC early which has > inaccurate frequency and we have watchdogs which are inaccurate, > i.e. refined jiffies. > > So the threshold has to take both into account. Got it, and will fix. Thanx, Paul