From: heiko@sntech.de (Heiko Stübner)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] clk: rockchip: rk3288: Make s2r reliable by switching PLLs to slow mode
Date: Fri, 02 Jan 2015 22:20:12 +0100 [thread overview]
Message-ID: <2520772.QQVueoUhik@phil> (raw)
In-Reply-To: <1419276708-28294-1-git-send-email-dianders@chromium.org>
Am Montag, 22. Dezember 2014, 11:31:48 schrieb Doug Anderson:
> We've been seeing some crashes at resume time on rk3288-based systems.
> On some machines they simply never wake up from suspend. Symptoms
> include:
>
> - System clearly got to sleep OK. Power consumption is low, the PWM
> for the PWM regulator has stopped, and the "global_pwroff" output
> shows that the system is down.
>
> - When system tries to wake up power consumption goes up.
>
> - No kernel resume code (which was left in PMU SRAM) ran. We added
> some basic logging to this code (write to a location in SRAM right
> at resume time) and didn't see the logging run.
>
> It appears that we can fix the problem by slowing down APLL before we
> suspend. On the system I tested things seemed reliable if I disabled
> 1.8GHz and 1.7GHz. The Mask ROM itself tries to slow things down
> (which is why PLLs are in slow mode by the time we get to the kernel),
> but apparently it is crashing before it even gets there.
>
> We'll be super paranoid and not just go down to 1.6GHz but we'll match
> what the Mask ROM seems to be doing and go into slow mode. We'll also
> be safe and put all PLLs (not just APLL) into slow mode (well, except
> DPLL which is needed for SDRAM). We'll even put NPLL into slow mode
> which the Mask ROM didn't do (not that it's used for much important
> stuff at early resume time).
>
> Note that the old Rockchip reference code did something just like
> this, though they jammed it into pm.c instead of putting it in the
> syscore ops of the clock driver.
>
> Signed-off-by: Doug Anderson <dianders@chromium.org>
applied to my clk branch for 3.20
As I already talked about with Doug on IRC (last year), I see this as a sort-
of stop-gap solution till we know the suspend requirements of the older/other
Rockchip SoCs that do suspend slightly different and can generalize the whole
clk suspend handling at this point.
Heiko
prev parent reply other threads:[~2015-01-02 21:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-22 19:31 [PATCH] clk: rockchip: rk3288: Make s2r reliable by switching PLLs to slow mode Doug Anderson
2015-01-02 21:20 ` Heiko Stübner [this message]
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=2520772.QQVueoUhik@phil \
--to=heiko@sntech.de \
--cc=linux-arm-kernel@lists.infradead.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 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).