commit | d6ced7cba1e883131f2dd3fc73616930e1082639 | [log] [tgz] |
---|---|---|
author | Chris Cain <cjcain@us.ibm.com> | Mon Oct 17 17:11:07 2022 -0500 |
committer | Chris Cain <cjcain@us.ibm.com> | Thu Nov 14 10:19:12 2024 -0600 |
tree | 0546480bdc353fe86f8c925db48a208c079a56ac | |
parent | 37abe9be91df2bb173c9642a2740a425904d7921 [diff] |
Add CapLimits dbus interface to occ-control app The power cap limits were previously hosted by Settings, but those are system settings and the limits are not really settings (users can not adjust these). This will allow occ-control to update these limits as required but makes them readonly on dbus. occ-control will now be persisting these limits. Tested on Rainier: ''' => busctl -l introspect org.open_power.OCC.Control /xyz/openbmc_project/control/host0/power_cap_limits ... xyz.openbmc_project.Control.Power.CapLimits interface - - - .MaxPowerCapValue property u 2777 emits-change .MinPowerCapValue property u 1286 emits-change .MinSoftPowerCapValue property u 556 emits-change => hexdump /var/lib//openpower-occ-control/powerCapData 0000000 0001 0000 0001 0000 022c 0000 0506 0000 0000010 0ad9 0000 0000014 ''' Change-Id: I75fd98be18c884961f417cc53213b9cb06a82947 Signed-off-by: Chris Cain <cjcain@us.ibm.com>
This service will handle communications to the On-Chip Controller (OCC) on Power processors. The OCC provides processor and memory temperatures, power readings, power cap support, system power mode support, and idle power saver support. OCC Control will be interfacing with the OCC to collect the temperatures and power readings, updating the system power mode, setting power caps, and idle power save parameters.
The service is started automatically when the BMC is started.
This project can be built with meson. The typical meson workflow is: meson builddir && ninja -C builddir.
The server will start automatically after BMC is powered on.
Server status: systemctl status org.open_power.OCC.Control.service
To restart the service: systemctl restart org.open_power.OCC.Control.service
Service files are located in service_files subdirectory.
IBM EnergyScale for Power10 Processor-Based Systems whitepaper: https://www.ibm.com/downloads/cas/E7RL9N4E
OCC Firmware Interface Spec for Power10: https://github.com/open-power/docs/blob/P10/occ/OCC_P10_FW_Interfaces_v1_17.pdf
OCC Firmware: https://github.com/open-power/occ/tree/master-p10
IBM EnergyScale for POWER9 Processor-Based Systems: https://www-01.ibm.com/common/ssi/cgi-bin/ssialias?htmlfid=49019149USEN&
OCC Firmware Interface Spec for POWER9: https://github.com/open-power/docs/blob/P9/occ/OCC_P9_FW_Interfaces.pdf