Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5188579rwi; Mon, 17 Oct 2022 17:10:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6lZIjfsWftEWY7mucC/8ANONTH6OUaIV0InsWxu3aJdzf4gbtidKTak4qqC/XXn5aRpX10 X-Received: by 2002:a17:907:980e:b0:78d:b6d5:661e with SMTP id ji14-20020a170907980e00b0078db6d5661emr229524ejc.46.1666051806436; Mon, 17 Oct 2022 17:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666051806; cv=none; d=google.com; s=arc-20160816; b=lwtaX+wRgThAOzvHD4Bk24qSkQKnH6wUvmW65bSsUPM97KMOV8PN4fgq5x2BDg6Jhf ZuKK/MNtJj3HgfWKkrIzOCQLq20Lw5j8nQUKoquGFjs5DE5I4hxJ6KAYN2j+/m3MB5CX CFpMqEF1WyLcpbvHOv6rSCW34T9cmqtHlIFGlZ2kFQWGpn4NpZBkwUk9WJlUGYWl0Yau vZXNu/p/wHeTC21Qpx8Bd8D6XvsEUYSf5kHHVMUHy6B7VKfbbuNEuhBPOjAkU4qpFmjV jC3z2cU1dMk0afbT5aaKJBhkCbKOr78VfIRmz7cMMGMnGQL4fXslDW5FpxxS40LII+iQ GFdQ== 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=hPnnIvHFiSzCCeh2cHOaVYnzjrHlhMFoSJeup1wP5bk=; b=k5NMUk0+tIIVi1FVciFReX3G89EuSyEnlHJInna8T+eOaU3GwZ/2y36TMiWe0AcQKM kzP1jynlqODlB2VvbiWr3A+gMV+Oi/262OX/4/+gWFb8oB04x8QwEXv3XsOPRQpzIJHA Md1IQxySZjD0pn9da1SWN5w3BF9U+rHlWtDtIku+IVcsfESvT7y2Ouwi0AwB/b8/S22F Ryd+oPnBoKIVPpXLnn2W07OPFIR4eA6FKPpAvRpczt3JMkwC+LJJiCmg6WEvgh3HIYot YTQDYcIvrbfN68bYmu8FGcnieWv7fxgrMTO9CBpqphIutnnsseOa7fB0/losm+BHAh4X eCGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=L4SDBSlH; 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 hc11-20020a170907168b00b007269ef1872esi11980986ejc.897.2022.10.17.17.09.41; Mon, 17 Oct 2022 17:10:06 -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=L4SDBSlH; 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 S229833AbiJQXPj (ORCPT + 99 others); Mon, 17 Oct 2022 19:15:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbiJQXPf (ORCPT ); Mon, 17 Oct 2022 19:15:35 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 009A172942 for ; Mon, 17 Oct 2022 16:15:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666048534; x=1697584534; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=l4Ei4+lWKUNeU2n0eo9QpW8UqcbZEy0N36LAqt2lVnI=; b=L4SDBSlHm4fPJqE1Njy0YQcuOdG0lFX23bV35Ya/wb0JhnCzdnQ5T8Py S5FwS5opRZGdFLnDTgJwFSXJn/TROveVr/WfiZBlHUITpJkGoeQfkLlgk fa7xfMgV+bihPQoAppdPlm2hzKOHId1KH7HL+fyGayrA7PxrrjBDkdKgF zNGUm+xDG4CaVzM2R3Ri3G5bg9P/CY4KT8rB6K+l+hTFWt3w35j0oV7p5 AXXyP//jPyMYiRjNbWM5atu7dim0cE9U65H6Upd5PnObDcksrqHXdCRpN dAm7LXw1POS5bQ3DhcxDLZF0L/nclmWAhHG4+5dVqNjxUy1xuha0s6rtU w==; X-IronPort-AV: E=McAfee;i="6500,9779,10503"; a="303556988" X-IronPort-AV: E=Sophos;i="5.95,192,1661842800"; d="scan'208";a="303556988" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2022 16:15:34 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10503"; a="691552470" X-IronPort-AV: E=Sophos;i="5.95,192,1661842800"; d="scan'208";a="691552470" Received: from mdsouza-mobl1.gar.corp.intel.com (HELO [10.252.51.216]) ([10.252.51.216]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2022 16:15:29 -0700 Message-ID: Date: Mon, 17 Oct 2022 16:15:24 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [RFC PATCH] x86/tsc: use topology_max_packages() in tsc watchdog check Content-Language: en-US To: Feng Tang , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Peter Zijlstra , x86@kernel.org, linux-kernel@vger.kernel.org Cc: rui.zhang@intel.com, tim.c.chen@intel.com, liaoyu15@huawei.com References: <20221017132942.1646934-1-feng.tang@intel.com> From: Dave Hansen In-Reply-To: <20221017132942.1646934-1-feng.tang@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.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_HI,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/17/22 06:29, Feng Tang wrote: > + if (boot_cpu_has(X86_FEATURE_CONSTANT_TSC) && > + boot_cpu_has(X86_FEATURE_NONSTOP_TSC) && > + boot_cpu_has(X86_FEATURE_TSC_ADJUST) && > + topology_max_packages() <= 2) > + clocksource_tsc.flags &= ~CLOCK_SOURCE_MUST_VERIFY; I couldn't help but notice the comment in here: > void __init calculate_max_logical_packages(void) > { > int ncpus; > > /* > * Today neither Intel nor AMD support heterogeneous systems so > * extrapolate the boot cpu's data to all packages. > */ > ncpus = cpu_data(0).booted_cores * topology_max_smt_threads(); > __max_logical_packages = DIV_ROUND_UP(total_cpus, ncpus); > pr_info("Max logical packages: %u\n", __max_logical_packages); > } Could you double check for me that the Alder Lake combination Core/Atom CPUs don't count as "heterogeneous systems" in this case?