From: Stefan Wahren <stefan.wahren@i2se.com>
To: Viresh Kumar <viresh.kumar@linaro.org>,
Shawn Guo <shawn.guo@freescale.com>
Cc: Lucas Stach <l.stach@pengutronix.de>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Fabio Estevam <festevam@gmail.com>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>
Subject: Re: cpufreq: Unable to set cpufreq to maximum
Date: Mon, 06 Oct 2014 11:13:36 +0200 [thread overview]
Message-ID: <54325D40.10604@i2se.com> (raw)
In-Reply-To: <CAKohponTCFnOHeELg+vpz-=a3xR7xrppZiuss09a2UGCLCptnQ@mail.gmail.com>
Am 06.10.2014 um 10:50 schrieb Viresh Kumar:
> On 6 October 2014 12:11, Stefan Wahren <stefan.wahren@i2se.com> wrote:
>> Ignoring errors isn't a solution. I have another idea. I've looked a
>> little bit at the code in the cpufreq-(cpu0/dt). Usually the frequencies
>> are rounded down, but in cpu0_set_target() with
>> dev_pm_opp_find_freq_ceil(cpu_dev, &freq_Hz) they are rounded up. From
>> my point of view that's wrong.
> @Shawn ??
>
>> I fixed the problem by decreasing frequency in DT and replacing
>> dev_pm_opp_find_freq_ceil() with dev_pm_opp_find_freq_floor() in
>> cpufreq-cpu0.c . Unfortunatelly this will break all other DTS files with
>> roundings in OPPs.
> I am still not sure how this fixed your problem..
Sorry, about the confusion. The main problem about setting cpufreq to
maximum has been fixed by DT settings. Above i talked about an idea to
fix the confusing warning after fixing the main problem:
root@duckbill:~# modprobe cpufreq-cpu0
[ 48.573808] cpufreq: __cpufreq_add_dev: CPU0: Running at unlisted
freq: 454736 KHz
[ 48.604871] cpufreq: __cpufreq_add_dev: CPU0: Unlisted initial
frequency changed to: 454737 KHz
But the best solution would be a more intelligent function like
dev_pm_opp_find_freq_nearest() which find the OPP with the smallest
frequency distance. So nobody of the DTS users has to care about
frequency rounding.
Currently i'm trying to adapt the DTS file to the driver and that's not
the intention of devicetree.
Stefan
next prev parent reply other threads:[~2014-10-06 9:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-02 13:17 cpufreq: Unable to set cpufreq to maximum Stefan Wahren
2014-10-02 13:59 ` Lucas Stach
2014-10-02 15:01 ` Stefan Wahren
2014-10-02 15:22 ` Lucas Stach
2014-10-02 16:10 ` Stefan Wahren
2014-10-06 4:21 ` Viresh Kumar
2014-10-06 6:41 ` Stefan Wahren
2014-10-06 8:50 ` Viresh Kumar
2014-10-06 9:13 ` Stefan Wahren [this message]
2014-10-06 9:26 ` Viresh Kumar
2014-10-06 10:05 ` Stefan Wahren
2014-10-06 10:16 ` Viresh Kumar
2014-10-06 11:12 ` Stefan Wahren
2014-10-06 11:18 ` Viresh Kumar
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=54325D40.10604@i2se.com \
--to=stefan.wahren@i2se.com \
--cc=festevam@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=l.stach@pengutronix.de \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=shawn.guo@freescale.com \
--cc=viresh.kumar@linaro.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.