[PATCH 06/27] arm_mpam: Use __ris_msmon_read() for saving MBWU state

Catalin Marinas catalin.marinas at arm.com
Fri Oct 2 11:54:51 PDT 2026


On Fri, Oct 02, 2026 at 07:52:31PM +0100, Ben Horgan wrote:
> > @@ -1708,17 +1715,36 @@ static int mpam_save_mbwu_state(void *arg)
> >  		cur_ctl = mpam_read_monsel_reg(msc, CFG_MBWU_CTL);
> >  		mpam_write_monsel_reg(msc, CFG_MBWU_CTL, 0);
> 
> __ris_msmon_read_locked() checks the _CTL value and reconfigures on
> mismatch and counters to be lost. This needs to move after the
> __ris_msmon_read_locked().

[...]

> I'd put it here.

Queued already on the for-next/mpam arm64 branch. Please send fixes on
top.

Thanks.

-- 
Catalin



More information about the linux-arm-kernel mailing list