From: Viresh Kumar <viresh.kumar@linaro.org>
To: Andy Tang <andy.tang@nxp.com>
Cc: Doug Smythies <dsmythies@telus.net>,
"'Rafael J. Wysocki'" <rafael@kernel.org>,
"'Rafael J. Wysocki'" <rjw@rjwysocki.net>,
'Linux PM' <linux-pm@vger.kernel.org>
Subject: Re: Ask for help on governor
Date: Wed, 13 Dec 2017 12:25:01 +0530 [thread overview]
Message-ID: <20171213065501.GU25177@vireshk-i7> (raw)
In-Reply-To: <HE1PR0402MB28285FD45E5E6B72C4C1068DF3350@HE1PR0402MB2828.eurprd04.prod.outlook.com>
On 13-12-17, 06:22, Andy Tang wrote:
> Hi,
>
> Thanks you all for help.
> Anyway I found the root cause myself.
Well, I was quite sure that the problem you reported is different than what
Dough was talking about..
> It was caused by commit: 00bfe05889e91b5112893b001e4a47b0a0f8bdd7.
>
> In this commit, the part of code is as below:
> + if (policy_dbs->idle_periods < UINT_MAX) {
> + unsigned int freq_steps = policy_dbs->idle_periods * freq_step;
> +
> + if (requested_freq > freq_steps)
> + requested_freq -= freq_steps;
> + else
> + requested_freq = policy->min;
> +
> + policy_dbs->idle_periods = UINT_MAX;
> + }
>
> On my platform, there are 3 frequency available which are: 1600Mhz, 800Mhz, 400Mhz.
> Freq_steps is 80Mhz.
> Due to this code, the requested_freq is always 480Mhz. Since we want 800Mhz as next target frequency, the cpu frequency can't be changed.
I am not sure I follow what you are saying. The above code is only taking care
of idle periods (i.e. while the CPU was idle and we couldn't decrease the
frequency). If there are no idle periods, then the requested_freq will increase
by 80 MHz every time we try to change the frequency and after the 5th call its
value will become 800 MHz and so we should see an update.
Have you tried reverting the commit 00bfe0588 on top of 4.14? Does it make your
regression go away?
> Please work out a patch to fix this.
Sure we can help, but I didn't understand the root cause yet.
> This issue exists on all our LS* platforms.
LS -> loongson ?
--
viresh
next prev parent reply other threads:[~2017-12-13 6:55 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <HE1PR0402MB282866171A847AE244A9F76CF3340@HE1PR0402MB2828.eurprd04.prod.outlook.com>
2017-12-12 7:30 ` Ask for help on governor Viresh Kumar
2017-12-12 16:18 ` Doug Smythies
2017-12-12 16:51 ` Rafael J. Wysocki
2017-12-13 3:10 ` Doug Smythies
2017-12-13 6:17 ` Viresh Kumar
2017-12-13 6:22 ` Andy Tang
2017-12-13 6:55 ` Viresh Kumar [this message]
2017-12-13 16:13 ` Doug Smythies
2017-12-14 1:21 ` Doug Smythies
2017-12-14 2:42 ` Andy Tang
2017-12-14 18:25 ` Stratos Karafotis
2017-12-15 1:29 ` Doug Smythies
2017-12-15 1:30 ` Doug Smythies
2017-12-15 1:56 ` Andy Tang
2017-12-15 7:37 ` Doug Smythies
2017-12-15 9:00 ` Andy Tang
2017-12-15 14:26 ` Rafael J. Wysocki
2017-12-15 15:53 ` Rafael J. Wysocki
2017-12-15 18:27 ` Doug Smythies
2017-12-15 23:53 ` Rafael J. Wysocki
2017-12-18 1:15 ` [PATCH] cpufreq: governor: Ensure sufficiently large sampling intervals Rafael J. Wysocki
2017-12-18 2:59 ` Andy Tang
2017-12-18 4:38 ` Viresh Kumar
2017-12-18 16:11 ` Doug Smythies
2017-12-18 17:42 ` Rafael J. Wysocki
2017-12-13 16:13 ` Ask for help on governor Doug Smythies
2017-12-13 16:49 ` Doug Smythies
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=20171213065501.GU25177@vireshk-i7 \
--to=viresh.kumar@linaro.org \
--cc=andy.tang@nxp.com \
--cc=dsmythies@telus.net \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=rjw@rjwysocki.net \
/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).