Thread (14 messages) 14 messages, 3 authors, 1d ago

Re: [PATCH v5 3/5] arm_mpam: resctrl: Add resctrl_arch_config_cntr() for ABMC use

From: Gavin Shan <hidden>
Date: 2026-07-15 10:23:25
Also in: lkml

On 7/8/26 2:24 AM, Ben Horgan wrote:
From: James Morse <james.morse@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@arm.com>
Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Tested-by: Shaopeng Tan <redacted>
Tested-by: Fenghua Yu <fenghuay@nvidia.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Reviewed-by: Shaopeng Tan <redacted>
Reviewed-by: Fenghua Yu <fenghuay@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 <redacted>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help