Re: [PATCH 28/33] arm_mpam: Consider overflow in bandwidth counter state

Gavin Shan
2025-11-09T23:16:28Z

On 11/7/25 10:34 PM, Ben Horgan wrote:
> Use the overflow status bit to track overflow on each bandwidth counter
> read and add the counter size to the correction when overflow is detected.
>
> This assumes that only a single overflow has occurred since the last read
> of the counter. Overflow interrupts, on hardware that supports them could
> be used to remove this limitation.
>
> Cc: Zeng Heng <zengheng4@huawei.com>
> Signed-off-by: Ben Horgan <ben.horgan@arm.com>
> ---
> drivers/resctrl/mpam_devices.c | 24 ++++++++++++++++++++++--
> drivers/resctrl/mpam_internal.h | 3 ++-
> 2 files changed, 24 insertions(+), 3 deletions(-)
>

Reviewed-by: Gavin Shan <gshan@redhat.com>