Received: by 2002:a05:6359:baa:b0:13a:1159:4aa9 with SMTP id gf42csp5592090rwb; Wed, 9 Aug 2023 09:39:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHyDz/KkVhTxef+KAJIW6XmNu9pplEUGVHYdyCOHIkDfbCA/Ab/JBA5zdIFPOHCJON4pDO7 X-Received: by 2002:a05:6a00:1954:b0:687:83c8:1426 with SMTP id s20-20020a056a00195400b0068783c81426mr3292880pfk.6.1691599171361; Wed, 09 Aug 2023 09:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691599171; cv=none; d=google.com; s=arc-20160816; b=Y9xfipBtk09giYaxP5RvDA41FzJJ5CQ1uUHNxFQOyzl3jekyYoLRVp7CZrJ4+RDQCG kyeUMiFAkn1lLL86tMG4AvaNN/CV+JvioAL2UG52OvVtkg11y8akB8x4fnzmYLb47Sn9 oGdQzRboZQaPULDH40p9ZVhAMM/3NUfsrrQxObtkWpnkKUoaBxgFfn+C5zzHc5Nq79nh 351XcbvUUVuEpmFqcRnMsMFGO/SwKMbXts/Pn0ujU5Uzyi2ynyEj6Iw3DnN6yGe8qaT4 n9lPwJPpxeo+MxBOqBY/gNjr4lAsgl+NExdK33Jxt7RIGSbiTNZLb2jUbSLl6+b4z3jQ B3kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=dnBv/zDEc0DlYQmS+VZ/R4YndLh25Bmppd1/9hF+Ooo=; fh=cq98oumhEvLDkBN8+H7psHTUCanCoZ1C6DUVsh1tA/k=; b=Fp7NlqZApvKYqrngQN7zsEuFDl2Q1q3iFEWOErfqBkiLRkH80PuKA/IgTZwMoCJIYM zEq10SUtVEHp3w12HIGFEupMYAcoEINPgU4CEiBkwGI03LxcAnosxPYzrxR3zSXbYDP9 G4OvfC+KKeJNEh0a5cnFySKYl4qFpvtxl5UuIdQRtymL7Dg30APC6mgZd8d1o08Ps4Fv LMMVTFcfc6CU0HI5Q4+oxL3M/zJzpwvL34knzqq+m74NoH2FTVAX4y7FuNmjwO04A/4p Anw1Fn3rEiPLoSFjtg0uivOYN4WrCFzVeSc9q7tqJYZQgxbZ/i1EEt35orwNTutz77a0 f4Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CvvTfySK; 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 h13-20020a056a00218d00b0068632b6bc81si9878004pfi.259.2023.08.09.09.39.18; Wed, 09 Aug 2023 09:39:31 -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=CvvTfySK; 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 S229590AbjHIQSA (ORCPT + 99 others); Wed, 9 Aug 2023 12:18:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbjHIQR7 (ORCPT ); Wed, 9 Aug 2023 12:17:59 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C98C3CE for ; Wed, 9 Aug 2023 09:17:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691597879; x=1723133879; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=EMcSYxXoBTloQoFV7nwbsCh2Jiwl9DO9dn0OyzjQgdQ=; b=CvvTfySKPXXSMdUWD95Vuk90607J66E7USsZC8hMQXignxUVI3AUxxFo XfZEG7Sv8g10PrGs3DuavFubHJgOhZ8AU8fubsUeB3BmqnkEeY6bTLtlk OuqwXrXY+q8qCVW7nlDWtn5hwyEUD643p6QBDWSGQL8vWPyxk4RbdOxQh jqFfilHkLkAixtEEBuMu8vaSBxkZcburUeBY+COX8datuiWrGZaxfLnKc c0806UPtR+FQ9MUm2tQZ8JNgfJQrqECa4t1r1O8GRw2s141IMjHxABygQ kRHxxxavD264RaVjnyJeBCP63oYYKf1ih/TN2XFLDHeyYStfFJ727FOmH A==; X-IronPort-AV: E=McAfee;i="6600,9927,10797"; a="351470797" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="351470797" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2023 09:12:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10797"; a="797243839" X-IronPort-AV: E=Sophos;i="6.01,159,1684825200"; d="scan'208";a="797243839" Received: from qiuxu-clx.sh.intel.com ([10.239.53.109]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Aug 2023 09:12:28 -0700 From: Qiuxu Zhuo To: tglx@linutronix.de Cc: andrew.cooper3@citrix.com, andy@infradead.org, arjan@linux.intel.com, dimitri.sivanich@hpe.com, feng.tang@intel.com, jgross@suse.com, kan.liang@linux.intel.com, kprateek.nayak@amd.com, linux-kernel@vger.kernel.org, mikelley@microsoft.com, paulmck@kernel.org, ray.huang@amd.com, rui.zhang@intel.com, sohil.mehta@intel.com, thomas.lendacky@amd.com, x86@kernel.org, qiuxu.zhuo@intel.com Subject: Re: [patch 00/53] x86/topology: The final installment Date: Thu, 10 Aug 2023 00:12:19 +0800 Message-Id: <20230809161219.83084-1-qiuxu.zhuo@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230807130108.853357011@linutronix.de> References: <20230807130108.853357011@linutronix.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,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 Hi Thomas, > From: Thomas Gleixner > ... > Subject: [patch 00/53] x86/topology: The final installment > ... > > The current series applies on top of > > git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git topo-cpuid-v3 > > and is available from git here: > > git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git topo-full-v1 Test Machine ------------ I tested the 'topo-full-v1' branch on a Sapphire Rapids server with 2 sockets, each containing 48 cores, resulting in a total of 192 threads. Test Results ------------ The following test results (same result either w/ or w/o [1]) show that this branch worked well on this server. Based on the test results, Tested-by: Qiuxu Zhuo [1] https://lore.kernel.org/all/20230808221039.GH212435@hirez.programming.kicks-ass.net/ Logs (hyper-thread enabled) --------------------------- 1.1 dmesg | grep "CPU topo" : CPU topo: Max. logical packages: 2 CPU topo: Max. logical dies: 2 CPU topo: Max. dies per package: 1 CPU topo: Max. threads per core: 2 CPU topo: Num. cores per package: 48 CPU topo: Num. threads per package: 96 CPU topo: Allowing 192 present CPUs plus 0 hotplug CPUs CPU topo: Thread : 192 CPU topo: Core : 96 CPU topo: Module : 2 CPU topo: Tile : 2 CPU topo: Die : 2 CPU topo: Package : 2 1.2 cat /sys/kernel/debug/x86/topo/domains : domain: Thread shift: 1 dom_size: 2 max_threads: 2 domain: Core shift: 7 dom_size: 64 max_threads: 128 domain: Module shift: 7 dom_size: 1 max_threads: 128 domain: Tile shift: 7 dom_size: 1 max_threads: 128 domain: Die shift: 7 dom_size: 1 max_threads: 128 domain: Package shift: 7 dom_size: 1 max_threads: 128 1.3 <1st socket, 1st core, primary thread> cat /sys/kernel/debug/x86/topo/cpus/0 online: 1 initial_apicid: 0 apicid: 0 pkg_id: 0 die_id: 0 cu_id: 255 core_id: 0 logical_pkg_id: 0 logical_die_id: 0 llc_id: 0 l2c_id: 0 amd_node_id: 0 amd_nodes_per_pkg: 0 num_threads: 96 num_cores: 48 max_dies_per_pkg: 1 max_threads_per_core:2 <1st socket, last core, primary thread> cat /sys/kernel/debug/x86/topo/cpus/47 online: 1 initial_apicid: 5e apicid: 5e pkg_id: 0 die_id: 0 cu_id: 255 core_id: 47 logical_pkg_id: 0 logical_die_id: 0 llc_id: 0 l2c_id: 94 amd_node_id: 0 amd_nodes_per_pkg: 0 num_threads: 96 num_cores: 48 max_dies_per_pkg: 1 max_threads_per_core:2 <2nd socket, 1st core, primary thread> cat /sys/kernel/debug/x86/topo/cpus/48 online: 1 initial_apicid: 80 apicid: 80 pkg_id: 1 die_id: 1 cu_id: 255 core_id: 0 logical_pkg_id: 1 logical_die_id: 1 llc_id: 128 l2c_id: 128 amd_node_id: 0 amd_nodes_per_pkg: 0 num_threads: 96 num_cores: 48 max_dies_per_pkg: 1 max_threads_per_core:2 <2nd socket, last core, primary thread> cat /sys/kernel/debug/x86/topo/cpus/95 online: 1 initial_apicid: de apicid: de pkg_id: 1 die_id: 1 cu_id: 255 core_id: 47 logical_pkg_id: 1 logical_die_id: 1 llc_id: 128 l2c_id: 222 amd_node_id: 0 amd_nodes_per_pkg: 0 num_threads: 96 num_cores: 48 max_dies_per_pkg: 1 max_threads_per_core:2 <1st socket, 1st core, secondary thread> cat /sys/kernel/debug/x86/topo/cpus/96 online: 1 initial_apicid: 1 apicid: 1 pkg_id: 0 die_id: 0 cu_id: 255 core_id: 0 logical_pkg_id: 0 logical_die_id: 0 llc_id: 0 l2c_id: 0 amd_node_id: 0 amd_nodes_per_pkg: 0 num_threads: 96 num_cores: 48 max_dies_per_pkg: 1 max_threads_per_core:2 <1st socket, last core, secondary thread> cat /sys/kernel/debug/x86/topo/cpus/143 online: 1 initial_apicid: 5f apicid: 5f pkg_id: 0 die_id: 0 cu_id: 255 core_id: 47 logical_pkg_id: 0 logical_die_id: 0 llc_id: 0 l2c_id: 94 amd_node_id: 0 amd_nodes_per_pkg: 0 num_threads: 96 num_cores: 48 max_dies_per_pkg: 1 max_threads_per_core:2 <2nd socket, 1st core, secondary thread> cat /sys/kernel/debug/x86/topo/cpus/144 online: 1 initial_apicid: 81 apicid: 81 pkg_id: 1 die_id: 1 cu_id: 255 core_id: 0 logical_pkg_id: 1 logical_die_id: 1 llc_id: 128 l2c_id: 128 amd_node_id: 0 amd_nodes_per_pkg: 0 num_threads: 96 num_cores: 48 max_dies_per_pkg: 1 max_threads_per_core:2 <2nd socket, last core, secondary thread> cat /sys/kernel/debug/x86/topo/cpus/191 online: 1 initial_apicid: df apicid: df pkg_id: 1 die_id: 1 cu_id: 255 core_id: 47 logical_pkg_id: 1 logical_die_id: 1 llc_id: 128 l2c_id: 222 amd_node_id: 0 amd_nodes_per_pkg: 0 num_threads: 96 num_cores: 48 max_dies_per_pkg: 1 max_threads_per_core:2 Logs (hyper-thread disabled) ---------------------------- 2.1 dmesg | grep "CPU topo" : CPU topo: Max. logical packages: 2 CPU topo: Max. logical dies: 2 CPU topo: Max. dies per package: 1 CPU topo: Max. threads per core: 1 CPU topo: Num. cores per package: 48 CPU topo: Num. threads per package: 48 CPU topo: Allowing 96 present CPUs plus 0 hotplug CPUs CPU topo: Thread : 96 CPU topo: Core : 96 CPU topo: Module : 2 CPU topo: Tile : 2 CPU topo: Die : 2 CPU topo: Package : 2 2.2 cat /sys/kernel/debug/x86/topo/domains : domain: Thread shift: 1 dom_size: 2 max_threads: 2 domain: Core shift: 7 dom_size: 64 max_threads: 128 domain: Module shift: 7 dom_size: 1 max_threads: 128 domain: Tile shift: 7 dom_size: 1 max_threads: 128 domain: Die shift: 7 dom_size: 1 max_threads: 128 domain: Package shift: 7 dom_size: 1 max_threads: 128 2.3 <1st socket, 1st core> cat /sys/kernel/debug/x86/topo/cpus/0 online: 1 initial_apicid: 0 apicid: 0 pkg_id: 0 die_id: 0 cu_id: 255 core_id: 0 logical_pkg_id: 0 logical_die_id: 0 llc_id: 0 l2c_id: 0 amd_node_id: 0 amd_nodes_per_pkg: 0 num_threads: 48 num_cores: 48 max_dies_per_pkg: 1 max_threads_per_core:1 <1st socket, last core> cat /sys/kernel/debug/x86/topo/cpus/47 online: 1 initial_apicid: 5e apicid: 5e pkg_id: 0 die_id: 0 cu_id: 255 core_id: 47 logical_pkg_id: 0 logical_die_id: 0 llc_id: 0 l2c_id: 94 amd_node_id: 0 amd_nodes_per_pkg: 0 num_threads: 48 num_cores: 48 max_dies_per_pkg: 1 max_threads_per_core:1 <2nd socket, 1st core> cat /sys/kernel/debug/x86/topo/cpus/48 online: 1 initial_apicid: 80 apicid: 80 pkg_id: 1 die_id: 1 cu_id: 255 core_id: 0 logical_pkg_id: 1 logical_die_id: 1 llc_id: 128 l2c_id: 128 amd_node_id: 0 amd_nodes_per_pkg: 0 num_threads: 48 num_cores: 48 max_dies_per_pkg: 1 max_threads_per_core:1 <2nd socket, last core> cat /sys/kernel/debug/x86/topo/cpus/95 online: 1 initial_apicid: de apicid: de pkg_id: 1 die_id: 1 cu_id: 255 core_id: 47 logical_pkg_id: 1 logical_die_id: 1 llc_id: 128 l2c_id: 222 amd_node_id: 0 amd_nodes_per_pkg: 0 num_threads: 48 num_cores: 48 max_dies_per_pkg: 1 max_threads_per_core:1 -Qiuxu