Received: by 2002:a89:28c:0:b0:1ef:fe5e:92fe with SMTP id j12csp18259lqh; Sun, 17 Mar 2024 19:04:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVsAYNg5+/DbMicjDn3a2QGMCmWukvx6LeoNzNNm5ix+T6I50gfIky0bl5MWE71CKjGfCf/KUqozEIp+WFb+rh+AeUBPT8VUVtD0GnxUg== X-Google-Smtp-Source: AGHT+IE5FAI0M4lp3YYAx8vPzddCPB4BWALVSLagBcSFHEz/fLUT4B8DvTENqJpDUe3SybPdjoJv X-Received: by 2002:a05:6870:164d:b0:221:be6c:3434 with SMTP id c13-20020a056870164d00b00221be6c3434mr12701661oae.10.1710727485318; Sun, 17 Mar 2024 19:04:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710727485; cv=pass; d=google.com; s=arc-20160816; b=QV4h6H96b95d+naTVgTUl9P1uPIv6lyxoNQdzp1om3nvqX9JilQA1RpUcBP7ySl5t5 vqH7Nd/TZc+9Lf3yGXdvnDyNISEc49nmhwI4hCtTWAfKFLTKTrtHQl9hGBpplORfLLPq LyxLkKQ+h9pL51cbu+EQ4dnWXRLrafO68TVEu+n1ik1Ur5oYR3w7Qm1rD2ogHYh4FYoe 9avLjnwmYIicug/UQrNzCbSkPsaKNde8nRoRTanroOijJoEgUHcTK1PmHKgLYzBygpm8 QO3Th2NZtwkYybVdfPuK+6ld75sNFnwqiFHlWV0r1mcOAIpC40N9cqlkjDIle4X2xQh/ 7pdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=KMhE6hRfM33NYruxr6jXiXcV+i8SnK1dqM7sqogpB8c=; fh=8t54mPNwb3E1imaR9Dm9dF4iZ8uAKhPr7HF4kf1s62Q=; b=fh1nGU7oGgpOV+r2DLjP7A+UYYAOeR+BCWrJA2ldp9XI4bw+7ff5OccRnQpNZIcjwS e6gu3eRF3SI2JWYTWT1U+hZqnqFyCcoKMDBvVxCh0aMZPcbMDYx5MzpjZ7g9r3hrqRfc jKBPxvGdHGehBs+U0UAavYBY4FL6AkR1EcUyw5t4mJy15sgULFhvA97sc6vs3lu/iokh 6KfpNS0jL0RKJmDeMduVOHqsEab3dEIiiUa+iwQ0US5CpWZalY9rDh9BTWa01+ZwD4jt 5hraJHroNRIFbNGusdS20CDwcZD3v4Wd8/8bowbM+U/ITTEJX/jEZCH/QQhezkca/J4g D8vA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=R8mNoV9v; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-105648-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105648-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fa28-20020a056a002d1c00b006e6af984151si8459562pfb.108.2024.03.17.19.04.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 19:04:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105648-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=R8mNoV9v; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-105648-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105648-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5F179284159 for ; Mon, 18 Mar 2024 02:04:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD52B1EB21; Mon, 18 Mar 2024 02:04:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="R8mNoV9v" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5A9291DFC4 for ; Mon, 18 Mar 2024 02:04:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710727450; cv=none; b=e8IAXtIy4WYTZxAEOq+EsHLecBgj1d/YXO9IdVv1ecZZ3+X+gMRyXIaefMDgtKDxBpSF3pl0zgnd+fSfpS8YSinzlCe4sNp+6t3FzJLDFTXkqlx8zq08MpdJc5HfsljNk+Zx2IeQSfn0YLQz2H2Hyzz7aYzMi/ZPFpuZSShkxfc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710727450; c=relaxed/simple; bh=KMhE6hRfM33NYruxr6jXiXcV+i8SnK1dqM7sqogpB8c=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uzLW1NGH5Hj7QXO591VTzcGsyCO1EbptmQOiB8EsAZKm9MWcJ/WrsH1JZvssNyQgNMrAfvHHyNpM8wF04FUml0DGVVoS6oniWyz94N2HbQHR8SiyarO1XXSKgKVVDlvf72OJbz1pjmswYCS0tV4k/QPv123B+2BbaGdwanSL0xM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=R8mNoV9v; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710727447; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KMhE6hRfM33NYruxr6jXiXcV+i8SnK1dqM7sqogpB8c=; b=R8mNoV9vCsCwF05gL3GyQNm5uhAWM6lq6je/f3wXKtc+ufZYErBtMGlOJPfeyIhA3XId6H LkF+/rGgkVFJps6Tr+OOknU6orr6LGdTqpxhHedkNA1XygRz4HLC1kjgI+TPsXcUCGIbkO Dhf0dfauT6eLw1dfzNtiG1Vd7mGbOZ0= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-592-VUS2bJ61OaqivXocvzhSQQ-1; Sun, 17 Mar 2024 22:04:00 -0400 X-MC-Unique: VUS2bJ61OaqivXocvzhSQQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DEE80858DB6; Mon, 18 Mar 2024 02:03:59 +0000 (UTC) Received: from [10.22.8.101] (unknown [10.22.8.101]) by smtp.corp.redhat.com (Postfix) with ESMTP id E4ED73C20; Mon, 18 Mar 2024 02:03:58 +0000 (UTC) Message-ID: Date: Sun, 17 Mar 2024 22:03:38 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] x86/tsc: Use topology_max_packages() to get package number Content-Language: en-US To: Feng Tang , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H . Peter Anvin" , Peter Zijlstra , x86@kernel.org, paulmck@kernel.org, rui.zhang@intel.com, linux-kernel@vger.kernel.org Cc: Dave Hansen References: <20240315112606.2248284-1-feng.tang@intel.com> From: Waiman Long In-Reply-To: <20240315112606.2248284-1-feng.tang@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 On 3/15/24 07:26, Feng Tang wrote: > Commit b50db7095fe0 ("x86/tsc: Disable clocksource watchdog for TSC > on qualified platorms") was introduced to solve problem that > sometimes TSC clocksource is wrongly judged as unstable by watchdog > like 'jiffies', HPET, etc. > > In it, the hardware package number is a key factor for judging whether > to disable the watchdog for TSC, and 'nr_online_nodes' was chosen as > an estimation due to it is needed in early boot phase before > registering 'tsc-early' clocksource, where all none-boot CPUs are not "none-boot"? You mean "non-boot". Right? Other than that, the patch looks reasonable to me. Thanks, Longman