linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* *powersave* governor shown despite disabled in configuration
@ 2018-12-10 15:30 Paul Menzel
  2018-12-11  6:51 ` Dominik Brodowski
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Menzel @ 2018-12-10 15:30 UTC (permalink / raw)
  To: linux-pm; +Cc: Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 1133 bytes --]

Dear Linux folks,


With Linux 4.14.76, the scaling governor *powersave* is shown as
being available despite being disabled in the configuration.

```
$ uname -a
Linux xxx.molgen.mpg.de 4.14.76.mx64.228 #1 SMP Tue Oct 16 19:20:58 CEST 2018 x86_64 GNU/Linux
$ zcat /proc/config.gz |grep CONFIG_CPU_FREQ
CONFIG_CPU_FREQ=y
# CONFIG_CPU_FREQ_STAT is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
# CONFIG_CPU_FREQ_GOV_SCHEDUTIL is not set
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors 
performance powersave
$ cat  /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
```


Kind regards,

Paul


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5174 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: *powersave* governor shown despite disabled in configuration
  2018-12-10 15:30 *powersave* governor shown despite disabled in configuration Paul Menzel
@ 2018-12-11  6:51 ` Dominik Brodowski
  2018-12-12 21:26   ` [solved] " Paul Menzel
  0 siblings, 1 reply; 3+ messages in thread
From: Dominik Brodowski @ 2018-12-11  6:51 UTC (permalink / raw)
  To: Paul Menzel; +Cc: linux-pm, Linux Kernel Mailing List

On Mon, Dec 10, 2018 at 04:30:05PM +0100, Paul Menzel wrote:
> Dear Linux folks,
> 
> 
> With Linux 4.14.76, the scaling governor *powersave* is shown as
> being available despite being disabled in the configuration.

Which cpufreq driver do you use? Presumably intel_pstate? That driver
exposes internal policies / "governors" named "performance" and "powersave",
which are unrelated to CONFIG_CPU_FREQ_GOV_POWERSAVE.

Thanks,
	Dominik

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [solved] *powersave* governor shown despite disabled in configuration
  2018-12-11  6:51 ` Dominik Brodowski
@ 2018-12-12 21:26   ` Paul Menzel
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Menzel @ 2018-12-12 21:26 UTC (permalink / raw)
  To: Dominik Brodowski; +Cc: linux-pm, Linux Kernel Mailing List


Dear Dominik,


Thank you for your quick response.


Am 11.12.18 um 07:51 schrieb Dominik Brodowski:
> On Mon, Dec 10, 2018 at 04:30:05PM +0100, Paul Menzel wrote:

>> With Linux 4.14.76, the scaling governor *powersave* is shown as
>> being available despite being disabled in the configuration.
> 
> Which cpufreq driver do you use? Presumably intel_pstate?

Yes, intel_pstate.

> That driver exposes internal policies / "governors" named 
> "performance" and "powersave", which are unrelated to
> CONFIG_CPU_FREQ_GOV_POWERSAVE.
Indeed, that confused me, and I didn’t read the documentation
carefully enough.

> They are not generic scaling governors, but their names are the same as the
> names of some of those governors.  Moreover, confusingly enough, they generally
> do not work in the same way as the generic governors they share the names with.
> For example, the ``powersave`` P-state selection algorithm provided by
> ``intel_pstate`` is not a counterpart of the generic ``powersave`` governor
> (roughly, it corresponds to the ``schedutil`` and ``ondemand`` governors).
> 
> There are two P-state selection algorithms provided by ``intel_pstate`` in the
> active mode: ``powersave`` and ``performance``.  The way they both operate
> depends on whether or not the hardware-managed P-states (HWP) feature has been
> enabled in the processor and possibly on the processor model.


Kind regards,

Paul


[1]: https://www.kernel.org/doc/html/latest/admin-guide/pm/intel_pstate.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-12 21:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-10 15:30 *powersave* governor shown despite disabled in configuration Paul Menzel
2018-12-11  6:51 ` Dominik Brodowski
2018-12-12 21:26   ` [solved] " Paul Menzel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).