From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D70F828373; Fri, 12 Sep 2025 15:00:36 +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=1757689238; cv=none; b=EgOfid13kMnbqKoMD/7h/7sc/+UrWr/PonTw0MgrGyf3z9odzfo+V/MI7l+I2zD5ncbgSXnRphquFPi5br5PucOI8gwI/SsEZpuHJcBczJIOmTmHFfZcfavPqLb3aXpwtsjphSSiHX5hLxKSYvwlXR4DL5CnZV1DkWwEOTnnmF8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757689238; c=relaxed/simple; bh=QYX6DEPnALv8VrhjqMcHzjidP6B9lzW1oyW/6+vMXPU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=UoRn98GPhG++Eg4Fvg5Vba0EDBuQUpEMwrYo+WhaSDD9ZYOHOakIPLUG/BQySBJPP94qrFZ3RNR7tPDhFENtKlZNSMDK2atWqPnTl1iHIO2GKR208/mxpYBqjI5sKliIzj4ZfY0mcIESStTXIuYxTwN3WFGT88pbW8al/KUZVKg= 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 01E5C16A3; Fri, 12 Sep 2025 08:00:28 -0700 (PDT) Received: from [10.1.196.46] (e134344.arm.com [10.1.196.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B01D03F694; Fri, 12 Sep 2025 08:00:31 -0700 (PDT) Message-ID: <5eb4b7f0-37eb-47c9-a955-ed9db17fa1e5@arm.com> Date: Fri, 12 Sep 2025 16:00:30 +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 20/29] arm_mpam: Allow configuration to be applied and restored during cpu online To: James Morse , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org Cc: 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 , Dave Martin , Koba Ko , Shanker Donthineni , fenghuay@nvidia.com, baisheng.gao@unisoc.com, Jonathan Cameron , Rob Herring , Rohit Mathew , Rafael Wysocki , Len Brown , Lorenzo Pieralisi , Hanjun Guo , Sudeep Holla , Catalin Marinas , Will Deacon , Greg Kroah-Hartman , Danilo Krummrich References: <20250910204309.20751-1-james.morse@arm.com> <20250910204309.20751-21-james.morse@arm.com> From: Ben Horgan Content-Language: en-US In-Reply-To: <20250910204309.20751-21-james.morse@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi James, On 9/10/25 21:43, James Morse wrote: > When CPUs come online the MSC's original configuration should be restored. > > Add struct mpam_config to hold the configuration. This has a bitmap of > features that were modified. Once the maximum partid is known, allocate > a configuration array for each component, and reprogram each RIS > configuration from this. > > CC: Dave Martin > Signed-off-by: James Morse > --- > Changes since v1: > * Switched entry_rcu to srcu versions. > > Changes since RFC: > * Added a comment about the ordering around max_partid. > * Allocate configurations after interrupts are registered to reduce churn. > * Added mpam_assert_partid_sizes_fixed(); > * Make reset use an all-ones instead of zero config. > --- > drivers/resctrl/mpam_devices.c | 269 +++++++++++++++++++++++++++++--- > drivers/resctrl/mpam_internal.h | 29 +++- > 2 files changed, 271 insertions(+), 27 deletions(-) > Reviewed-by: Ben Horgan Thanks, Ben