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 4505CEB64D8 for ; Fri, 16 Jun 2023 09:43:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234260AbjFPJnV (ORCPT ); Fri, 16 Jun 2023 05:43:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233027AbjFPJmt (ORCPT ); Fri, 16 Jun 2023 05:42:49 -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 E145535AC for ; Fri, 16 Jun 2023 02:42:23 -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=FjlqcYJGIQpM+LDDKrAWJRVmI0gvOSH4UoJ30kFsvvI=; b=mnf1nibw5F7DTpBYYfvqspdlcD NoZMDOIPaLNMMHFkLEzZ+tpa0f5JAkYX82AK5asqjHiIP6dZtg/A6GsR1A7Lo4wyRY610vZc+pJAu dy/V1eonVbW+gXlc7edYRkquqkHh7uDC3gCtKDyMzlSlRVfHOfqz+7tKAynjTz5YCm28BWJu87jVy tYbPA6/8paqciv9rVL25frQv7/vN8Q70uPbJoTaQY9mlzJmgZHH1YvPRzBlzEmc8V5g/Ge00KaMK3 zD+H3sDMw5c5/sazkQliFhvMJ6GC8qFLNQtMH6T5lWvQr7vlN1eVTn0n+LDmOWcJZ/M2kesMH4Kyj ZGcSmX3g==; 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 1qA5y2-00CsUh-0z; Fri, 16 Jun 2023 09:42:06 +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 97714300188; Fri, 16 Jun 2023 11:42:05 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 700C126A3BE87; Fri, 16 Jun 2023 11:42:05 +0200 (CEST) Date: Fri, 16 Jun 2023 11:42:05 +0200 From: Peter Zijlstra To: "Zhang, Rui" Cc: "linux-kernel@vger.kernel.org" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "Tang, Feng" , "Chen, Tim C" , "hpa@zytor.com" , "tglx@linutronix.de" , "x86@kernel.org" , "mingo@redhat.com" , "paulmck@kernel.org" , "Woodhouse, David" Subject: Re: [Patch v2 2/2] x86/tsc: use logical_packages as a better estimation of socket numbers Message-ID: <20230616094205.GC4253@hirez.programming.kicks-ass.net> References: <20230613052523.1106821-1-feng.tang@intel.com> <20230613052523.1106821-2-feng.tang@intel.com> <20230615092021.GE1683497@hirez.programming.kicks-ass.net> <20230616080231.GZ4253@hirez.programming.kicks-ass.net> <20230616081025.GM38236@hirez.programming.kicks-ass.net> 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 Fri, Jun 16, 2023 at 09:19:18AM +0000, Zhang, Rui wrote: > According to the MADT, there are indeed 40 valid CPUs. And then 80 CPUs > with > > APIC ID : FF > enabled : 0 > Online capable : 0 > > a dumb question, why are these CPUs added into the possible_mask? > I can dig into this later but I just don't have a quick answer at the > moment. I really don't know.. I've not gotten around to reading that part of the x86 code yet.