RE: [PATCH v3 27/29] arm_mpam: Add helper to reset saved mbwu state
From: Shaopeng Tan (Fujitsu)
Date: Wed Oct 29 2025 - 03:15:48 EST
> resctrl expects to reset the bandwidth counters when the filesystem is
> mounted.
>
> To allow this, add a helper that clears the saved mbwu state. Instead of cross
> calling to each CPU that can access the component MSC to write to the counter,
> set a flag that causes it to be zero'd on the the next read. This is easily done by
> forcing a configuration update.
>
> Signed-off-by: James Morse <james.morse@xxxxxxx>
> Reviewed-by: Fenghua Yu <fenghuay@xxxxxxxxx>
> Tested-by: Fenghua Yu <fenghuay@xxxxxxxxxx>
Reviewed-by: Shaopeng Tan <tan.shaopeng@xxxxxxxxxxxxxx>