Skip to content

Commit b9e6a2d

Browse files
Perry Yuanrafaeljw
authored andcommitted
Documentation: amd-pstate: introduce new global sysfs attributes
The amd-pstate driver supports switching working modes at runtime. Users can view and change modes by interacting with the "status" sysfs attribute. 1) check driver mode: $ cat /sys/devices/system/cpu/amd-pstate/status 2) switch mode: `# echo "passive" | sudo tee /sys/devices/system/cpu/amd-pstate/status` or `# echo "active" | sudo tee /sys/devices/system/cpu/amd-pstate/status` Acked-by: Huang Rui <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Reviewed-by: Wyes Karny <[email protected]> Tested-by: Wyes Karny <[email protected]> Signed-off-by: Perry Yuan <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 3ec32b6 commit b9e6a2d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Documentation/admin-guide/pm/amd-pstate.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,35 @@ processor must provide at least nominal performance requested and go higher if c
339339
operating conditions allow.
340340

341341

342+
User Space Interface in ``sysfs``
343+
=================================
344+
345+
Global Attributes
346+
-----------------
347+
348+
``amd-pstate`` exposes several global attributes (files) in ``sysfs`` to
349+
control its functionality at the system level. They are located in the
350+
``/sys/devices/system/cpu/amd-pstate/`` directory and affect all CPUs.
351+
352+
``status``
353+
Operation mode of the driver: "active", "passive" or "disable".
354+
355+
"active"
356+
The driver is functional and in the ``active mode``
357+
358+
"passive"
359+
The driver is functional and in the ``passive mode``
360+
361+
"disable"
362+
The driver is unregistered and not functional now.
363+
364+
This attribute can be written to in order to change the driver's
365+
operation mode or to unregister it. The string written to it must be
366+
one of the possible values of it and, if successful, writing one of
367+
these values to the sysfs file will cause the driver to switch over
368+
to the operation mode represented by that string - or to be
369+
unregistered in the "disable" case.
370+
342371
``cpupower`` tool support for ``amd-pstate``
343372
===============================================
344373

0 commit comments

Comments
 (0)