Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp444700lqg; Thu, 11 Apr 2024 07:38:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXrKttMQIojK+JMvbGG24i4CRRla4bjS+A9dvhg0h1ZBl50DEx1DFbQGj2mw4Ms21WbQa5eVO5ICt3+RUK45ZPibuJcJz+UBA/gcO2zJQ== X-Google-Smtp-Source: AGHT+IHNKV32x04ng5dEOIXC8xjCaciJT2zHHaQyy086GsbvM15k3auHqdVhpdd1PanC66tpROan X-Received: by 2002:a50:cd9a:0:b0:56e:232f:e4a with SMTP id p26-20020a50cd9a000000b0056e232f0e4amr6969edi.6.1712846337867; Thu, 11 Apr 2024 07:38:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712846337; cv=pass; d=google.com; s=arc-20160816; b=gC/586jgU0BJCXrv5VilWJFVud4qsbatxTzuY6kl0lttFlzMmvQ7SqyNLPjZc7YCKc hOuFPvsnE5LWfylpASJAUlHnA5ejw5FTvM3kOAGX4M21VXvAEPe1kxe1J2TjAmWPn+RR kPFyLGP4a/QhTXmHWDMl5WaKfWiqVbo9Bt1TWgnMTALNrrqighU8HD6NFAaQ5ucqQbsC T929oxi/jOPgP9aUPx2YdWyjnzKb//JTc6kea513+Bqc61FRERyBtLv5ziST8ixecjMN TAq3CyIVhdy6x9bnrdbzt9bNN6k7Gi081us3r3r4z7mTVNleq8pfbTlmupesqMek+b/x UWwg== 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=xsYjmV0FHgpv6j5ThJyj7NQhBUxIux1LoiMYTigRi3k=; fh=QpfXcl1MWRNwK/PrSFDaf8vyLNOqSjtq+qtJ/l97qlo=; b=o7KUxDEPbgkw0sEh/Wxyz8fhrHkrBHDN2gQ45VHbTFCK49Xm4CPr0jutf0RTGMvVfT F0p0wJvQcr+rFZM84hnJJ8d5OQT2w85xirO6vwDv1OkpLju7ZeVoRnD+3c3Wh69r+PSy XY/5/4F3619rHcAYpme6e0ToaTj8nnGmiQ7K6hEunCM6imVMPJXhy53qHw9w+cn7PPm6 m7oxF4lO5CqrWa5I5M3FiuMgdq+hUGfH//SwGWNps56SzEE9z7KAqH1G73J5o24Av87t agHJkEMjrSBfYJj1almU4pbeUKjaVnsvLQFa+LwDbNBZE2FT5xW/7gVrVJ/ldcmb1Syh JZiQ==; 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-140660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140660-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b20-20020a056402279400b0056e44eb06eesi836185ede.159.2024.04.11.07.38.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 07:38:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-140660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140660-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B36E51F230AA for ; Thu, 11 Apr 2024 14:38:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B211ADDDC; Thu, 11 Apr 2024 14:38:26 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08224DDAB for ; Thu, 11 Apr 2024 14:38:24 +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=1712846306; cv=none; b=OsS/5YuJBSVIgKZweiIhxfX4ZjnXHoCt1zR6UYrkT2fkAivl+0HYJR6O6NjFmORQLEQRBn8pPCQoa05Se6FlvY2FJJmWJ3/aUt9uBmXfB2kTtsDsxVgE9YtEfVWRbWemXtj6vjnbvvoBF/7xg5DGkrvQHcg5aK+LPycYTo+39BY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712846306; c=relaxed/simple; bh=OK8+Son5Z8AEopqkXnz1w53B1Kw4C3yIEMVEHHRXc74=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=D6rB/7yKgxHmOaatKLSptw8117UBU6AeLNcL/1Vpg2fnm+Xn5TlB3EKueqUIhA+Wh9xQ8F27FGA8gaQ9nwkAR+cf/wnVm5fLVSjLYxk8Y9xkk9EE4bWR7taaeo91YufJGDnNNIc1RojSO1bQ15oh7PbdnYGaxh/aM6epFlk/kTo= 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 CC5D611FB; Thu, 11 Apr 2024 07:38:53 -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 86F583F64C; Thu, 11 Apr 2024 07:38:21 -0700 (PDT) Date: Thu, 11 Apr 2024 15:38:19 +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 22/31] x86/resctrl: Make resctrl_arch_pseudo_lock_fn() take a plr Message-ID: References: <20240321165106.31602-1-james.morse@arm.com> <20240321165106.31602-23-james.morse@arm.com> <6589ae7b-95bb-4490-83ac-95904da7649f@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: <6589ae7b-95bb-4490-83ac-95904da7649f@intel.com> On Mon, Apr 08, 2024 at 08:24:35PM -0700, Reinette Chatre wrote: > Hi James, > > On 3/21/2024 9:50 AM, James Morse wrote: > > resctrl_arch_pseudo_lock_fn() has architecture specific behaviour, > > and takes a struct rdtgroup as an argument. > > > > After the filesystem code moves to /fs/, the definition of struct > > rdtgroup will not be available to the architecture code. > > > > The only reason resctrl_arch_pseudo_lock_fn() wants the rdtgroup is > > for the CLOSID. Embed that in the pseudo_lock_region as a hw_closid, > > Above creates expectation that the new member will be named hw_closid, > but that is not what the code does. I'll flag this for review, but I'd guess that this can probably just be "closid". I'll make a note to consider what needs to change to make things consistent between the patch and commit message. James might have had other ideas, connected with the remapping done for CDP emulation causing the resctrl closid being different from the actual value used by the hardware, at least for MPAM (see my response on patch 24). I don't fully understand how this works for x86 though. So long as functionality is unaffected, and this patch is introducing no new confusion that wasn't there beforehand, the exact name may not matter too much(?) Did you have other concerns here? Cheers ---Dave