Re: [PATCH v2 20/29] arm_mpam: Allow configuration to be applied and restored during cpu online

Ben Horgan
2025-09-12T15:00:36Z

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 <Dave.Martin@arm.com>
> Signed-off-by: James Morse <james.morse@arm.com>
> ---
> 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 <ben.horgan@arm.com>
Thanks,

Ben