cpufreq: intel_pstate: Use passive mode by default without HWP
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 25 Mar 2020 14:03:35 +0000 (15:03 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 17 Apr 2020 15:04:38 +0000 (17:04 +0200)
commit33aa46f252c703e42c81a76696cd0c240f2281e4
treec08a072d621ba1a1bf033fd9342447e9f9723afa
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
cpufreq: intel_pstate: Use passive mode by default without HWP

After recent changes allowing scale-invariant utilization to be
used on x86, the schedutil governor on top of intel_pstate in the
passive mode should be on par with (or better than) the active mode
"powersave" algorithm of intel_pstate on systems in which
hardware-managed P-states (HWP) are not used, so it should not be
necessary to use the internal scaling algorithm in those cases.

Accordingly, modify intel_pstate to start in the passive mode by
default if the processor at hand does not support HWP of if the driver
is requested to avoid using HWP through the kernel command line.

Among other things, that will allow utilization clamps and the
support for RT/DL tasks in the schedutil governor to be utilized on
systems in which intel_pstate is used.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/admin-guide/pm/intel_pstate.rst
drivers/cpufreq/intel_pstate.c