Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp817628rwi; Mon, 10 Oct 2022 07:35:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6sBf20kLkhQzeWb96/o0LKjGKGtJsQMkNvpMgjQksQamaiCXqjM+x4AnMR7MLfFkyGFT3t X-Received: by 2002:a17:907:968b:b0:78d:c3cb:8b9b with SMTP id hd11-20020a170907968b00b0078dc3cb8b9bmr2472885ejc.252.1665412545331; Mon, 10 Oct 2022 07:35:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665412545; cv=none; d=google.com; s=arc-20160816; b=sm/fIFxV8E2lhPDoqinYaWDxYBadFD0/iT8XyopN0PbWy06Fir/YMhkwEkDK0uqeOp KbNO42mVxFqsMMj17laQdegiz44rOVMkdj5tsUwFniEKzm2MEAkB0/t5rSWIShYwiLyI zlV2PdU0cESy2fqdoJByIk2+qSvFe8FbDFVGkPpVHCXhqSqsVWx96NNBDxNx2vqMvi5Y o7hh+DwYHCOcOk4snaj5Eq6yFf9b5FGCOcNsmO6E3a+TOIqtGRrzYZ605snd2wuysx05 PoCnfEcNweascdXqMY+fOGiHreziuMz+66+LEXAmH/dF/8s4bMPuBF+SmxLXiyO2f9gv 3Tcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OhyTLr8FtBO3sPOUy4XlJqQyCRMeTssYGlWkONfCoME=; b=qDJg9jF5LbUALDv9u96wbRBrwrpD0NSpIIfIimimF470XnIQleUSwuXvZ4QIFp98rv VmnYIwK9kFkWMRoWmUfAAZXXP5aZa22JWUaK2Q7L4LvMOnamgUTmCfaOoZlpPxb93/n5 Qos73EfL+dnGiT4M+07scxTcOVcG94bfWSjSm+mwY9h7+a9KuNAB9XjkCI/7u5DsyNTR e1AT9PiZdWxEPlOriP6KG38LM/boV633odM6PWNpy77zcudvmyxTSq/dfGYvkMfvMfux 3S0qBIOhsnqQzq3cNCsOsxyLpo94YHp85W0DF5Qdcu3M9neJecVQD0ARTe7bpvxWEnG5 aWVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nqo8gpJq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p26-20020a170906a01a00b0078c959aea8bsi9524174ejy.324.2022.10.10.07.35.11; Mon, 10 Oct 2022 07:35:45 -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=@intel.com header.s=Intel header.b=nqo8gpJq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229783AbiJJOXQ (ORCPT + 99 others); Mon, 10 Oct 2022 10:23:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbiJJOXN (ORCPT ); Mon, 10 Oct 2022 10:23:13 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96DE5719A3 for ; Mon, 10 Oct 2022 07:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665411792; x=1696947792; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=MvoKKnOaQzWJzaWake7goHRiYLp5TOmATllrxpn0vjY=; b=nqo8gpJq3Ptpb1tIAwepUU79dXY+FfQyxCkY7RPKP+0w4shjMLWC/GbP +pF4Vk20tuKU4LYvLO52EGI4ogRVO/cO1OgJT+LUGPcs4IeZMlD4KaYDd zqirdh5xoykFgPs05QBFnat2H3NuyzzYoE8fmsin0rCD7rsL31t+lBiLG 1w+jKflqBdMjiMyKhS6XVsnYVaUooycx5hll4JlnI2mTJsjoCYAkDZush IQu7BfH9jmbrMXFO79u7myJdEJF6OK5RrFUFNtpwCRwkP7FPn/h9yipQm 9zkXH1H9DtUFDCrlr3ojygMB4h5yiRAs83RgqHI8bTxXtlmxVqh9Rl1I6 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10496"; a="302974772" X-IronPort-AV: E=Sophos;i="5.95,173,1661842800"; d="scan'208";a="302974772" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2022 07:23:11 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10496"; a="688805855" X-IronPort-AV: E=Sophos;i="5.95,173,1661842800"; d="scan'208";a="688805855" Received: from smajuta-mobl.amr.corp.intel.com (HELO [10.209.115.62]) ([10.209.115.62]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2022 07:23:11 -0700 Message-ID: Date: Mon, 10 Oct 2022 07:23:10 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] x86/tsc: Extend the watchdog check exemption to 4S/8S machine Content-Language: en-US To: Feng Tang , Peter Zijlstra Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, rui.zhang@intel.com, tim.c.chen@intel.com, Xiongfeng Wang , Yu Liao References: <20221009051209.393377-1-feng.tang@intel.com> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 10/9/22 18:23, Feng Tang wrote: >>> diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c >>> index cafacb2e58cc..b4ea79cb1d1a 100644 >>> --- a/arch/x86/kernel/tsc.c >>> +++ b/arch/x86/kernel/tsc.c >>> @@ -1217,7 +1217,7 @@ static void __init check_system_tsc_reliable(void) >>> if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC) && >>> boot_cpu_has(X86_FEATURE_NONSTOP_TSC) && >>> boot_cpu_has(X86_FEATURE_TSC_ADJUST) && >>> - nr_online_nodes <= 2) >>> + nr_online_nodes <= 8) >> So you're saying all 8 socket systems since Broadwell (?) are TSC >> sync'ed ? > No, I didn't mean that. I haven't got chance to any 8 sockets > machine, and I got a report last month that on one 8S machine, > the TSC was judged 'unstable' by HPET as watchdog. That's not a great check. Think about numa=fake=4U, for instance. Or a single-socket system with persistent memory and high bandwidth memory. Basically 'nr_online_nodes' is a software construct. It's going to be really hard to infer anything from it about what the _hardware_ is.