[PATCH v5 3/5] arm_mpam: resctrl: Add resctrl_arch_config_cntr() for ABMC use
Gavin Shan
gshan at redhat.com
Wed Jul 15 03:22:59 PDT 2026
On 7/8/26 2:24 AM, Ben Horgan wrote:
> From: James Morse <james.morse at arm.com>
>
> ABMC, mbm_event mode, has a helper resctrl_arch_config_cntr() for changing
> the mapping between 'cntr_id' and a CLOSID/RMID pair.
>
> Add the helper.
>
> For MPAM this is done by updating the mon->mbwu_idx_to_mon[] array, and as
> usual CDP means it needs doing in three different ways.
>
> Signed-off-by: James Morse <james.morse at arm.com>
> Signed-off-by: Ben Horgan <ben.horgan at arm.com>
> Tested-by: Shaopeng Tan <tan.shaopeng at jp.fujitsu.com>
> Tested-by: Fenghua Yu <fenghuay at nvidia.com>
> Reviewed-by: Jonathan Cameron <jonathan.cameron at huawei.com>
> Reviewed-by: Shaopeng Tan <tan.shaopeng at jp.fujitsu.com>
> Reviewed-by: Fenghua Yu <fenghuay at nvidia.com>
> ---
> Changes since new rfc:
> Mention mbm_event mode in commit message
>
> Changes since v3:
> Warning bound (Sashiko)
>
> Changes since v4:
> resctrl_arch_reset_rmid() -> reset_arch_reset_cntr()
> ---
> drivers/resctrl/mpam_resctrl.c | 48 +++++++++++++++++++++++++++++-----
> 1 file changed, 42 insertions(+), 6 deletions(-)
>
Reviewed-by: Gavin Shan <gshan at redhat.com>
More information about the linux-arm-kernel
mailing list