[PATCH v5 1/5] arm_mpam: resctrl: Pick classes for use as MBM counters
Gavin Shan
gshan at redhat.com
Wed Jul 15 03:12:13 PDT 2026
On 7/8/26 2:24 AM, Ben Horgan wrote:
> From: James Morse <james.morse at arm.com>
>
> resctrl has two types of bandwidth counters, NUMA-local and global. MPAM
> can only count globally; either using MSC at the L3 cache or in the memory
> controllers. When global and local equate to the same thing continue just
> to call it global.
>
> Pick the corresponding MPAM classes to back the MBM counters. As resctrl
> requires all monitors to be at the L3 cache, we can only use the counters
> at the memory controllers when they have the same topology as the L3 cache
> and the traffic they see if the same. In particular, for the bandwidth
> counters at the memory controllers to be exposed to resctrl it is required
> there is a single L3 cache and a single NUMA node as otherwise cross NUMA
> traffic will be counted at the wrong instance.
>
> 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: Zeng Heng <zengheng4 at huawei.com>
> Tested-by: Fenghua Yu <fenghuay at nvidia.com>
> Reviewed-by: Shaopeng Tan <tan.shaopeng at jp.fujitsu.com>
> Reviewed-by: Jonathan Cameron <jonathan.cameron at huawei.com>
> Reviewed-by: Fenghua Yu <fenghuay at nvidia.com>
> ---
> Changes since rfc v1:
> Move finding any_mon_comp into monitor boilerplate patch
> Move mpam_resctrl_get_domain_from_cpu() into monitor boilerplate
> Remove free running check
> Trim commit message
>
> Changes since v3:
> Extra paragraph in commit message
>
> Changes since v4:
> Commit message tag ordering
> New sentence in block comment (Fenghua)
> ---
> drivers/resctrl/mpam_resctrl.c | 28 ++++++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
Reviewed-by: Gavin Shan <gshan at redhat.com>
More information about the linux-arm-kernel
mailing list