Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp830100lqs; Fri, 14 Jun 2024 07:01:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXoyY0HTH7laTQti4fT73T2QZ7xPy5bGza2GGI8xjUgxvfmBrMf409dfcflErqJ5uxq/lb2MT/kRu6PosfhB7Cexci+qRti0mQLMFRaw== X-Google-Smtp-Source: AGHT+IGb55iW6x6fjSF8LajrRGgqwU0BdDrTFQ/gbYFfeS1eUA3J02v57Fml401IZxQ/uED04/zV X-Received: by 2002:a05:622a:1213:b0:440:25e8:15d7 with SMTP id d75a77b69052e-4417a9faf9dmr113477191cf.6.1718373673131; Fri, 14 Jun 2024 07:01:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718373673; cv=pass; d=google.com; s=arc-20160816; b=eEU/R5D9SPhZ5CeE5jUpEskjEUSHyAmQrGGVRKVSxiDMz991EHkMhpwN3/We8lzTLh II5j1U+xdIGERaqzFYTeAFHZtXnxOP2ajSguTjVh3Ts85NR6LnXP9vgsnEphwIiunmox OhkEvoQjd8GOvinK2b4wLFIf4x6dNBgB3xflYp6mHNouAxcnu2VFMLhe2q4eTDOHRtXN aZPuLOBs+R8lGEyNgd9ODlUClTlXotj+QvhJtu62OtpUaqw+qo8jLfQKMIG/5rBQ1EnG 2sd7sceUsD/68NX6VY3xB8i7LvkalX010rA4aJ2KK8NMu1NfoWIjE2IN7AmZisD5zrDL ZltA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=JaodMW7gMQe6Dwu7rUdrDgQiiYuY21VdKiKTCqCfh8Q=; fh=l+S7gOFfmi3QGnnZKR03YFcMrNXn1ZwArJetS6MlxiY=; b=WdqoeyPIJR4zMEzTUjd/hnMNzRSNXIExIIwnSO4hKY+MaXn0ZcIogo/7QrIj591pw+ t2wwp/0UZyPPyy9zL8VVCZTULlFdDstaiDOqr0aSoSDwHo71WJrW0peqOP+MYpLMD/kI RJS1C5A6w0Fofsq239RGaHErtHe0P+GJLK6jx0bLpaxWSzF8dnOuxelM6Mx+cTeNOFkh xbgSGpfeAriPl9DpSAiJphl/cRVRGfIgh+nb3m9m1DnFV5TqkfFKZAfjOFEjieeiVjQO gaRhQYNpT1GsQFyob8TPp73NDgMCWAe9vjnSJv4wDkGa86IR2BWBH07e4jlUht+ViB0L zisw==; 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-214974-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214974-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a1e0cc1a2514c-80d78706aeasi667321241.44.2024.06.14.07.01.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 07:01:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214974-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-214974-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214974-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 520621C25A2E for ; Fri, 14 Jun 2024 13:58:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5D601755A; Fri, 14 Jun 2024 13:58:14 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C088D15E90 for ; Fri, 14 Jun 2024 13:58:12 +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=1718373494; cv=none; b=iNWGobszbgfUfQiWmUvKVLM0oG7mRRGg5SRSiUa1kP1881X5LKe46pwT+sL8WpJDfsqOMFOeDcraol0QPvz2bnY30+CvygoVlCcfyocKqrLCMlrMnii9/AFcrYTfSWtBZHzEpvrtAAJhKZKbA5YySJIY3SE8kCA5ibrKRAHYmi4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718373494; c=relaxed/simple; bh=yOBPQ8pHT89a1GRhRgbWfMfyP2gIvjF4sOr+SrKdnE8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Hk1FkFHyS3IYIms2n0eSkLLLy+c1fBpd6McIGClZjlyBrxCaTNNKUKvx7FWqI3OlXBOFUY3LBVBZExURert8kxjBD+TScwXN8up0Hn1aJGbic16oliHlDck0WizeRkhWdiSR71en+tu2/lRAjRqpu/fBRug3C9hx8tumzX74CCk= 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 B6CC9FEC; Fri, 14 Jun 2024 06:58:36 -0700 (PDT) Received: from [10.1.196.28] (eglon.cambridge.arm.com [10.1.196.28]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BBD233F5A1; Fri, 14 Jun 2024 06:58:08 -0700 (PDT) Message-ID: <8d3b27d9-1a58-455d-aaa7-ff9a7e49a0b2@arm.com> Date: Fri, 14 Jun 2024 14:58:08 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 22/35] x86/resctrl: Make resctrl_arch_pseudo_lock_fn() take a plr Content-Language: en-GB To: Dave Martin , x86@kernel.org, linux-kernel@vger.kernel.org Cc: Fenghua Yu , Reinette Chatre , 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, "Shaopeng Tan (Fujitsu)" , baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao , Peter Newman , dfustini@baylibre.com, amitsinght@marvell.com, David Hildenbrand , Rex Nie References: <20240426150537.8094-1-Dave.Martin@arm.com> <20240426150904.8854-1-Dave.Martin@arm.com> <20240426150904.8854-22-Dave.Martin@arm.com> From: James Morse In-Reply-To: <20240426150904.8854-22-Dave.Martin@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Dave, On 26/04/2024 16:08, Dave Martin wrote: > From: James Morse > > 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 closid, > and move the definition of struct pseudo_lock_region to resctrl.h. > FYI: James Morse: > > * Review the v2 change below, in case there was any functional reason > for distinguishing "hw" closids here. > > Changes in v2: > > * [Commit message only] Typo fix: > s/hw_closid/closid/g > > (The name "closid" is used in the code. If there is a distinction > between "hardware" closids and resctrl closids, it doesn't seem to > be explicit in the naming elsewhere.) Heh, this is a blast from the past! In 2018 I was trying to get resctrl to convert 'closid' to 'hw_closid' using some architecture provided helpers. This was an alternative way of folding the CDP code to hide the differences between x86/arm64. I decided the fs/resctrl code was cleaner without it - and arm64 can just juggle the numbers instead. Thanks, James