Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4038803rwd; Tue, 23 May 2023 02:05:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5GRfNLs2x+1JcPNXDapwVa2brD26uarA8EOGUCEvDnBAOuoT8rep4MAHuAk625qYuxzKvk X-Received: by 2002:a17:902:da92:b0:1ac:94b3:3ab4 with SMTP id j18-20020a170902da9200b001ac94b33ab4mr18561747plx.27.1684832747650; Tue, 23 May 2023 02:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684832747; cv=none; d=google.com; s=arc-20160816; b=bauBpz1LHRfE1dazBWmjyeZiHsdVnBT12tFSVNCGQHTst62BSWEPuzF8X4+O/KnMIH MXYi2HctzczB/2DS5EU4n86uKwrrtaZ2NXCzhJ/nqT7+38iRk9u+xFe4BT9CNRNLWMkv 5Q9vO/6Rk0UihuDF4aqg83kwSXX/quS6ZWOtkLYGDk5oyV5nfePI+Ov74NU0f+tdlMH9 x6RQeTNSPmbqCOtQZo/SPlnwKJG0mi3IUAdg+ivH27LdVvRjPdTyriy8n62PUNVOoog0 mjG47DlOUx+KL7pNJufqc/qHDiwfisZTszjI+Me1IE0a8Xa/te51z6moh1sAX0EfG2ER nK2Q== 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=+hAb4kRapelzMoxcnHi4waxsaptMAYCcKXjFa6xVdds=; b=Ssnhu0mPhmEuOrUk+pQ/gfTU9iiKire9Bb5wxNKdlby/e0Xm+0dJGw54SICIaJaMfX o9evMbDrY0e5Gm0erp4AxZPZZu/Fv7o0aBoe2Vm0h2aRvZFgMw+zz5E4WnTYadyPE8RB f9BE1Vyhh5B5guF1feASF5i/foYiWFDNeIoDtBxmpZeDY8A7F9gvdnLFPmvCQu0qtfbH b2nknDlzRc+bG2yrv25Dr/PdhZySj56+K/6dpz8QMwk1Lo0t01Y5nyeGkZHjOZ4nNny2 pPBJkOEvp3vFT1gw4BSIufZ0YZK+QNGVnpJjmVVRogvGPactl2pFabp5FbJEK9gKIkji VGgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=g5OKGu4D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o17-20020a170902779100b001a64b603189si414283pll.100.2023.05.23.02.05.35; Tue, 23 May 2023 02:05:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=g5OKGu4D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235625AbjEWInE (ORCPT + 99 others); Tue, 23 May 2023 04:43:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232666AbjEWInD (ORCPT ); Tue, 23 May 2023 04:43:03 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2ABC95 for ; Tue, 23 May 2023 01:43:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=+hAb4kRapelzMoxcnHi4waxsaptMAYCcKXjFa6xVdds=; b=g5OKGu4DDKQ4W066O2pda+yDrD IViYkKoDGTXgoDCK3zsByERCBTzJjXHuYlgDLnDMvGEhhuTdX66GMHpYZamYu9KpuhZH+Ya0wLSFh okLUgTWGG1wXG2rearRc0nPhI7/5+DxS1q7AV2S9QQgG8JhSb7qtbktYu955L2HxztXpUGeQXHQ6o pet+S173rm9Gdur5PIeSdb3DsfeO76JId2lI0rJCNGL9SVNgIfmZOTqNG7psv9VXqCbCMEO7bnJg/ Jv2tEHVr8ZoN37WSF197MCdTN8TGznzqmUCcvb9TKGOHl3J7TG4TpTghSVioe8chchKJ5A8DgaXfQ Out+LR+Q==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q1N6z-003QuN-1y; Tue, 23 May 2023 08:11:17 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id D20E3300338; Tue, 23 May 2023 10:11:15 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AB9E82012158D; Tue, 23 May 2023 10:11:15 +0200 (CEST) Date: Tue, 23 May 2023 10:11:15 +0200 From: Peter Zijlstra To: Feng Tang Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H . Peter Anvin" , paulmck@kernel.org, rui.zhang@intel.com, x86@kernel.org, linux-kernel@vger.kernel.org, bin.gao@intel.com Subject: Re: [PATCH RFC] x86/tsc: Make recalibration default on for TSC_KNOWN_FREQ cases Message-ID: <20230523081115.GG4253@hirez.programming.kicks-ass.net> References: <20230522033018.1276836-1-feng.tang@intel.com> <87h6s4ye9b.ffs@tglx> <87zg5wwppa.ffs@tglx> <87pm6swi7z.ffs@tglx> <20230522161158.GA3330346@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 23, 2023 at 09:18:23AM +0800, Feng Tang wrote: > On Mon, May 22, 2023 at 06:11:58PM +0200, Peter Zijlstra wrote: > > On Mon, May 22, 2023 at 11:20:15PM +0800, Feng Tang wrote: > > > > > And I don't understand the commit log: "On Intel GOLDMONT Atom SoC > > > TSC is the only reliable clocksource. We mark TSC reliable to avoid > > > watchdog on it." > > > > > > Clearly the Denventon I found today has both HPET and ACPI_PM timer: > > > > > > [root@dnv0 ~]# grep . /sys/devices/system/clocksource/clocksource0/* > > > /sys/devices/system/clocksource/clocksource0/available_clocksource:tsc hpet acpi_pm > > > /sys/devices/system/clocksource/clocksource0/current_clocksource:tsc > > > > > > The lscpu info is: > > > > > > Architecture: x86_64 > > > CPU op-mode(s): 32-bit, 64-bit > > > Address sizes: 39 bits physical, 48 bits virtual > > > Byte Order: Little Endian > > > CPU(s): 12 > > > On-line CPU(s) list: 0-11 > > > Vendor ID: GenuineIntel > > > BIOS Vendor ID: Intel(R) Corporation > > > Model name: Intel(R) Atom(TM) CPU C3850 @ 2.10GHz > > > BIOS Model name: Intel(R) Atom(TM) CPU C3850 @ 2.10GHz CPU @ 2.1GHz > > > BIOS CPU family: 43 > > > CPU family: 6 > > > Model: 95 > > > Thread(s) per core: 1 > > > Core(s) per socket: 12 > > > Socket(s): 1 > > > Stepping: 1 > > > > > > Maybe this cpu model (0x5F) has been used by some type of platforms > > > which has met the false alarm watchdog issue. > > > > It has them; but they are not *reliable*. > > Yes, that's possible. I tried to CC the author Bin in case he can > provide more background or information for his statement, but his > email address is unreachable now. IIRC HPET stops in C10 or something stupid like that, I forgot what the problem with ACPI_PM is.