Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp22182lqp; Fri, 12 Apr 2024 09:25:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXi0UIks9KoydzsaFPfApC/Ezwb6je8szrAJow3YXXcBPtMfUuzkzrbrtjhlOZyBmjXVBwPxBXMFqar0bUxMwknjegUn8j19N/NP2w21Q== X-Google-Smtp-Source: AGHT+IHgCe6tupF2TJ/E/E6LafitJDCIiX+eRyD5wh86uOYkUy3wdCh/uqYQoNOiVYmwJssg7WhY X-Received: by 2002:a05:6a21:3406:b0:1a8:58a2:ea41 with SMTP id yn6-20020a056a21340600b001a858a2ea41mr4305269pzb.9.1712939143999; Fri, 12 Apr 2024 09:25:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712939143; cv=pass; d=google.com; s=arc-20160816; b=pRhjus5c+QrWLc3X04OJdnr2/vJexjVAzbsmeRREh3l2sX0E3gOPRwCodoAGDfhckR nmzk0B93JMBOOzWOvzSr+4ovFZuK8Y2I1n3JfKbX9EbFg+ZOysp5hZRSNrBpD8a84HVi ZPGKj3ediP5DiPmt1EkM7LvQATaQQqhE9HHmBijoLo9a2/ye4H7G/PLIfih3GGSd03ZP ILZPi48jonMf+kIHmcLeHpw1pSmybhbtD3FOCrPCsbKvMoyMwZXJ5HouwXrUsTAcaG71 miApiaf8v5b3sQ6q69o52mwEkGKXR7oJM6xSTa7zRZ8kJWqp9ckeSfWsWC4XXRxjzrAP YMoQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=vSGyN0WQVCfS3GKP9G1aX+M5Cly0EhpZnwOvVNJoakU=; fh=pcImFLVjP9klPWzz4GBkK4+uAdhmHqdcM3DeNSa+hiw=; b=Rk3hfbFHE8owsoip+V1ZaULo74azEAOb9eVXImWY3Y0X+Uy7j0qz3XilD8MsvvMUgC eKT0eOPn7dCe32JmTpK2EmaXiF+H+BVxDe4Z6AqZmNDRjdXCEm6J5DeBTeemyC0Ty68T vcf8LxcnHgXtndLorlaUULlEg3+skFBzMX16Bf94DZLBPtUoa2+czskyZlFiLlJf4goX qiXlXYzamq0szJ7kLzctFO5gaeOXYm0DZAQZfA7uF2Rl++HUcG8DkQW/hWEV3HPPYWHV vyIeHGIvi3WItqKqHjHeXbZmmUlE12rsdRA817+jJucmqCPwj75Bi8B9H8AXZRwk8Iok zN9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-143071-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j14-20020a63230e000000b005f0bc731d64si3424166pgj.514.2024.04.12.09.25.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 09:25:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143071-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; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-143071-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 8E6F2283AD2 for ; Fri, 12 Apr 2024 16:25:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D91E1494D7; Fri, 12 Apr 2024 16:23:44 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58413148FFC for ; Fri, 12 Apr 2024 16:23:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712939023; cv=none; b=RSYcec7ToVUJx5GnFGYL0AU0tgEAnt54pHM/zzAFz4eh25Tc8BdSKyt1kjyq5R28DE69kIwiuQpla6b5kQzsYSuKAs5GlpG7GHtfVM/2/vbCPRqSOyxMa6r/3cM+udz5Ze8X8g3Gt5AiXekbWFg1wUmrrW3PtenPY2sMywUPAkU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712939023; c=relaxed/simple; bh=64X3LLbSaCOSlnkxg3lTMOHA/8UyVzC0UufYmcg9tF4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rSsxg7yJ8w6QrGqglVMGRqt2LEJFBkU8YG+57y2duwtLkp3c8oR0rf0BIpHuw/X0sIlrPscJr+fnBLzs8xJX46lDjKArSKUhhtw3v//qYD7YypE09EZ0iOFmhiI7RKjnNfx3IcAi+bXKvKeSueCpcJXqBt5igbByM+zkU6UE3Xc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D940F339; Fri, 12 Apr 2024 09:24:10 -0700 (PDT) Received: from e133380.arm.com (e133380.arm.com [10.1.197.52]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E87CF3F64C; Fri, 12 Apr 2024 09:23:38 -0700 (PDT) Date: Fri, 12 Apr 2024 17:23:36 +0100 From: Dave Martin To: Babu Moger Cc: James Morse , x86@kernel.org, linux-kernel@vger.kernel.org, Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Reinette Chatre , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , peternewman@google.com, dfustini@baylibre.com, amitsinght@marvell.com, David Hildenbrand , Rex Nie Subject: Re: [PATCH v1 29/31] fs/resctrl: Add boiler plate for external resctrl code Message-ID: References: <20240321165106.31602-1-james.morse@arm.com> <20240321165106.31602-30-james.morse@arm.com> <23afb7ff-222f-40d0-a68e-3d7b0c3df55d@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23afb7ff-222f-40d0-a68e-3d7b0c3df55d@intel.com> Hi Babu, [see below] On Thu, Apr 11, 2024 at 10:42:48AM -0700, Reinette Chatre wrote: > Hi Dave, > > On 4/11/2024 7:27 AM, Dave Martin wrote: > > On Mon, Apr 08, 2024 at 08:41:04PM -0700, Reinette Chatre wrote: > >> Hi James, > >> > >> On 3/21/2024 9:51 AM, James Morse wrote: > >>> Add Makefile and Kconfig for fs/resctrl. Add ARCH_HAS_CPU_RESCTRL > >>> for the common parts of the resctrl interface and make X86_CPU_RESCTRL > >>> depend on this. > >>> > >>> Signed-off-by: James Morse [...] > >>> diff --git a/fs/resctrl/Kconfig b/fs/resctrl/Kconfig > >>> new file mode 100644 > >>> index 000000000000..36a1ddbe6c21 > >>> --- /dev/null > >>> +++ b/fs/resctrl/Kconfig > >> > >> Could you please review the contents of this file for > >> appropriate line length and consistent tab usage? > > > > Noted. > > > >>> @@ -0,0 +1,23 @@ > >>> +config RESCTRL_FS > >>> + bool "CPU Resource Control Filesystem (resctrl)" > >>> + depends on ARCH_HAS_CPU_RESCTRL > >>> + select KERNFS > >>> + select PROC_CPU_RESCTRL if PROC_FS > >>> + help > >>> + Resctrl is a filesystem interface > >>> + to control allocation and > >>> + monitoring of system resources > >>> + used by the CPUs. > > > > (Not quite a haiku, but I don't know how many syllables "resctrl" > > counts as...) > > > > Since this is the Kconfig user's primary knob for enabling resctrl, > > maybe flesh this out and make it a bit more generic and newbie-friendly? > > Something like: > > > > Some architectures provide hardware facilities to group tasks and > > monitor and control their usage of memory system resources such as > > caches and memory bandwidth. Examples of such facilities include > > Intel's Resource Director Technology (Intel(R) RDT) and AMD's > > Platform Quality of Service (AMD QoS). > > Nit: We should double check with AMD how they want to refer to their > feature. Their contribution to the resctrl docs used the term you provide > but their spec uses PQOS. Babu, do you have a view on this? Initially I just pasted this across from the existing text in resctrl.rst and arch/x86/Kconfig. Looking at the AMD's spec though, I'd probably follow Reinette's suggestion and go for: [...] AMD's Platform Quality of Service (PQOS) but I'm happy to take your recommendation if you think AMD would prefer different text here. Cheers ---Dave