Subject: Re: [PATCH 31/33] arm_mpam: Add helper to reset saved mbwu state

From: Jonathan Cameron <[email-masked]>
Date: Mon, 10 Nov 2025 17:34:42 +0000

On Fri, 7 Nov 2025 12:34:48 +0000
Ben Horgan <[email-masked]> wrote:

> From: James Morse <[email-masked]>
> 
> 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 <[email-masked]>
> Reviewed-by: Fenghua Yu <[email-masked]>
> Tested-by: Fenghua Yu <[email-masked]>
> Cc: Peter Newman <[email-masked]>
> Signed-off-by: Ben Horgan <[email-masked]>
Reviewed-by: Jonathan Cameron <[email-masked]>