[PATCH 26/33] arm_mpam: Add mpam_msmon_read() to read monitor value

Shaopeng Tan (Fujitsu) tan.shaopeng at fujitsu.com
Tue Nov 11 21:33:51 PST 2025


> 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>
> Tested-by: Shaopeng Tan <tan.shaopeng at jp.fujitsu.com>
> Tested-by: Peter Newman <peternewman at google.com>
> Signed-off-by: James Morse <james.morse at arm.com>
> Signed-off-by: Ben Horgan <ben.horgan at arm.com>

Reviewed-by: Shaopeng Tan <tan.shaopeng at jp.fujitsu.com>



More information about the linux-arm-kernel mailing list