From: Viresh Kumar <viresh.kumar@linaro.org>
To: "Zengtao (B)" <prime.zeng@hisilicon.com>
Cc: "rjw@rjwysocki.net" <rjw@rjwysocki.net>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>
Subject: Re: cpufreq_resume warning issue
Date: Mon, 21 Mar 2016 13:02:28 +0530 [thread overview]
Message-ID: <20160321073228.GC1803@vireshk-i7> (raw)
In-Reply-To: <678F3D1BB717D949B966B68EAEB446ED0A6D8624@SZXEMA509-MBX.china.huawei.com>
On 21-03-16, 03:43, Zengtao (B) wrote:
> Hi all:
> I have got the warning in the following code,
> /*
> * schedule call cpufreq_update_policy() for first-online CPU, as that
> * wouldn't be hotplugged-out on suspend. It will verify that the
> * current freq is in sync with what we believe it to be.
> */
> policy = cpufreq_cpu_get_raw(cpumask_first(cpu_online_mask));
> if (WARN_ON(!policy))
> return;
> schedule_work(&policy->update);
>
> in my platform, two cores, core 1 don't have the dvfs feature, but core 2 has.
> So I think that is the warning reason.
>
> My question:
> 1. Do we need to warning here?
Yes. But your system just broke an assumption we always had. i.e. all the CPUs
take part in DVFS :)
And its not just about this piece of code, but everything else that cpufreq
does.
For example, cpufreq core must be calling ->init() callback for CPU0 as well..
What are you doing there ?
I am not sure what's the right way of handling this thing is going to be.
Why doesn't you have DVFS for both the cores ?
--
viresh
next prev parent reply other threads:[~2016-03-21 7:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-21 3:43 cpufreq_resume warning issue Zengtao (B)
2016-03-21 7:32 ` Viresh Kumar [this message]
2016-03-21 8:05 ` Zengtao (B)
2016-03-21 8:34 ` Viresh Kumar
2016-03-21 9:07 ` Zengtao (B)
2016-03-21 9:09 ` Viresh Kumar
2016-03-21 9:26 ` Zengtao (B)
2016-03-21 9:44 ` Viresh Kumar
2016-03-22 9:58 ` Zengtao (B)
2016-03-22 10:32 ` 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=20160321073228.GC1803@vireshk-i7 \
--to=viresh.kumar@linaro.org \
--cc=linux-pm@vger.kernel.org \
--cc=prime.zeng@hisilicon.com \
--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).