162306a36Sopenharmony_ciWhat: /sys/class/powercap/ 262306a36Sopenharmony_ciDate: September 2013 362306a36Sopenharmony_ciKernelVersion: 3.13 462306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 562306a36Sopenharmony_ciDescription: 662306a36Sopenharmony_ci The powercap/ class sub directory belongs to the power cap 762306a36Sopenharmony_ci subsystem. Refer to 862306a36Sopenharmony_ci Documentation/power/powercap/powercap.rst for details. 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ciWhat: /sys/class/powercap/<control type> 1162306a36Sopenharmony_ciDate: September 2013 1262306a36Sopenharmony_ciKernelVersion: 3.13 1362306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 1462306a36Sopenharmony_ciDescription: 1562306a36Sopenharmony_ci A <control type> is a unique name under /sys/class/powercap. 1662306a36Sopenharmony_ci Here <control type> determines how the power is going to be 1762306a36Sopenharmony_ci controlled. A <control type> can contain multiple power zones. 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ciWhat: /sys/class/powercap/<control type>/enabled 2062306a36Sopenharmony_ciDate: September 2013 2162306a36Sopenharmony_ciKernelVersion: 3.13 2262306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 2362306a36Sopenharmony_ciDescription: 2462306a36Sopenharmony_ci This allows to enable/disable power capping for a "control type". 2562306a36Sopenharmony_ci This status affects every power zone using this "control_type. 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ciWhat: /sys/class/powercap/<control type>/<power zone> 2862306a36Sopenharmony_ciDate: September 2013 2962306a36Sopenharmony_ciKernelVersion: 3.13 3062306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 3162306a36Sopenharmony_ciDescription: 3262306a36Sopenharmony_ci A power zone is a single or a collection of devices, which can 3362306a36Sopenharmony_ci be independently monitored and controlled. A power zone sysfs 3462306a36Sopenharmony_ci entry is qualified with the name of the <control type>. 3562306a36Sopenharmony_ci E.g. intel-rapl:0:1:1. 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ciWhat: /sys/class/powercap/<control type>/<power zone>/<child power zone> 3862306a36Sopenharmony_ciDate: September 2013 3962306a36Sopenharmony_ciKernelVersion: 3.13 4062306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 4162306a36Sopenharmony_ciDescription: 4262306a36Sopenharmony_ci Power zones may be organized in a hierarchy in which child 4362306a36Sopenharmony_ci power zones provide monitoring and control for a subset of 4462306a36Sopenharmony_ci devices under the parent. For example, if there is a parent 4562306a36Sopenharmony_ci power zone for a whole CPU package, each CPU core in it can 4662306a36Sopenharmony_ci be a child power zone. 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/name 4962306a36Sopenharmony_ciDate: September 2013 5062306a36Sopenharmony_ciKernelVersion: 3.13 5162306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 5262306a36Sopenharmony_ciDescription: 5362306a36Sopenharmony_ci Specifies the name of this power zone. 5462306a36Sopenharmony_ci 5562306a36Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/energy_uj 5662306a36Sopenharmony_ciDate: September 2013 5762306a36Sopenharmony_ciKernelVersion: 3.13 5862306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 5962306a36Sopenharmony_ciDescription: 6062306a36Sopenharmony_ci Current energy counter in micro-joules. Write "0" to reset. 6162306a36Sopenharmony_ci If the counter can not be reset, then this attribute is 6262306a36Sopenharmony_ci read-only. 6362306a36Sopenharmony_ci 6462306a36Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/max_energy_range_uj 6562306a36Sopenharmony_ciDate: September 2013 6662306a36Sopenharmony_ciKernelVersion: 3.13 6762306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 6862306a36Sopenharmony_ciDescription: 6962306a36Sopenharmony_ci Range of the above energy counter in micro-joules. 7062306a36Sopenharmony_ci 7162306a36Sopenharmony_ci 7262306a36Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/power_uw 7362306a36Sopenharmony_ciDate: September 2013 7462306a36Sopenharmony_ciKernelVersion: 3.13 7562306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 7662306a36Sopenharmony_ciDescription: 7762306a36Sopenharmony_ci Current power in micro-watts. 7862306a36Sopenharmony_ci 7962306a36Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/max_power_range_uw 8062306a36Sopenharmony_ciDate: September 2013 8162306a36Sopenharmony_ciKernelVersion: 3.13 8262306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 8362306a36Sopenharmony_ciDescription: 8462306a36Sopenharmony_ci Range of the above power value in micro-watts. 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/constraint_X_name 8762306a36Sopenharmony_ciDate: September 2013 8862306a36Sopenharmony_ciKernelVersion: 3.13 8962306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 9062306a36Sopenharmony_ciDescription: 9162306a36Sopenharmony_ci Each power zone can define one or more constraints. Each 9262306a36Sopenharmony_ci constraint can have an optional name. Here "X" can have values 9362306a36Sopenharmony_ci from 0 to max integer. 9462306a36Sopenharmony_ci 9562306a36Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/constraint_X_power_limit_uw 9662306a36Sopenharmony_ciDate: September 2013 9762306a36Sopenharmony_ciKernelVersion: 3.13 9862306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 9962306a36Sopenharmony_ciDescription: 10062306a36Sopenharmony_ci Power limit in micro-watts should be applicable for 10162306a36Sopenharmony_ci the time window specified by "constraint_X_time_window_us". 10262306a36Sopenharmony_ci Here "X" can have values from 0 to max integer. 10362306a36Sopenharmony_ci 10462306a36Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/constraint_X_time_window_us 10562306a36Sopenharmony_ciDate: September 2013 10662306a36Sopenharmony_ciKernelVersion: 3.13 10762306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 10862306a36Sopenharmony_ciDescription: 10962306a36Sopenharmony_ci Time window in micro seconds. This is used along with 11062306a36Sopenharmony_ci constraint_X_power_limit_uw to define a power constraint. 11162306a36Sopenharmony_ci Here "X" can have values from 0 to max integer. 11262306a36Sopenharmony_ci 11362306a36Sopenharmony_ci 11462306a36Sopenharmony_ciWhat: /sys/class/powercap/<control type>/.../constraint_X_max_power_uw 11562306a36Sopenharmony_ciDate: September 2013 11662306a36Sopenharmony_ciKernelVersion: 3.13 11762306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 11862306a36Sopenharmony_ciDescription: 11962306a36Sopenharmony_ci Maximum allowed power in micro watts for this constraint. 12062306a36Sopenharmony_ci Here "X" can have values from 0 to max integer. 12162306a36Sopenharmony_ci 12262306a36Sopenharmony_ciWhat: /sys/class/powercap/<control type>/.../constraint_X_min_power_uw 12362306a36Sopenharmony_ciDate: September 2013 12462306a36Sopenharmony_ciKernelVersion: 3.13 12562306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 12662306a36Sopenharmony_ciDescription: 12762306a36Sopenharmony_ci Minimum allowed power in micro watts for this constraint. 12862306a36Sopenharmony_ci Here "X" can have values from 0 to max integer. 12962306a36Sopenharmony_ci 13062306a36Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/constraint_X_max_time_window_us 13162306a36Sopenharmony_ciDate: September 2013 13262306a36Sopenharmony_ciKernelVersion: 3.13 13362306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 13462306a36Sopenharmony_ciDescription: 13562306a36Sopenharmony_ci Maximum allowed time window in micro seconds for this 13662306a36Sopenharmony_ci constraint. Here "X" can have values from 0 to max integer. 13762306a36Sopenharmony_ci 13862306a36Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/constraint_X_min_time_window_us 13962306a36Sopenharmony_ciDate: September 2013 14062306a36Sopenharmony_ciKernelVersion: 3.13 14162306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 14262306a36Sopenharmony_ciDescription: 14362306a36Sopenharmony_ci Minimum allowed time window in micro seconds for this 14462306a36Sopenharmony_ci constraint. Here "X" can have values from 0 to max integer. 14562306a36Sopenharmony_ci 14662306a36Sopenharmony_ciWhat: /sys/class/powercap/.../<power zone>/enabled 14762306a36Sopenharmony_ciDate: September 2013 14862306a36Sopenharmony_ciKernelVersion: 3.13 14962306a36Sopenharmony_ciContact: linux-pm@vger.kernel.org 15062306a36Sopenharmony_ciDescription: 15162306a36Sopenharmony_ci This allows to enable/disable power capping at power zone level. 15262306a36Sopenharmony_ci This applies to current power zone and its children. 153