Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp3047812rdb; Mon, 4 Dec 2023 15:26:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGx23Z3AXYR+Nu106IJl1XYAK8BAZv5qFBt9AWbQou+o/oYflvENcFu/TEMsifzG+tgjLXW X-Received: by 2002:a17:903:11cc:b0:1d0:6ffe:1e81 with SMTP id q12-20020a17090311cc00b001d06ffe1e81mr3332078plh.100.1701732368344; Mon, 04 Dec 2023 15:26:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701732368; cv=none; d=google.com; s=arc-20160816; b=BbrmiIY+mLXFKSC4uo0ECun8ASJIm+mUPCfI9RJqeN2nWTYIzb+ffMib3wYariYHW3 zKIzdt9lckT9iaiVR8RozjvrR87dgLhvlYTvWtMFD4HPei3vv2C2zqdC5/xj2Da8INSo 68jRAoWLXsrnVEFqvI+ILBd2dwHt5ei9Zs5S7387tuy1JsjPQhW1q32NX74QscEsgF6z WmMlQH4g4QUGJDJ+IOiqU3DLBSQgfTUYunCX+422KilqHQITkFNz9kzzhw7pCj026u7u D07A6ZAmliM07FIZ0g1PGG8VmcYXxllE4+ZKTVtm1ntQtB1ktvmCg7ojU6hs5eoHSbcy fbBg== 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=CUtvecOd1VhWp3EbrXnIUM09vXKxgBWOXQf7BA09q34=; fh=dfbC+ngB67mNdcBtWCXDNYSK7vQ9pxZGbBp+WzYwHxI=; b=HcTinGXOPYfEI1DR1fRbww+ycTucsJdj6BMq1T8pGQX5ofr8sEMCoAVZpbM9ikrrio 3PEdCrZiW6Harju9icpseMZN1nQm17RX9BDf9APs+lS82Jz3Y9P8u9N946W2g+YjlqQI aBIXK134+dCKqmpf7XGmhiqlXIp13i3eCZuht8RjsckrnPKjjzrcPHf3Ipq/GwIgts0L Ag+VTKM3hoGHt2zbZfybJt294M5jjpMrzJBjKZ7dqYp9E0HNQToPYeO6AVCE06hLDEn4 eLG45GLBREqDtA9yuFZboE/ZEvlO3/DS64KpMQgiI2AOjhr5zR3ya5O/fW5OoR5a6uqt CXuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BmkiEVWd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id g5-20020a1709026b4500b001b3d6c68bd1si6351931plt.643.2023.12.04.15.26.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 15:26:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BmkiEVWd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 4575880BA42A; Mon, 4 Dec 2023 15:26:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234491AbjLDXZW (ORCPT + 99 others); Mon, 4 Dec 2023 18:25:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231524AbjLDXZV (ORCPT ); Mon, 4 Dec 2023 18:25:21 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9491CC4; Mon, 4 Dec 2023 15:25:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701732327; x=1733268327; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Rea7cSztxOU/Tn6j4cuH2tcjGKjYfBJMSKRByJlHmUs=; b=BmkiEVWdCFSnV6+YT8CxRdhBnGVjrY8pG4HhQT67N0ifLn+lN0RIfUjY 0cN7OPnNKaecDWWGxiT5gG9S6l7BwHe8DcdP5fgYrcGhjg3KICX2Oa/L2 QpKIAMK1vvfw7UuKIP1VqyLNuSU/jQ/4BEb8W78wJ8IL5vhzKyCMT9jNo YAOd5ImhFm+SQVtGsQysI6QegRPKPMNAq19Dt9K4ShACdcSlJRFG9vtgE 2ARi/s8zEEWybPwybzPlQN5vjSHaqWQUZ6RupWib+uKT3MyamzqthYotU Ncr5LhJDWwaUGshwAwc0UcFjmK8VLy67bJrccih4u69V0Epie9At7rqrE g==; X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="397714457" X-IronPort-AV: E=Sophos;i="6.04,251,1695711600"; d="scan'208";a="397714457" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2023 15:25:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10914"; a="1018011391" X-IronPort-AV: E=Sophos;i="6.04,251,1695711600"; d="scan'208";a="1018011391" Received: from agluck-desk3.sc.intel.com (HELO agluck-desk3) ([172.25.222.74]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2023 15:25:24 -0800 Date: Mon, 4 Dec 2023 15:25:22 -0800 From: Tony Luck To: Borislav Petkov , Fenghua Yu , Reinette Chatre , Peter Newman , Jonathan Corbet , Shuah Khan , x86@kernel.org Cc: Shaopeng Tan , James Morse , Jamie Iles , Babu Moger , Randy Dunlap , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, patches@lists.linux.dev Subject: Re: [PATCH v13 0/8] Add support for Sub-NUMA cluster (SNC) systems Message-ID: References: <20231130003418.89964-1-tony.luck@intel.com> <20231204185357.120501-1-tony.luck@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231204185357.120501-1-tony.luck@intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 04 Dec 2023 15:26:05 -0800 (PST) On Mon, Dec 04, 2023 at 10:53:49AM -0800, Tony Luck wrote: Boris: I've collected "Reviewed-by:" from Reinette for all patches. Babu sent a Tested-by for the series, and Reviewed-by for each patch just now. So it's ready to got into your to-be-reviewed queue. Thanks -Tony > The Sub-NUMA cluster feature on some Intel processors partitions the CPUs > that share an L3 cache into two or more sets. This plays havoc with the > Resource Director Technology (RDT) monitoring features. Prior to this > patch Intel has advised that SNC and RDT are incompatible. > > Some of these CPU support an MSR that can partition the RMID counters in > the same way. This allows monitoring features to be used. With the caveat > that users must be aware that Linux may migrate tasks more frequently > between SNC nodes than between "regular" NUMA nodes, so reading counters > from all SNC nodes may be needed to get a complete picture of activity > for tasks. > > Cache and memory bandwidth allocation features continue to operate at > the scope of the L3 cache. > > Signed-off-by: Tony Luck > > Changes since v12: > > All: > Reinette - put commit tags in right order for TIP (Tested-by before > Reviewed-by) > > Patch 7: > Fam Zheng - Check for -1 return from get_cpu_cacheinfo_id() and > increase size of bitmap tracking # of L3 instances. > Reinette - Add extra sanity checks. Note that this patch has > some additional tweaks beyond the e-mail discussion. > 1) "3" is a valid return in addition to 1, 2, 4 > 2) Added a warning if the sanity checks fail that > prints number of CPU nodes and number of L3 cache > instances that were found. > > Patch 8: > Babu - Fix grammar with an additional comma. > > > Tony Luck (8): > x86/resctrl: Prepare for new domain scope > x86/resctrl: Prepare to split rdt_domain structure > x86/resctrl: Prepare for different scope for control/monitor > operations > x86/resctrl: Split the rdt_domain and rdt_hw_domain structures > x86/resctrl: Add node-scope to the options for feature scope > x86/resctrl: Introduce snc_nodes_per_l3_cache > x86/resctrl: Sub NUMA Cluster detection and enable > x86/resctrl: Update documentation with Sub-NUMA cluster changes > > Documentation/arch/x86/resctrl.rst | 25 +- > include/linux/resctrl.h | 85 +++-- > arch/x86/include/asm/msr-index.h | 1 + > arch/x86/kernel/cpu/resctrl/internal.h | 66 ++-- > arch/x86/kernel/cpu/resctrl/core.c | 433 +++++++++++++++++----- > arch/x86/kernel/cpu/resctrl/ctrlmondata.c | 58 +-- > arch/x86/kernel/cpu/resctrl/monitor.c | 68 ++-- > arch/x86/kernel/cpu/resctrl/pseudo_lock.c | 26 +- > arch/x86/kernel/cpu/resctrl/rdtgroup.c | 149 ++++---- > 9 files changed, 629 insertions(+), 282 deletions(-) > > > base-commit: 2cc14f52aeb78ce3f29677c2de1f06c0e91471ab > -- > 2.41.0 >