[PATCH v6 06/12] firmware: arm_scmi: Extend powercap report to include MAI
Philip Radford
philip.radford at arm.com
Wed May 20 01:58:47 PDT 2026
On Mon, May 18, 2026 at 02:52:28PM +0100, Philip Radford wrote:
> Extend scmi_powercap_meas_changed_report to include MAI change
> notifications.
>
> Signed-off-by: Philip Radford <philip.radford at arm.com>
> ---
> V5->V6
> - Re-worded existing comment for POWERCAP_MEASUREMENTS_NOTIFY
> - Added define for V2/V3 sizes
> - Used new definitions
> ---
> drivers/firmware/arm_scmi/powercap.c | 28 +++++++++++++++-------------
> include/linux/scmi_protocol.h | 1 +
> 2 files changed, 16 insertions(+), 13 deletions(-)
>
> diff --git a/drivers/firmware/arm_scmi/powercap.c b/drivers/firmware/arm_scmi/powercap.c
> index 1d1188e98d49..fdfaf03277ab 100644
> --- a/drivers/firmware/arm_scmi/powercap.c
> +++ b/drivers/firmware/arm_scmi/powercap.c
> @@ -11,6 +11,7 @@
> #include <linux/io.h>
> #include <linux/module.h>
> #include <linux/scmi_protocol.h>
> +#include <linux/stddef.h>
>
> #include <trace/events/scmi.h>
>
> @@ -21,6 +22,8 @@
> #define SCMI_PROTOCOL_SUPPORTED_VERSION 0x30000
>
> #define CPL0 0
> +#define SZ_V2 (sizeof(struct scmi_powercap_meas_changed_notify_payld))
> +#define SZ_V3 (SZ_V2 - sizeof(__le32))
>
Apologies all,
After posting I have realised that I mislabelled these macros where SZ_V2
should be the smaller of the two.
This will be fixed in a new version along with any further comments.
Sorry again,
Phil
More information about the linux-arm-kernel
mailing list