[PATCH v5 4/5] arm_mpam: resctrl: Add resctrl_arch_cntr_read() & resctrl_arch_reset_cntr()

Gavin Shan gshan at redhat.com
Wed Jul 15 03:23:18 PDT 2026


On 7/8/26 2:24 AM, Ben Horgan wrote:
> From: James Morse <james.morse at arm.com>
> 
> When used in 'mbm_event' mode, ABMC emulation, resctrl uses arch hooks to
> read and reset the memory bandwidth utilization (MBWU) counters.
> 
> Add these.
> 
> 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 rfc v1:
> Move __reset_mon() and reset_mon_cdp_safe() helpers here
> support mbwu in __read_mon()
> Mention mbm_event mode in commit message
> 
> Changes since v3:
> USE_PREALLOCATED_IDX, separate h/w counters are needed for code and data
> when cdp_enabled is true
> ---
>   drivers/resctrl/mpam_resctrl.c | 99 +++++++++++++++++++++++++++++-----
>   1 file changed, 86 insertions(+), 13 deletions(-)
> 
Reviewed-by: Gavin Shan <gshan at redhat.com>




More information about the linux-arm-kernel mailing list