Re: [PATCH v1 06/11] arm_mpam: Use __ris_msmon_read() for saving MBWU state
From: Gavin Shan
Date: Thu Jul 16 2026 - 20:56:01 EST
On 7/10/26 9:55 PM, Ben Horgan wrote:
mbwu_save_mbwu_state() reads the MBWU counters and adds that to a saved
correction value. However, the type of counter to read is determined by the
RIS rather than the class and overflow is not taken into account. Fix this
and mitigate against further divergence by using the same helper as used
for user reads, __ris_msmon_read().
Fixes: 41e8a14950e1 ("arm_mpam: Track bandwidth counter state for power management")
Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
---
drivers/resctrl/mpam_devices.c | 33 +++++++++++++++++++++------------
1 file changed, 21 insertions(+), 12 deletions(-)
Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>