]> git.ipfire.org Git - thirdparty/linux.git/commit
PM: EM: Add em.yaml and autogen files
authorChangwoo Min <changwoo@igalia.com>
Mon, 20 Oct 2025 22:09:07 +0000 (07:09 +0900)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 22 Oct 2025 19:44:37 +0000 (21:44 +0200)
commitbd26631ccdfd11701fa29e665a7f041875ba9423
tree05a34ea694928968da571022239d3ce4c12ec59e
parentee50b8bb6b5d62fc2ebff872ee7ecb3a9380ec64
PM: EM: Add em.yaml and autogen files

Add a generic netlink spec in YAML format and autogenerate boilerplate
code using ynl-regen.sh to introduce a generic netlink for the energy
model. It allows a userspace program to read the performance domain and
its energy model. It notifies the userspace program when a performance
domain is created or deleted or its energy model is updated through a
multicast interface.

Specifically, it supports two commands:
  - EM_CMD_GET_PDS: Get the list of information for all performance
    domains.
  - EM_CMD_GET_PD_TABLE: Get the energy model table of a performance
    domain.

Also, it supports three notification events:
  - EM_CMD_PD_CREATED: When a performance domain is created.
  - EM_CMD_PD_DELETED: When a performance domain is deleted.
  - EM_CMD_PD_UPDATED: When the energy model table of a performance domain
    is updated.

Finally, update MAINTAINERS to include new files.

Signed-off-by: Changwoo Min <changwoo@igalia.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/20251020220914.320832-4-changwoo@igalia.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/netlink/specs/em.yaml [new file with mode: 0644]
MAINTAINERS
include/uapi/linux/energy_model.h [new file with mode: 0644]
kernel/power/em_netlink_autogen.c [new file with mode: 0644]
kernel/power/em_netlink_autogen.h [new file with mode: 0644]