18c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/ 28c2ecf20Sopenharmony_ciDate: September 2013 38c2ecf20Sopenharmony_ciKernelVersion: 3.13 48c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 58c2ecf20Sopenharmony_ciDescription: 68c2ecf20Sopenharmony_ci The powercap/ class sub directory belongs to the power cap 78c2ecf20Sopenharmony_ci subsystem. Refer to 88c2ecf20Sopenharmony_ci Documentation/power/powercap/powercap.rst for details. 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/<control type> 118c2ecf20Sopenharmony_ciDate: September 2013 128c2ecf20Sopenharmony_ciKernelVersion: 3.13 138c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 148c2ecf20Sopenharmony_ciDescription: 158c2ecf20Sopenharmony_ci A <control type> is a unique name under /sys/class/powercap. 168c2ecf20Sopenharmony_ci Here <control type> determines how the power is going to be 178c2ecf20Sopenharmony_ci controlled. A <control type> can contain multiple power zones. 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/<control type>/enabled 208c2ecf20Sopenharmony_ciDate: September 2013 218c2ecf20Sopenharmony_ciKernelVersion: 3.13 228c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 238c2ecf20Sopenharmony_ciDescription: 248c2ecf20Sopenharmony_ci This allows to enable/disable power capping for a "control type". 258c2ecf20Sopenharmony_ci This status affects every power zone using this "control_type. 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/<control type>/<power zone> 288c2ecf20Sopenharmony_ciDate: September 2013 298c2ecf20Sopenharmony_ciKernelVersion: 3.13 308c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 318c2ecf20Sopenharmony_ciDescription: 328c2ecf20Sopenharmony_ci A power zone is a single or a collection of devices, which can 338c2ecf20Sopenharmony_ci be independently monitored and controlled. A power zone sysfs 348c2ecf20Sopenharmony_ci entry is qualified with the name of the <control type>. 358c2ecf20Sopenharmony_ci E.g. intel-rapl:0:1:1. 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/<control type>/<power zone>/<child power zone> 388c2ecf20Sopenharmony_ciDate: September 2013 398c2ecf20Sopenharmony_ciKernelVersion: 3.13 408c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 418c2ecf20Sopenharmony_ciDescription: 428c2ecf20Sopenharmony_ci Power zones may be organized in a hierarchy in which child 438c2ecf20Sopenharmony_ci power zones provide monitoring and control for a subset of 448c2ecf20Sopenharmony_ci devices under the parent. For example, if there is a parent 458c2ecf20Sopenharmony_ci power zone for a whole CPU package, each CPU core in it can 468c2ecf20Sopenharmony_ci be a child power zone. 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/name 498c2ecf20Sopenharmony_ciDate: September 2013 508c2ecf20Sopenharmony_ciKernelVersion: 3.13 518c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 528c2ecf20Sopenharmony_ciDescription: 538c2ecf20Sopenharmony_ci Specifies the name of this power zone. 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/energy_uj 568c2ecf20Sopenharmony_ciDate: September 2013 578c2ecf20Sopenharmony_ciKernelVersion: 3.13 588c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 598c2ecf20Sopenharmony_ciDescription: 608c2ecf20Sopenharmony_ci Current energy counter in micro-joules. Write "0" to reset. 618c2ecf20Sopenharmony_ci If the counter can not be reset, then this attribute is 628c2ecf20Sopenharmony_ci read-only. 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/max_energy_range_uj 658c2ecf20Sopenharmony_ciDate: September 2013 668c2ecf20Sopenharmony_ciKernelVersion: 3.13 678c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 688c2ecf20Sopenharmony_ciDescription: 698c2ecf20Sopenharmony_ci Range of the above energy counter in micro-joules. 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/power_uw 738c2ecf20Sopenharmony_ciDate: September 2013 748c2ecf20Sopenharmony_ciKernelVersion: 3.13 758c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 768c2ecf20Sopenharmony_ciDescription: 778c2ecf20Sopenharmony_ci Current power in micro-watts. 788c2ecf20Sopenharmony_ci 798c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/max_power_range_uw 808c2ecf20Sopenharmony_ciDate: September 2013 818c2ecf20Sopenharmony_ciKernelVersion: 3.13 828c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 838c2ecf20Sopenharmony_ciDescription: 848c2ecf20Sopenharmony_ci Range of the above power value in micro-watts. 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/constraint_X_name 878c2ecf20Sopenharmony_ciDate: September 2013 888c2ecf20Sopenharmony_ciKernelVersion: 3.13 898c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 908c2ecf20Sopenharmony_ciDescription: 918c2ecf20Sopenharmony_ci Each power zone can define one or more constraints. Each 928c2ecf20Sopenharmony_ci constraint can have an optional name. Here "X" can have values 938c2ecf20Sopenharmony_ci from 0 to max integer. 948c2ecf20Sopenharmony_ci 958c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/constraint_X_power_limit_uw 968c2ecf20Sopenharmony_ciDate: September 2013 978c2ecf20Sopenharmony_ciKernelVersion: 3.13 988c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 998c2ecf20Sopenharmony_ciDescription: 1008c2ecf20Sopenharmony_ci Power limit in micro-watts should be applicable for 1018c2ecf20Sopenharmony_ci the time window specified by "constraint_X_time_window_us". 1028c2ecf20Sopenharmony_ci Here "X" can have values from 0 to max integer. 1038c2ecf20Sopenharmony_ci 1048c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/constraint_X_time_window_us 1058c2ecf20Sopenharmony_ciDate: September 2013 1068c2ecf20Sopenharmony_ciKernelVersion: 3.13 1078c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 1088c2ecf20Sopenharmony_ciDescription: 1098c2ecf20Sopenharmony_ci Time window in micro seconds. This is used along with 1108c2ecf20Sopenharmony_ci constraint_X_power_limit_uw to define a power constraint. 1118c2ecf20Sopenharmony_ci Here "X" can have values from 0 to max integer. 1128c2ecf20Sopenharmony_ci 1138c2ecf20Sopenharmony_ci 1148c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/<control type>/.../constraint_X_max_power_uw 1158c2ecf20Sopenharmony_ciDate: September 2013 1168c2ecf20Sopenharmony_ciKernelVersion: 3.13 1178c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 1188c2ecf20Sopenharmony_ciDescription: 1198c2ecf20Sopenharmony_ci Maximum allowed power in micro watts for this constraint. 1208c2ecf20Sopenharmony_ci Here "X" can have values from 0 to max integer. 1218c2ecf20Sopenharmony_ci 1228c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/<control type>/.../constraint_X_min_power_uw 1238c2ecf20Sopenharmony_ciDate: September 2013 1248c2ecf20Sopenharmony_ciKernelVersion: 3.13 1258c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 1268c2ecf20Sopenharmony_ciDescription: 1278c2ecf20Sopenharmony_ci Minimum allowed power in micro watts for this constraint. 1288c2ecf20Sopenharmony_ci Here "X" can have values from 0 to max integer. 1298c2ecf20Sopenharmony_ci 1308c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/constraint_X_max_time_window_us 1318c2ecf20Sopenharmony_ciDate: September 2013 1328c2ecf20Sopenharmony_ciKernelVersion: 3.13 1338c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 1348c2ecf20Sopenharmony_ciDescription: 1358c2ecf20Sopenharmony_ci Maximum allowed time window in micro seconds for this 1368c2ecf20Sopenharmony_ci constraint. Here "X" can have values from 0 to max integer. 1378c2ecf20Sopenharmony_ci 1388c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/constraint_X_min_time_window_us 1398c2ecf20Sopenharmony_ciDate: September 2013 1408c2ecf20Sopenharmony_ciKernelVersion: 3.13 1418c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 1428c2ecf20Sopenharmony_ciDescription: 1438c2ecf20Sopenharmony_ci Minimum allowed time window in micro seconds for this 1448c2ecf20Sopenharmony_ci constraint. Here "X" can have values from 0 to max integer. 1458c2ecf20Sopenharmony_ci 1468c2ecf20Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/enabled 1478c2ecf20Sopenharmony_ciDate: September 2013 1488c2ecf20Sopenharmony_ciKernelVersion: 3.13 1498c2ecf20Sopenharmony_ciContact: linux-pm@vger.kernel.org 1508c2ecf20Sopenharmony_ciDescription: 1518c2ecf20Sopenharmony_ci This allows to enable/disable power capping at power zone level. 1528c2ecf20Sopenharmony_ci This applies to current power zone and its children. 153