[PATCH v5 23/34] arm_mpam: Allow configuration to be applied and restored during cpu online

Jonathan Cameron jonathan.cameron at huawei.com
Tue Nov 18 07:39:28 PST 2025


On Mon, 17 Nov 2025 17:00:02 +0000
Ben Horgan <ben.horgan at arm.com> wrote:

> From: James Morse <james.morse at arm.com>
> 
> When CPUs come online the MSC's original configuration should be restored.
> 
> Add struct mpam_config to hold the configuration. For each component, this
> has a bitmap of features that have been changed from the reset values. The
> mpam_config is also used on RIS reset where all bits are set to ensure all
> features are reset.
> 
> 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 at arm.com>
> Signed-off-by: James Morse <james.morse at arm.com>
> Cc: Shaopeng Tan (Fujitsu) tan.shaopeng at fujitsu.com
> Cc: Peter Newman peternewman at google.com
> Reviewed-by: Gavin Shan <gshan at redhat.com>
> Tested-by: Carl Worth <carl at os.amperecomputing.com>
> Tested-by: Gavin Shan <gshan at redhat.com>
> Tested-by: Zeng Heng <zengheng4 at huawei.com>
> Tested-by: Shaopeng Tan <tan.shaopeng at jp.fujitsu.com>
> Signed-off-by: Ben Horgan <ben.horgan at arm.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron at huawei.com>



More information about the linux-arm-kernel mailing list