Re: [PATCH v3 25/29] arm_mpam: Probe for long/lwd mbwu counters

From: Jonathan Cameron
Date: Fri Oct 24 2025 - 14:25:08 EST


On Fri, 17 Oct 2025 18:56:41 +0000
James Morse <james.morse@xxxxxxx> wrote:

> From: Rohit Mathew <rohit.mathew@xxxxxxx>
>
> mpam v0.1 and versions above v1.0 support optional long counter for
> memory bandwidth monitoring. The MPAMF_MBWUMON_IDR register has fields
> indicating support for long counters.
>
> Probe these feature bits.
>
> The mpam_feat_msmon_mbwu feature is used to indicate that bandwidth
> monitors are supported, instead of muddling this with which size of
> bandwidth monitors, add an explicit 31 bit counter feature.
>
> Signed-off-by: Rohit Mathew <rohit.mathew@xxxxxxx>
> [ morse: Added 31bit counter feature to simplify later logic ]
> Signed-off-by: James Morse <james.morse@xxxxxxx>
> Reviewed-by: Ben Horgan <ben.horgan@xxxxxxx>
> Tested-by: Fenghua Yu <fenghuay@xxxxxxxxxx>
With or without the change Ben suggested.
Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>