[RFC 0/1] ppc64_cpu: Add support to parse PAPR information for

7 views
Skip to first unread message

Pratik R. Sampat

<psampat@linux.ibm.com>
unread,
Jul 29, 2021, 8:02:53 AM7/29/21
to powerpc-utils-devel@googlegroups.com, psampat@linux.ibm.com, pratik.r.sampat@gmail.com
Introduction of a new interface to parse energy and frequency
information exported to "/sys/firmware/papr/energy_scale_info/" using
the new H_CALL H_GET_ENERGY_SCALE_INFO.

Previously H_GET_EM_PARMS exported this information encoded within
"power_mode_data", however this interface will be deprecated P10
onwards.

The new interface exports information as follows:
/sys/firmware/papr/energy_scale_info/
|-- <id>/
|-- desc
|-- value
|-- value_desc (if exists)
|-- <id>/
|-- desc
|-- value
|-- value_desc (if exists)

The kernel side of patches have been posted the Linux Kernel Mailing
list and is currently in its 7th iteration:
https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=254841

Pratik R. Sampat (1):
ppc64_cpu: Add support to parse PAPR information for energy and
frequency

src/ppc64_cpu.c | 117 ++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 113 insertions(+), 4 deletions(-)

--
2.31.1

Reply all
Reply to author
Forward
0 new messages