From: heiko@sntech.de (Heiko Stuebner)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] clk: rockchip: Set "ignore unused" for PMU M0 clocks on rk3399
Date: Tue, 21 Feb 2017 18:47:13 +0100 [thread overview]
Message-ID: <6585236.hCVu3AsgCt@phil> (raw)
In-Reply-To: <20170214210114.5846-1-dianders@chromium.org>
Am Dienstag, 14. Februar 2017, 13:01:14 CET schrieb Douglas Anderson:
> The PMU Cortex M0 on rk3399 is intended to be used for things like
> DDRFreq transitions, suspend/resume, and other things that are the
> purview of ARM Trusted Firmware and not the kernel. As such, the
> kernel shouldn't be messing with the clocks. Add CLK_IGNORE_UNUSED to
> these clocks.
>
> Without this change, the following was observed on a Chromebook with a
> rk3399 (using not-yet-upstream ARM Trusted Firmware code and
> not-yet-upstream kernel code based on kernel-4.4):
>
> 1. We init the clock framework.
>
> 2. We start up "DDRFreq", which causes ATF to occasionally fire up the
> M0 for transitions. Each time ATF fires up the M0 it will turn on
> these clocks and each time it is done it will turn them off.
>
> 3. We finally get to the the part of the kernel that calls
> clk_disable_unused() and we disables the clocks.
>
> You can see the race above. Basically everything is fine as long as
> ARM Trusted Firmware isn't starting up the M0 at exactly the same time
> that the kernel is disabling unused clocks. ...but if the race
> happens then we go boom.
>
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
applied for 4.12
Thanks
Heiko
prev parent reply other threads:[~2017-02-21 17:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-14 21:01 [PATCH] clk: rockchip: Set "ignore unused" for PMU M0 clocks on rk3399 Douglas Anderson
2017-02-15 15:27 ` Javier Martinez Canillas
2017-02-15 16:46 ` Doug Anderson
2017-02-15 17:01 ` Heiko Stübner
2017-02-15 17:06 ` Javier Martinez Canillas
2017-02-21 17:47 ` Heiko Stuebner [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=6585236.hCVu3AsgCt@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).