[PATCH 27/33] arm_mpam: Track bandwidth counter state for power management
Gavin Shan
gshan at redhat.com
Sun Nov 9 15:15:53 PST 2025
On 11/7/25 10:34 PM, Ben Horgan wrote:
> From: James Morse <james.morse at arm.com>
>
> Bandwidth counters need to run continuously to correctly reflect the
> bandwidth.
>
> Save the counter state when the hardware is reset due to CPU hotplug.
> Add struct mbwu_state to track the bandwidth counter. Support for
> tracking overflow with the same structure will be added in a
> subsequent commit.
>
> Cc: Zeng Heng <zengheng4 at huawei.com>
> Signed-off-by: James Morse <james.morse at arm.com>
> Signed-off-by: Ben Horgan <ben.horgan at arm.com>
> ---
> Changes since v3:
> Drop tags
> Fix correction accounting
> Split out overflow checking
> ---
> drivers/resctrl/mpam_devices.c | 126 +++++++++++++++++++++++++++++++-
> drivers/resctrl/mpam_internal.h | 21 +++++-
> 2 files changed, 145 insertions(+), 2 deletions(-)
>
Reviewed-by: Gavin Shan <gshan at redhat.com>
More information about the linux-arm-kernel
mailing list