/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-firmware-opal-powercap | 1 What: /sys/firmware/opal/powercap 4 Description: Powercap directory for Powernv (P8, P9) servers 9 What: /sys/firmware/opal/powercap/system-powercap 10 /sys/firmware/opal/powercap/system-powercap/powercap-min 11 /sys/firmware/opal/powercap/system-powercap/powercap-max 12 /sys/firmware/opal/powercap/system-powercap/powercap-current 15 Description: System powercap directory and attributes applicable for 18 This directory provides powercap information. It 21 - powercap-min : This file provides the minimum 22 possible powercap in Watt units [all …]
|
H A D | sysfs-class-powercap | 1 What: /sys/class/powercap/ 6 The powercap/ class sub directory belongs to the power cap 8 Documentation/power/powercap/powercap.rst for details. 10 What: /sys/class/powercap/<control type> 15 A <control type> is a unique name under /sys/class/powercap. 19 What: /sys/class/powercap/<control type>/enabled 27 What: /sys/class/powercap/<control type>/<power zone> 37 What: /sys/class/powercap/<control type>/<power zone>/<child power zone> 48 What: /sys/class/powercap/.../<power zone>/name 55 What: /sys/class/powercap/.../<power zone>/energy_uj [all …]
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | opal-powercap.c | 3 * PowerNV OPAL Powercap interface 8 #define pr_fmt(fmt) "opal-powercap: " fmt 144 struct device_node *powercap, *node; in opal_powercap_init() local 147 powercap = of_find_compatible_node(NULL, NULL, "ibm,opal-powercap"); in opal_powercap_init() 148 if (!powercap) { in opal_powercap_init() 149 pr_devel("Powercap node not found\n"); in opal_powercap_init() 153 pcaps = kcalloc(of_get_child_count(powercap), sizeof(*pcaps), in opal_powercap_init() 158 powercap_kobj = kobject_create_and_add("powercap", opal_kobj); in opal_powercap_init() 160 pr_warn("Failed to create powercap kobject\n"); in opal_powercap_init() 165 for_each_child_of_node(powercap, node) { in opal_powercap_init() [all …]
|
/openbmc/linux/tools/power/cpupower/man/ |
H A D | cpupower-powercap-info.1 | 1 .TH CPUPOWER\-POWERCAP\-INFO "1" "05/08/2016" "" "cpupower Manual" 3 cpupower\-powercap\-info \- Shows powercapping related kernel and hardware configurations 6 .B cpupower powercap-info 9 \fBcpupower powercap-info \fP shows kernel powercapping subsystem information. 20 Documentation/power/powercap/powercap.rst
|
/openbmc/linux/drivers/powercap/ |
H A D | Kconfig | 6 menuconfig POWERCAP config 7 bool "Generic powercap sysfs driver" 17 if POWERCAP 64 tristate "ARM SCMI Powercap driver" 67 This enables support for the ARM Powercap based on ARM SCMI 68 Powercap protocol. 70 ARM SCMI Powercap protocol allows power limits to be enforced 71 and monitored against the SCMI Powercap domains advertised as
|
H A D | arm_scmi_powercap.c | 3 * SCMI Powercap support. 13 #include <linux/powercap.h> 332 * scmi_zones_register- Register SCMI powercap zones starting from parent zones 335 * @pr: A reference to the root powercap zones descriptors 337 * When registering SCMI powercap zones with the powercap framework we should 341 * Unfortunately we cannot assume that the array of available SCMI powercap 345 * This function, given the set of SCMI powercap zones to register, takes care 346 * to walk the SCMI powercap zones trees up to the root registering any 356 * leaves in the SCMI powercap zones hierarchy: any non-leaf invalid zone causes 358 * powercap zones hierarchy if some of the internal nodes are missing. [all …]
|
H A D | dtpm.c | 7 * The powercap based Dynamic Thermal Power Management framework 23 #include <linux/powercap.h> 333 * Call the underlying powercap unregister function. That will call 334 * the release callback of the powercap zone. 351 * then the registration will fail. The powercap controller must be 363 * Other negative values are reported back from the powercap framework 529 * tree in the sysfs filesystem under the powercap dtpm entry.
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Control/Power/ |
H A D | Cap.interface.yaml | 5 - name: PowerCap 15 Power cap enable. Set to true to enable the PowerCap, false to 25 description: The Minimum supported PowerCap setting. 32 description: The Maximum supported PowerCap setting. 40 Minimum supported soft user PowerCap setting. The min soft user 41 PowerCap value is normally less than or equal to the MinPowerCapValue. 42 When the PowerCap is set to any value between MinSoftPowerCapValue and
|
H A D | CapLimits.interface.yaml | 10 description: The Minimum supported PowerCap setting. 17 description: The Maximum supported PowerCap setting. 25 Minimum supported soft user PowerCap setting. The min soft user 26 PowerCap value is normally less than or equal to the MinPowerCapValue. 27 When the PowerCap is set to any value between MinSoftPowerCapValue and
|
/openbmc/openpower-occ-control/ |
H A D | powercap.cpp | 4 #include <powercap.hpp> 13 namespace powercap namespace 19 constexpr auto POWER_CAP_PROP = "PowerCap"; 104 void PowerCap::updatePcapBounds() in updatePcapBounds() 187 … "updatePcapBounds: user powercap mismatch (hwmon:{HCAP}W, bdus:{DCAP}W) - using dbus", in updatePcapBounds() 202 "updatePcapBounds: user powercap {CAP}W is outside bounds " in updatePcapBounds() 209 "updatePcapBounds: Updating user powercap from {OLD} to {NEW}W", in updatePcapBounds() 219 "updatePcapBounds: Failed to update user powercap due to {ERR}", in updatePcapBounds() 227 uint32_t PowerCap::getOccInput(uint32_t pcap, bool pcapEnabled) in getOccInput() 240 uint32_t PowerCap::getPcap() in getPcap() [all …]
|
H A D | powercap.hpp | 20 namespace powercap namespace 115 /** @class PowerCap 123 class PowerCap : public CapLimitsInterface class 126 /** @brief PowerCap object to inform occ of changes to cap 134 explicit PowerCap(Status& occStatus) : in PowerCap() function in open_power::occ::powercap::PowerCap 145 std::bind(std::mem_fn(&PowerCap::pcapChanged), this, in PowerCap() 238 } // namespace powercap
|
/openbmc/linux/Documentation/driver-api/thermal/ |
H A D | intel_dptf.rst | 134 Refer to Documentation/power/powercap/powercap.rst for powercap 138 Maximum powercap sysfs constraint_0_power_limit_uw for Intel RAPL 144 Minimum powercap sysfs constraint_0_power_limit_uw for Intel RAPL 147 Minimum powercap sysfs constraint_0_time_window_us for Intel RAPL 150 Maximum powercap sysfs constraint_0_time_window_us for Intel RAPL 153 Maximum powercap sysfs constraint_1_power_limit_uw for Intel RAPL 159 Minimum powercap sysfs constraint_1_power_limit_uw for Intel RAPL 162 Minimum powercap sysfs constraint_1_time_window_us for Intel RAPL 165 Maximum powercap sysfs constraint_1_time_window_us for Intel RAPL
|
/openbmc/linux/Documentation/power/ |
H A D | index.rst | 32 powercap/powercap 33 powercap/dtpm
|
/openbmc/linux/Documentation/translations/zh_CN/power/ |
H A D | index.rst | 42 * powercap/powercap 43 * powercap/dtpm
|
/openbmc/linux/tools/power/cpupower/lib/ |
H A D | powercap.h | 10 #define PATH_TO_POWERCAP "/sys/devices/virtual/powercap" 11 #define PATH_TO_RAPL "/sys/devices/virtual/powercap/intel-rapl" 12 #define PATH_TO_RAPL_CLASS "/sys/devices/virtual/powercap/intel-rapl"
|
/openbmc/openpower-occ-control/test/ |
H A D | utest.cpp | 1 #include "powercap.hpp" 41 powercap::PowerCap pcap;
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | power.hpp | 68 "xyz.openbmc_project.Control.Power.Cap", "PowerCap", in afterGetPowerCapEnable() 147 double powerCap = 0.0; in afterPowerCapSettingGet() local 162 else if (property.first == "PowerCap") in afterPowerCapSettingGet() 170 powerCap = *d; in afterPowerCapSettingGet() 174 powerCap = static_cast<double>(*i); in afterPowerCapSettingGet() 178 powerCap = *u; in afterPowerCapSettingGet() 203 powerCap * std::pow(10, scale); in afterPowerCapSettingGet()
|
/openbmc/linux/tools/power/cpupower/ |
H A D | Makefile | 137 utils/cpuidle-set.o utils/powercap-info.o 148 lib/powercap.h 150 lib/powercap.c 152 lib/powercap.o 283 $(INSTALL_DATA) lib/powercap.h $(DESTDIR)${includedir}/powercap.h 300 $(INSTALL_DATA) -D man/cpupower-powercap-info.1 $(DESTDIR)${mandir}/man1/cpupower-powercap-info.1 330 - rm -f $(DESTDIR)${mandir}/man1/cpupower-powercap-info.1
|
/openbmc/linux/Documentation/power/powercap/ |
H A D | dtpm.rst | 32 The DTPM framework relies on the powercap framework to create the 33 powercap entries in the sysfs directory and implement the backend 126 powercap framework. Thus the sysfs interface is the same, please refer 127 to the powercap documentation for further details. 193 The registration of the dtpm node is done with the powercap
|
/openbmc/openbmc-test-automation/data/ |
H A D | Palmetto.py | 356 0x33: "/org/openbmc/sensors/host/PowerCap", 409 "object_path": "powercap/curr_cap", 415 "object_path": "powercap/system_power", 421 "object_path": "powercap/max_cap", 427 "object_path": "powercap/min_cap", 433 "object_path": "powercap/n_cap", 439 "object_path": "powercap/user_cap", 459 "class": "PowerCap",
|
/openbmc/linux/tools/power/cpupower/utils/ |
H A D | powercap-info.c | 16 #include "powercap.h" 76 printf(_("Powercap domain hierarchy:\n\n")); in powercap_show() 80 printf(_("No powercap info found\n")); in powercap_show()
|
/openbmc/linux/tools/power/cpupower/utils/idle_monitor/ |
H A D | rapl_monitor.c | 19 #include "powercap.h" 123 dprint("Powercap domain hierarchy:\n\n"); in rapl_register() 127 dprint("No powercap info found\n"); in rapl_register()
|
/openbmc/linux/include/linux/ |
H A D | powercap.h | 3 * powercap.h: Data types and headers for sysfs power capping interface 14 * A power cap class device can contain multiple powercap control_types. 47 * struct powercap_control_type - Defines a powercap control_type 60 * Defines powercap control_type. This acts as a container for power 236 * structure storage. If this is NULL, powercap framework 272 * storage. If this is NULL, powercap framework will allocate
|
/openbmc/linux/drivers/firmware/arm_scmi/ |
H A D | powercap.c | 3 * System Control and Management Interface (SCMI) Powercap Protocol 8 #define pr_fmt(fmt) "SCMI Notifications POWERCAP - " fmt 377 "Powercap ID %d CAP set async to %u\n", in scmi_powercap_xfer_cap_set() 417 /* Save the last explicitly set non-zero powercap value */ in __scmi_powercap_cap_set() 431 * Disallow zero as a possible explicitly requested powercap: in scmi_powercap_cap_set() 626 /* Cannot enable with a zero powercap. */ in scmi_powercap_cap_enable_set() 643 * powercap limit requested by other agents. in scmi_powercap_cap_enable_set() 927 dev_dbg(ph->dev, "Powercap Version %d.%d\n", in scmi_powercap_protocol_init() 951 * the whole Powercap protocol initialization failure: this way the in scmi_powercap_protocol_init() 952 * reported Powercap domains are all assured, when accessed, to be well in scmi_powercap_protocol_init() [all …]
|
/openbmc/phosphor-webui/app/server-control/controllers/ |
H A D | power-usage-controller.js | 51 if (!$scope.power_cap.PowerCap) { 79 return APIUtils.setPowerCap($scope.power_cap.PowerCap)
|