Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2359175rwd; Fri, 16 Jun 2023 02:53:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4hycwJunalsL/Y8fgmIBcAKfRe5aMZXVhxj+FIYrm9N59AOy2CIkwFCUFUwR+0R93KEvHs X-Received: by 2002:a05:6a20:7289:b0:10e:dc7d:cbbe with SMTP id o9-20020a056a20728900b0010edc7dcbbemr2172045pzk.25.1686909197066; Fri, 16 Jun 2023 02:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686909197; cv=none; d=google.com; s=arc-20160816; b=GpBv34uPkv5kNrxKcqntlfxePjzXBNqLnXdKm3RyTsewddVw30psw8agd6dKbfq0sc weQ5qO7hjjSf71KYhNk/azouo+aveNkBDc3/dTXq4Bn1zMWEPPikvfqYxKlkqn0ZHs5s 94uowlLs2F5DdqCT5svspIrWWqVva4wGNh2cp6PBzME3T3jX8gDxpGC4g/z2TSpX1YV4 suKrnvy4QzylMS74yLLkELnN9sP/4tPvH85/iP1OUHnWbqVecT49v6cK786GWfPRExXg GkyOaQ0IWCTwj/TXeOo+Sw08wR7vX1o17VHi73/Vvhqccxa7J0E0LNAtU7UZvNWKdMJF DZmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FjlqcYJGIQpM+LDDKrAWJRVmI0gvOSH4UoJ30kFsvvI=; b=E3bmJtLzxB8Mr2T7hRQz6Di9pMTCWU969hOSQHMG1vP5vH/CN2k+/43DILbvQoagSL jLsHwE7N29qDc1ZAZHtig2mwGCXDhpn4q104lYt7XSUMEfG/WBEfRXWr0vkrLp7Rt7if /4o9PYgPiD4n14rUIvMLYNRPSk8mG1ribh4nWXx9bjTrMJbl5vzp3aBZFfd5qbWTlLyh gOJ4u7vobFZgOEVq1w4gvDGLVSRJgw7ixDqNMXz9T9Ri25GySQq4z0UF4P9Ux6ajj4cz bxGoaCuF4Cn1ctCyNKyjy3JbnYn9ecyyXN1f6NknYuOxd+qn5G9f7c3914VG+oaNGWSM sFXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=mnf1nibw; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e17-20020aa798d1000000b0065caa80ad8csi11415086pfm.398.2023.06.16.02.53.04; Fri, 16 Jun 2023 02:53:17 -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=@infradead.org header.s=desiato.20200630 header.b=mnf1nibw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232488AbjFPJnU (ORCPT + 99 others); Fri, 16 Jun 2023 05:43:20 -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: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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.