Skip to content

cpufreq governors and Intel P state driver compatibility

Srinivas Pandruvada linux-pm 2 versions – In review

Get series with b4
b4 am 1449613890-10403-1-git-send-email-srinivas.pandruvada@linux.intel.com

Versions newest first · linked by author and title

  1. v2 Latest4 patches 7 repliesIn review
  2. v14 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4cpufreq: Add configurable generic policiesdrivers/cpufreq/cpufreq.c include/linux/cpufreq.h+9 -11 reply
2/4cpufreq: Add ondemand as a generic policydrivers/cpufreq/cpufreq.c include/linux/cpufreq.h+10 -10 replies
3/4Documentation: cpu-freq: update setpolicy documentationDocumentation/cpu-freq/cpu-drivers.txt+7 -21 reply
4/4cpufreq: intel_pstate: Change powersave to ondemand policydrivers/cpufreq/intel_pstate.c+8 -60 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchViresh Kumar
1/4A-b
2/4A-b
3/4A-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] cpufreq governors and Intel P state driver compatibility

Intel P State driver implements two policies, performance and powersave. The powersave policy is similar to ondemand cpufreq governor when using acpi-cpufreq. This causes lots of confusion among users. This results in invalid comparison of performance when acpi-cpufreq and Intel P state performance is compared.

The reason Intel P state called powersave when it actually implemented ondemand style P State selection, because the cpufreq core only allows two generic policies "performance and powersave" for drivers which has setpolicy() interface. All drivers using this interface are forced to support these two policies.

This patchset adds feature to have configurable generic policies and allows ondemand as one of the policy. With this approach, Intel P state now adds support for ondemand policy and power save policy both in addition to performance.

v2
- Suggestion by Viresh to remove callback to get policies
- Document update for cpufreq cpu-drivers
- Dropped powersave patch, so that it will still default to ondemand as a possible option suggested by Thomas.

If it breaks any distros are user, who were using Intel P state driver with powersave, please comment.

v1
base version

To be done:
Intel P state document update

Srinivas Pandruvada (4):
cpufreq: Add configurable generic policies
cpufreq: Add ondemand as a generic policy
Documentation: cpu-freq: update setpolicy documentation
cpufreq: intel_pstate: Change powersave to ondemand policy

 Documentation/cpu-freq/cpu-drivers.txt |  9 +++++++--
 drivers/cpufreq/cpufreq.c              | 17 ++++++++++++++++-
 drivers/cpufreq/intel_pstate.c         | 14 ++++++++------
 include/linux/cpufreq.h                |  4 +++-
 4 files changed, 34 insertions(+), 10 deletions(-)
Signature · 1 line
2.4.3