Skip to content

Commit 88d2ca6

Browse files
gautshensuperm1
authored andcommitted
Documentation/amd-pstate: Add documentation for amd_pstate_floor_{freq,count}
Add documentation for the sysfs files /sys/devices/system/cpu/cpufreq/policy*/amd_pstate_floor_freq and /sys/devices/system/cpu/cpufreq/policy*/amd_pstate_floor_count. Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Signed-off-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
1 parent a5bc4c4 commit 88d2ca6

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ control its functionality at the system level. They are located in the
242242
/sys/devices/system/cpu/cpufreq/policy0/amd_pstate_hw_prefcore
243243
/sys/devices/system/cpu/cpufreq/policy0/amd_pstate_lowest_nonlinear_freq
244244
/sys/devices/system/cpu/cpufreq/policy0/amd_pstate_max_freq
245+
/sys/devices/system/cpu/cpufreq/policy0/amd_pstate_floor_freq
246+
/sys/devices/system/cpu/cpufreq/policy0/amd_pstate_floor_count
245247
/sys/devices/system/cpu/cpufreq/policy0/amd_pstate_prefcore_ranking
246248

247249

@@ -277,6 +279,36 @@ larger numbers are preferred at the time of reading. This can change at
277279
runtime based on platform conditions. This attribute is read-only. This file
278280
is only visible on platforms which support the preferred core feature.
279281

282+
``amd_pstate_floor_freq``
283+
284+
The floor frequency associated with each CPU. Userspace can write any
285+
value between ``cpuinfo_min_freq`` and ``scaling_max_freq`` into this
286+
file. When the system is under power or thermal constraints, the
287+
platform firmware will attempt to throttle the CPU frequency to the
288+
value specified in ``amd_pstate_floor_freq`` before throttling it
289+
further. This allows userspace to specify different floor frequencies
290+
to different CPUs. For optimal results, threads of the same core
291+
should have the same floor frequency value. This file is only visible
292+
on platforms that support the CPPC Performance Priority feature.
293+
294+
295+
``amd_pstate_floor_count``
296+
297+
The number of distinct Floor Performance levels supported by the
298+
platform. For example, if this value is 2, then the number of unique
299+
values obtained from the command ``cat
300+
/sys/devices/system/cpu/cpufreq/policy*/amd_pstate_floor_freq |
301+
sort -n | uniq`` should be at most this number for the behavior
302+
described in ``amd_pstate_floor_freq`` to take effect. A zero value
303+
implies that the platform supports unlimited floor performance levels.
304+
This file is only visible on platforms that support the CPPC
305+
Performance Priority feature.
306+
307+
**Note**: When ``amd_pstate_floor_count`` is non-zero, the frequency to
308+
which the CPU is throttled under power or thermal constraints is
309+
undefined when the number of unique values of ``amd_pstate_floor_freq``
310+
across all CPUs in the system exceeds ``amd_pstate_floor_count``.
311+
280312
``energy_performance_available_preferences``
281313

282314
A list of all the supported EPP preferences that could be used for

0 commit comments

Comments
 (0)