From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4240C433F5 for ; Tue, 11 Oct 2022 14:02:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229660AbiJKOCX (ORCPT ); Tue, 11 Oct 2022 10:02:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbiJKOCU (ORCPT ); Tue, 11 Oct 2022 10:02:20 -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 65AFB6FA14 for ; Tue, 11 Oct 2022 07:02:19 -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=qumU7debCS+DOddWrWVWavmH1w79UYhLhWyOjNv83+g=; b=jf/2rqKVoNpyd1A4Fem/70AwyL QBNF51RhZF93mzfHpCI6zCqNsWKeIV895ouyjGec+UXbujXWe2nGFDqhXwdkKoPWaN9kRnuf0dCuq 5zJwK+6rvtgyn/IePaj40XLMqcmvwIkyw7QucDNLPnYJLzVE070AGlQGtT7fXe99gQmWLtIk4BAY3 h0IOMIgU0fleq2tFwdKxyqPxQMJLF7fOsMbjppjJn0nikcf1GosBLMeHv+WV8EDhFtc/yYPDz5MVc Gyi3I4P2CsR2WKz1N//bFx/Ep8gJvJB4GXoQbiH6UmljvwoyVgA9php+S2tHGPvlmDKcO/QWgWDZT KTuncp7Q==; 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.94.2 #2 (Red Hat Linux)) id 1oiFpN-002aTY-GS; Tue, 11 Oct 2022 14:01:49 +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 9226F300422; Tue, 11 Oct 2022 16:01:46 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 7AA3E2997FB9B; Tue, 11 Oct 2022 16:01:46 +0200 (CEST) Date: Tue, 11 Oct 2022 16:01:46 +0200 From: Peter Zijlstra To: Zhang Rui Cc: Dave Hansen , Feng Tang , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, tim.c.chen@intel.com, Xiongfeng Wang , Yu Liao Subject: Re: [PATCH] x86/tsc: Extend the watchdog check exemption to 4S/8S machine Message-ID: References: <20221009051209.393377-1-feng.tang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 11, 2022 at 09:33:26PM +0800, Zhang Rui wrote: > topology_max_packages() or variable logical_packages can tell the > maximum packages. > But this check_system_tsc_reliable() is done in early boot phase where > we have boot cpu only. And the cpu topology is not built up at this > stage. Is there a problem with disabling the TSC watchdog later in boot -- after SMP bringup for example?