Re: [PATCH v1 04/11] arm_mpam: Add missing mon_sel locking in MBWU restore

From: Gavin Shan

Date: Thu Jul 16 2026 - 20:56:23 EST


On 7/10/26 9:55 PM, Ben Horgan wrote:
The mon_sel_lock is used to protect the mbwu_state, as well as h/w accesses
that use MPAMCFG_MON_SEL. However, in mpam_restore_mbwu_state() mbwu_state
is accessed without holding the mon_sel_lock.

Add the missing locking.

Fixes: 41e8a14950e1 ("arm_mpam: Track bandwidth counter state for power management")
Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
---
drivers/resctrl/mpam_devices.c | 8 ++++++++
1 file changed, 8 insertions(+)

Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>