Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3731693pxy; Mon, 26 Apr 2021 08:29:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4F925+YNZrWhfUR6RXO+pFBuKf0YD34JXxGgUy/L2QLLhtxtGaEstm/QTJ+N0PmiIiovc X-Received: by 2002:a17:90a:f314:: with SMTP id ca20mr14662858pjb.164.1619450978204; Mon, 26 Apr 2021 08:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619450978; cv=none; d=google.com; s=arc-20160816; b=Nlo8FQRDa9JkiuCWKCieEr+WR9Fdyk/Ivi+gYVQbtRbEaWoibXuH5Y3MEu7+lSpoGg Ei/ajvDrwYYu4bYvfe3cUvDHFOvXhga28IX/VccxQUGcmay1zzqtqRPqeaOExUZqGPz0 N86XTFZpfcoBsnh6DMDMn+s+wi96fMfPzgNOs+oTf0m5b9xH6sxO74cLqT5zgutrPJCr 6EgyRMNt+iVZdB5F2zarAHtpNIJeOX4scoM6AJ4otEERLZa3u42P+O8BlDxPxK5vGG4Q EJnXsrcsUZ/L2ZEXiS1pVNuh/b3Xq0X3HYE8a/iuiCPZW7m8dqqUwUB4niHU+fdqochE VVaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=gugWQa6xRv8Em7uLjQXQhkSCbIDH+ekIYoeqePadw8s=; b=TJ0skIhb4N1xCMKr+NHnzlisKK9WZQfTAypYSogg1KftZ8YWh6kATHrbDLhGNL8yHN O51cZqvrj+VHxdafDAgcfLePGUvg346igKMtyk4irYGvmjwE25/KXdTPuhb/gcNODfc0 X6ozOhNIgf9riBLFj6ual1dIus5/x5HJMkZ5AU466tnqBVxdsEiHOx/OsMOQJo4IIeES 7tKhjhc49ov2VnffQkYHwJOheMWn+GpUASXnmkXiVN7KSIulliUUI2xAciiHPnv7p/qL bdNuAQAIWfVPWjxfTq2zjKFxx+VrCy5uR1G60xStyO/JEPO9IfkIL2q/nMJATE5ReOaW V9FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VyDVOWSd; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p22si13236180plr.213.2021.04.26.08.29.24; Mon, 26 Apr 2021 08:29:38 -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=@linutronix.de header.s=2020 header.b=VyDVOWSd; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233929AbhDZP3W (ORCPT + 99 others); Mon, 26 Apr 2021 11:29:22 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:34852 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233674AbhDZP3U (ORCPT ); Mon, 26 Apr 2021 11:29:20 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1619450918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gugWQa6xRv8Em7uLjQXQhkSCbIDH+ekIYoeqePadw8s=; b=VyDVOWSdRtQ7Aq661DZ1DFIG7xLuI0Qtko0zlA1tvTdn5dgA6MDU5OSOXA6WzD3zdM5jdz SSBIJcAJx7G1z4bqv28ySyTAHz0w74lY5tRD5goRFpMRW9qE0H01OKHg4MGUN2EAk3hIsv QHslT40J6SeAp0wB6UCxgM2qPhBufToMCvUc3DEZ9vKCwYJ2fPGSqRCCqK+xXEWjANdQ5q F0usAjgUhX7UMNV5G7T1dqRymq+v6kziF7jDTPOLw+NBXaXHvIbFYzT6cCZDuHTaIQh3v2 m2cxY44qWMR7G+vv/cAObc/L1mmFBi9izqO4ZnULgoQFqofgMFGdp6ch2EA5FA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1619450918; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gugWQa6xRv8Em7uLjQXQhkSCbIDH+ekIYoeqePadw8s=; b=dCdD9MmU3F5zlLIIk3OWlsVE0CnjBSjm8vKhQ3xm1oImP7EsA5+i2BsEGirf0itNB0qGs8 oLMF0JShu1TqfjDA== To: Feng Tang , "Paul E. McKenney" Cc: linux-kernel@vger.kernel.org, john.stultz@linaro.org, sboyd@kernel.org, corbet@lwn.net, Mark.Rutland@arm.com, maz@kernel.org, kernel-team@fb.com, neeraju@codeaurora.org, ak@linux.intel.com, zhengjun.xing@intel.com, Xing Zhengjun Subject: Re: [PATCH v10 clocksource 6/7] clocksource: Forgive tsc_early pre-calibration drift In-Reply-To: <20210426150127.GB23119@shbuild999.sh.intel.com> References: <20210425224540.GA1312438@paulmck-ThinkPad-P17-Gen-1> <20210425224709.1312655-6-paulmck@kernel.org> <20210426150127.GB23119@shbuild999.sh.intel.com> Date: Mon, 26 Apr 2021 17:28:37 +0200 Message-ID: <87a6plt68q.ffs@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 26 2021 at 23:01, Feng Tang wrote: > On Sun, Apr 25, 2021 at 03:47:07PM -0700, Paul E. McKenney wrote: > We've reported one case that tsc can be wrongly judged as 'unstable' > by 'refined-jiffies' watchdog [1], while reducing the threshold could > make it easier to be triggered. > > It could be reproduced on the a plaform with a 115200 serial console, > and hpet been disabled (several x86 platforms has this), add > 'initcall_debug' cmdline parameter to get more debug message, we can > see: > > [ 1.134197] clocksource: timekeeping watchdog on CPU1: Marking clocksource 'tsc-early' as unstable because the skew is too large: > [ 1.134214] clocksource: 'refined-jiffies' wd_nesc: 500000000 wd_now: ffff8b35 wd_last: ffff8b03 mask: ffffffff > [ 1.134217] clocksource: 'tsc-early' cs_nsec: 507537855 cs_now: 4e63c9d09 cs_last: 4bebd81f5 mask: ffffffffffffffff > [ 1.134220] clocksource: No current clocksource. > [ 1.134222] tsc: Marking TSC unstable due to clocksource watchdog Yes, refined jiffies is the worst case. Though the worst of everything is that any of this exists at all, but you knew that already :) Thanks, tglx