From: Nishanth Menon <nm@ti.com>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
"cpufreq@vger.kernel.org" <cpufreq@vger.kernel.org>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Shawn Guo <shawn.guo@linaro.org>
Subject: Re: [RFC PATCH] cpufreq: cpufreq-cpu0: do not allow transitions with regulators suspended
Date: Fri, 15 Nov 2013 07:33:31 -0600 [thread overview]
Message-ID: <528622AB.1050500@ti.com> (raw)
In-Reply-To: <CAKohpokz6YEqz8ZNmQ77y8K3qvKYu3ffgVmiEcDyh2M9FsDGPg@mail.gmail.com>
On 11/15/2013 04:27 AM, Viresh Kumar wrote:
> On 14 November 2013 22:34, Nishanth Menon <nm@ti.com> wrote:
>> I think it is still too early to do so :(
>
> :)
:D
>
>> equivalent patch: http://pastebin.mozilla.org/3603467 (with minor
>> changes for build)
>>
>> Basic tests: http://pastebin.mozilla.org/3603456 (governor is
>> functional, but governor kicks in early before i2c is resumed)
>>
>> With call stack: http://pastebin.mozilla.org/3603455 to highlight call
>> sequences
>>
>> Seems like we might want to pause governor as early in the suspend
>> sequence as possible to allow SoC and regulator stuff to suspend
>> themselves without cpufreq interfering.. just my 2 cents..
>
> You made me spend a day on this :)
> It wasn't a day's job really but I got into a really hard to crack bug with my
> patch, I was calling __cpufreq_governor() from under write_lock_irqsave
> for cpufreq_driver_lock. And __cpufreq_governor() had:
>
> read_lock_irqsave(&cpufreq_driver_lock, flags);
>
> I wasn't able to suspend my system: ARM, X86.. It simply stopped
> printing anything and I didn't had a clue of what's going on.. Hacked
> everything possible, even kernel/power/suspend.c to return early
> (yeah I used freezer > pm_test as well, but I wanted to return before
> freezing userspace)...
>
> Then somehow I got to know that this is the wrong piece of code :)
Thanks a ton for your efforts in helping come with a generic solution.
>
> But probably I have a solution now to which you can't say:
https://patchwork.kernel.org/patch/3187511/ as a link for the records :)
>
> "I think it is still too early to do so :("
>
> :)
>
> Give it a try and give a Tested-by please :)
>
Definitely - on it.. will feedback further on the patch in proposal.
--
Regards,
Nishanth Menon
next prev parent reply other threads:[~2013-11-15 13:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-24 18:08 [RFC PATCH] cpufreq: cpufreq-cpu0: do not allow transitions with regulators suspended Nishanth Menon
2013-10-24 18:08 ` Nishanth Menon
2013-11-12 6:03 ` Viresh Kumar
2013-11-12 15:11 ` Nishanth Menon
2013-11-13 5:49 ` Viresh Kumar
2013-11-13 15:16 ` Nishanth Menon
2013-11-14 1:25 ` viresh kumar
2013-11-14 14:27 ` Nishanth Menon
2013-11-14 16:46 ` viresh kumar
2013-11-14 17:04 ` Nishanth Menon
2013-11-15 10:27 ` Viresh Kumar
2013-11-15 13:33 ` Nishanth Menon [this message]
2013-11-14 22:00 ` Rafael J. Wysocki
2013-11-15 4:39 ` 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=528622AB.1050500@ti.com \
--to=nm@ti.com \
--cc=cpufreq@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=shawn.guo@linaro.org \
--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.