From: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
To: sedat.dilek@gmail.com
Cc: "Pandruvada, Srinivas" <srinivas.pandruvada@intel.com>,
linux-pm@vger.kernel.org
Subject: Re: [cpufreq-4.7] New schedutil governor in combination with intel_pstate/x86
Date: Wed, 18 May 2016 01:18:30 +0200 [thread overview]
Message-ID: <573BA6C6.901@intel.com> (raw)
In-Reply-To: <CA+icZUVXffgzNBAMHUdzHzX3pSDm8j=Uq3CAK8zVqsdT0UunNw@mail.gmail.com>
On 5/18/2016 1:16 AM, Sedat Dilek wrote:
> On 5/17/16, Rafael J. Wysocki <rafael.j.wysocki@intel.com> wrote:
>> On 5/17/2016 5:30 PM, Sedat Dilek wrote:
>>> Hi,
>> Hi,
>>
>> You have a broken address of linux-pm (it leads to nowhere).
>>
> Grrr, yeah you are right.
>
>>> I wonder if the Kconfig logic is correct when using
>>> CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y in combination with
>>> intel_pstate driver for X86 architecture
>>>
>>> The available scaling-governors for intel_pstate are: performance
>>> powersave.
>>>
>>> Only acpi-cpufreq can use the new schedutil governor.
>> The right way to say that would be that intel_pstate doesn't work with
>> cpufreq governors.
>>
>> scalling_governor is just used by intel_pstate as an interface for
>> choosing the mode it works in and it always uses its own built-in
>> "governor". And BTW, intel_pstate "powersave" is not the same as the
>> cpufreq's "powersave" even.
>>
>>> Shouldn't it be prevented from selecting schedutil governor as default
>>> when CONFIG_X86_INTEL_PSTATE=y is set?
>> That should apply to "ondemand" too and it doesn't, so no.
>>
>> "schedutil" is just a regular cpufreq governor and it doesn't care about
>> intel_pstate.
>>
>>> It makes no real sense to me.
>>>
>>> Ubuntu has in it's kernels CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y.
>>>
>>> What are the alternatives?
>>> Set CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y.
>> You can choose every cpufreq governor as the default. There are 6 of
>> then now in the tree.
>>
>>> BTW, I cannot change my scaling-driver...
>>> ...intel_pstate -> acpi-cpufreq...
>>>
>>> root# for p in policy0 policy1 policy2 policy3 ; do LC_ALL=C echo -n
>>> acpi-cpufreq > /sys/devices/system/cpu/cpufreq/${p}/scaling_driver ;
>>> done
>>>
>>> Attached is also a modified /etc/init.d/ondemand script from my
>>> Ubuntu/precise AMD64 to use and fallback to schedutil governor.
>> No, you can't change the scaling driver this way.
>>
>> It actually is not possible to change from intel_pstate to anything else
>> now. To run without intel_pstate, you need to add
>> "intel_pstate=disable" to the kernel command line.
>>
> OK, I will try intel_pstate=disable in my k-c-l.
>
> Is there no way to switch between acpi-cpufreq and intel_pstate on the fly?
No, there's no way to do that ATM.
> Did not look in the Kconfig sections...
> Can I built both as modules?
> Then unload and load the other?
No, intel_pstate can't be built as a module.
Thanks,
Rafael
next prev parent reply other threads:[~2016-05-17 23:18 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CA+icZUV0Mxu+fvrmpJmnDjLmxpSd83hDM5od0_1kw4gEm5aaEw@mail.gmail.com>
[not found] ` <573B4C2A.4010205@intel.com>
2016-05-17 23:16 ` [cpufreq-4.7] New schedutil governor in combination with intel_pstate/x86 Sedat Dilek
2016-05-17 23:18 ` Rafael J. Wysocki [this message]
2016-05-19 11:04 ` Sedat Dilek
2016-05-19 11:54 ` Rafael J. Wysocki
[not found] ` <CA+icZUXV3mz9Yr05o5zHLOcXwYRWydtXZOuLnE10Zy3RwzOHUg@mail.gmail.com>
2016-05-19 12:53 ` Rafael J. Wysocki
2016-05-19 13:41 ` Sedat Dilek
2016-05-19 13:46 ` Rafael J. Wysocki
2016-05-19 13:54 ` Sedat Dilek
2016-05-19 14:04 ` Rafael J. Wysocki
2016-05-19 14:24 ` Sedat Dilek
2016-05-19 14:25 ` Rafael J. Wysocki
2016-05-19 14:24 ` Rafael J. Wysocki
2016-05-19 14:50 ` Sedat Dilek
2016-05-19 16:05 ` Rafael J. Wysocki
2016-05-19 16:16 ` Sedat Dilek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=573BA6C6.901@intel.com \
--to=rafael.j.wysocki@intel.com \
--cc=linux-pm@vger.kernel.org \
--cc=sedat.dilek@gmail.com \
--cc=srinivas.pandruvada@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).