summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorZbigniew Lukwinski <zbigniew.lukwinski@linux.intel.com>2020-06-17 08:11:07 +0300
committerJae Hyun Yoo <jae.hyun.yoo@linux.intel.com>2021-11-05 10:22:10 +0300
commitbc6765fabf974449d2663896e611347c74461d48 (patch)
tree7ce8782b0ede25d3ffa95791820ec92fa204e2e9 /Documentation
parent18a551ca475231a1c7fa0c0f97b5f8182b832074 (diff)
downloadlinux-bc6765fabf974449d2663896e611347c74461d48.tar.xz
hwmon: peci: cpupower extension
1. Use hwmon peci pcs utils to refactor peci cpupower module. 2. Enable CPU power limit, power limit max (TDP) setting, power limit min setting reading and expose them under power1_cap, power1_cap_max, power1_cap_min. 3. Enable CPU power limit writing through power1_cap. Tested: * on WilsonCity platform, * power1_avarage works as before the change, * power1_cap, power1_cap_max, power1_cap_min work as expected. Signed-off-by: Zbigniew Lukwinski <zbigniew.lukwinski@linux.intel.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/hwmon/peci-cpupower.rst13
1 files changed, 10 insertions, 3 deletions
diff --git a/Documentation/hwmon/peci-cpupower.rst b/Documentation/hwmon/peci-cpupower.rst
index 4d7bd6136ab1..1e1f4e0fd395 100644
--- a/Documentation/hwmon/peci-cpupower.rst
+++ b/Documentation/hwmon/peci-cpupower.rst
@@ -38,15 +38,22 @@ Description
-----------
This driver implements a generic PECI hwmon feature which provides
-average power consumption readings of the CPU package based on energy counter
-accessible using the PECI Client Command Suite via the processor PECI client.
+average power consumption readings of the CPU package based on energy counter.
Power values are average power since last measure given in milli Watt and
will be measurable only when the target CPU is powered on.
+Driver provides current package power limit, maximal (TDP) and minimal power
+setting as well.
+All needed processor registers are accessible using the PECI Client Command
+Suite via the processor PECI client.
+
``sysfs`` interface
-------------------
======================= =======================================================
+power1_label Provides string "cpu power".
power1_average Provides average power since last read in milli Watt.
-power1_label Provides string "Average Power".
+power1_cap Provides current package power limit 1 (PPL1).
+power1_cap_max Provides maximal (TDP) package power setting.
+power1_cap_min Provides minimal package power setting.
======================= =======================================================