[PATCH v5 26/34] arm_mpam: Add mpam_msmon_read() to read monitor value
Fenghua Yu
fenghuay at nvidia.com
Tue Nov 18 21:03:18 PST 2025
On 11/17/25 09:00, Ben Horgan wrote:
> From: James Morse <james.morse at arm.com>
>
> Reading a monitor involves configuring what you want to monitor, and
> reading the value. Components made up of multiple MSC may need values
> from each MSC. MSCs may take time to configure, returning 'not ready'.
> The maximum 'not ready' time should have been provided by firmware.
>
> Add mpam_msmon_read() to hide all this. If (one of) the MSC returns
> not ready, then wait the full timeout value before trying again.
>
> CC: Shanker Donthineni <sdonthineni at nvidia.com>
> Cc: Shaopeng Tan (Fujitsu) <tan.shaopeng at fujitsu.com>
> Reviewed-by: Jonathan Cameron <jonathan.cameron at huawei.com>
> Reviewed-by: Gavin Shan <gshan at redhat.com>
> Reviewed-by: Shaopeng Tan <tan.shaopeng at jp.fujitsu.com>
> Tested-by: Shaopeng Tan <tan.shaopeng at jp.fujitsu.com>
> Tested-by: Peter Newman <peternewman at google.com>
> Tested-by: Carl Worth <carl at os.amperecomputing.com>
> Tested-by: Gavin Shan <gshan at redhat.com>
> Tested-by: Zeng Heng <zengheng4 at huawei.com>
> Signed-off-by: James Morse <james.morse at arm.com>
> Signed-off-by: Ben Horgan <ben.horgan at arm.com>
Reviewed-by: Fenghua Yu <fenghuay at nvidia.com>
Thanks.
-Fenghua
More information about the linux-arm-kernel
mailing list