Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp70048lqt; Thu, 18 Apr 2024 08:40:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWBy8d+rfbeRVk6VbGcvUFtUDNwHXyrkSWM0wR5tBRZAzpEvRnvFm62nK+JvU4oTFF/bBTWLepetAsYasov22r1LD4tMmCNWAxH75POgQ== X-Google-Smtp-Source: AGHT+IHvbCdEEHdRet/1YKsYb/dzrKetJrknye7Vv1/IdEyc6I47TM/QR4lMFKUzC5kpXOlDc++u X-Received: by 2002:a17:902:ec84:b0:1e2:bdef:3971 with SMTP id x4-20020a170902ec8400b001e2bdef3971mr4173689plg.16.1713454841053; Thu, 18 Apr 2024 08:40:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713454841; cv=pass; d=google.com; s=arc-20160816; b=rFFSRttceM0ZrPbhs6BwMW57uPUGCd8wrASWoCj/UhA9auC7IWomkrcNvuY4opj5fU NJ+OD2Ex9H7fCRb2OR46xX5NRdAFfJ3kYSDPSp4A3yK7d2kaVF/Y9GDt7sh2kjDrvMuA AMBtBbhItX4U/TIlRiTECs9HCLSIvjJWwGuSCNqhPqVq3w8eBlaNWX1/+N+YPkGH9hk1 4ASnYowY9zECdlGUgygQ7rIouENNJiLRXrhL3YX82WtpQWdZIgi2GUL0YVq8+EFNOynx SRC2NycMR1e/wsgZJzzIpOrvYbZJmlmXLmzwpNrTe5RmPF0zPUP+5zBPVzIkHvDHJ7f3 yGEw== 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=/xtIiQK3icUy8nnAF4fw28sCr5LEIhIeuMT6ouw88T0=; fh=QpfXcl1MWRNwK/PrSFDaf8vyLNOqSjtq+qtJ/l97qlo=; b=QDMyERjt/dlxlNEDglrhfae4thV9TBu37x3+0wQV2qkcq/fnGayuW7Q7LgfSWeD6mv v+Q0n+utDaA83Bj12rxKEJeBeGdeJK9HK5kip5XaLRkrzBOPMrFP0PR+qpa9sIv/ACyB I530toVs3sx91I6h1TDd2nxYjtYEloSkxoHbEisFxEHcvpH3LnjRoOU6hinDyhACLcju kSsr2+tCxkX+Ebgg4iMqOIT4KtdCTxMkRi2qwfmRpWUToYV2GfsXdxdllHeX2/fp1w6Y PZYKG5KZ17WC0Ykzuyk7fuLwoB3EBhz+MCeGA7o8gEkyfFRGnKK8m2lyvvxj6jEc3Xth 0D0Q==; 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-150390-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150390-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x5-20020a170902a38500b001e587ec304esi1588930pla.316.2024.04.18.08.40.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 08:40:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150390-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; 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-150390-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150390-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 36089B24E1B for ; Thu, 18 Apr 2024 15:26:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6527C16C691; Thu, 18 Apr 2024 15:26:43 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE09F16C6A0 for ; Thu, 18 Apr 2024 15:26:40 +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=1713454002; cv=none; b=kml0FyiyBHcu21AuBCpMGCClZkHmQxckkToSxBtgKufOGqrKTh1AgSycimtQ9ly8T+hMaYla9RMouaR9//hL+RIw42ZOQBYlzzPN+QkxyZY/+nii4G5D+a6wVEvlyrAzshsNusgk0D4EVIVQ2r0Fp3BV+xKoca3hBhykoEYiHIE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713454002; c=relaxed/simple; bh=4xZGfAl8PPKZnPyv64RDCFMMzFWb47GfX2Hu5wQmplk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ILx/IOO4l+jCQ4Thk8L77iaSyO1J4LfXaMC+vUclnYhfa7kvgPEOwyyzO9iIPY3/3HHn0N65WuE2cCnXUd/HNE+sHionWqo/VDE4SEo7Sok505qalsYD131A/A8S9ptCI99lror69bT2CuiODGIElXj35QDttDWjJte2qAul5r4= 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 159AB2F; Thu, 18 Apr 2024 08:27:08 -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 EA36E3F738; Thu, 18 Apr 2024 08:26:36 -0700 (PDT) Date: Thu, 18 Apr 2024 16:26:34 +0100 From: Dave Martin To: Reinette Chatre Cc: James Morse , x86@kernel.org, linux-kernel@vger.kernel.org, Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , 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 12/31] x86/resctrl: Move max_{name,data}_width into resctrl code Message-ID: References: <20240321165106.31602-1-james.morse@arm.com> <20240321165106.31602-13-james.morse@arm.com> <3391a909-d8a4-4ee6-9836-b16c0ad8944e@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: <3391a909-d8a4-4ee6-9836-b16c0ad8944e@intel.com> On Wed, Apr 17, 2024 at 10:16:45PM -0700, Reinette Chatre wrote: > Hi Dave, > > On 4/17/2024 7:41 AM, Dave Martin wrote: > > On Thu, Apr 11, 2024 at 10:38:20AM -0700, Reinette Chatre wrote: > >> On 4/11/2024 7:15 AM, Dave Martin wrote: > >>> On Mon, Apr 08, 2024 at 08:19:15PM -0700, Reinette Chatre wrote: > >>>> Hi James, > >>>> > >>>> On 3/21/2024 9:50 AM, James Morse wrote: > >>>>> @@ -2595,6 +2601,12 @@ static int schemata_list_add(struct rdt_resource *r, enum resctrl_conf_type type > >>>>> if (cl > max_name_width) > >>>>> max_name_width = cl; > >>>>> > >>>>> + /* > >>>>> + * Choose a width for the resource data based on the resource that has > >>>>> + * widest name and cbm. > >>>> > >>>> Please check series to ensure upper case is used for acronyms. > >>> > >>> [...] > >>> > >>>> Reinette > >>> > >>> This patch is just moving existing code around AFAICT. See: > >>> commit de016df88f23 ("x86/intel_rdt: Update schemata read to show data in tabular format") > >>> > >>> Since no new usage of any term is being introduced here, can it be > >>> left as-is? > >>> > >>> There seem to be other uses of "cbm" with this sense in the resctrl > >>> code already. > >> > >> I am not asking to change all existing usages of these terms but in > >> any new changes, please use upper case for acronyms. > > > > While there is a general argument to be made here, it sounds from this > > like you are not requesting a change to this patch; can you confirm? > > Sorry for confusion. I do think in a small change like this it is a good > opportunity to make sure the style is clean. Since this changes the code > anyway, it might as well ensure the style is clean. So, yes, could > you please use CBM instead of cbm. OK; I had thought that we might be introducing a new inconsistency here by making such a change, but looking at upstream, "CBM" is prevalent in comments in the preexisting x86 code. I should have checked that before; apologies for the unnecessary back-and-forth on this. So, sure, it makes sense to change it. Noted. Cheers ---Dave