From: "Heiko Stübner" <heiko@sntech.de>
To: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Cc: mturquette@baylibre.com, sboyd@codeaurora.org,
linux-clk@vger.kernel.org, linux-rockchip@lists.infradead.org,
zhengxing@rock-chips.com, zhangqing@rock-chips.com,
Doug Anderson <dianders@google.com>
Subject: Re: [RFC PATCH 0/3] clk: attempt to keep requested rate on parent changes
Date: Thu, 05 May 2016 17:07:41 +0200 [thread overview]
Message-ID: <4828628.D4nfByUg7D@diego> (raw)
In-Reply-To: <572B4AF8.6070509@collabora.com>
Hi Tomeu,
Am Donnerstag, 5. Mai 2016, 15:30:32 schrieb Tomeu Vizoso:
> On 05/02/2016 06:36 PM, Heiko Stuebner wrote:
> > I remember reading about people discussing that problem in the past, but
> > haven't been able to find another approach to it yet [or I'm just blind
> > as happens to often].
> >
> > Our problem is the following clock structure:
> >
> > [anotherPLL]
> >
> > ------ [div] ----- dclk_vop
> >
> > [ vpll ] --------- hdmi_phy
> >
> >
> > We need to set the vpll dynamically but still want to retain
>
> Guess something is missing here?
looks like I forgot to finish my thought "... the vpll as regular dclk_vop
source".
> > The other option that comes to mind, would be to have a clock-notifier,
> > in the drm driver, but calling clk_set_rate from their looks like it
> > shouldn't work due to the prepare mutex already being held.
> >
> >
> > The whole thing is labeled RFC because while it works for us and solves
> > the problem, I'm not sure if I'm overlooking some important aspect or
> > am interferring with some other planned approach for that issue.
>
> I like this approach very much and wonder in what cases it wouldn't be
> desirable to re-try to achieve the requested rate after a change in an
> ancestor clock.
I guess that is mainly me being overly careful and not overlooking if the
clock-framework can get into any troubled state if all clocks do this, but I
guess it should just work ;-) .
> Besides that, do you know already if it would solve the conflicts
> described by Doug in the thread below?
>
> http://thread.gmane.org/gmane.linux.kernel/1820653/focus=3298
I think the big issue on the rk3288 is, who is actually in charge of
controlling the npll frequency.
On the rk3399 the vpll is supplied unmodified to the hdmiphy, while as a
dclk_vop source it goes through a divider first. So it's pretty clear that the
hdmiphy will control the core frequency while other users need to adapt to
what they get.
On the rk3288 the npll is a possible source to both the hdmi- as well as the
edp-clock (and some others as well), so when it gets adapted dynamically, wo
is going to be in charge and who needs to adapt ... and how do we set this
hierarchy.
Heiko
next prev parent reply other threads:[~2016-05-05 15:07 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-02 16:36 [RFC PATCH 0/3] clk: attempt to keep requested rate on parent changes Heiko Stuebner
2016-05-02 16:36 ` [RFC PATCH 1/3] clk: fix inconsistent use of req_rate Heiko Stuebner
2016-05-02 16:36 ` [RFC PATCH 2/3] clk: adjust clocks to their requested rate after parent changes Heiko Stuebner
2016-05-06 0:35 ` Doug Anderson
2016-05-06 0:49 ` Doug Anderson
2016-05-08 20:34 ` Heiko Stuebner
2016-05-09 11:40 ` Heiko Stuebner
2016-05-09 15:49 ` Doug Anderson
2016-07-05 7:27 ` Elaine Zhang
2016-07-05 22:24 ` Heiko Stuebner
2016-07-06 1:39 ` Elaine Zhang
2016-07-06 23:01 ` Doug Anderson
2016-07-06 22:41 ` Doug Anderson
2016-05-02 16:36 ` [RFC PATCH 3/3] clk: rockchip: make rk3399 vop dclks keep their rate on parent rate changes Heiko Stuebner
2016-05-05 13:30 ` [RFC PATCH 0/3] clk: attempt to keep requested rate on parent changes Tomeu Vizoso
2016-05-05 15:07 ` Heiko Stübner [this message]
2016-05-06 0:46 ` Doug Anderson
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=4828628.D4nfByUg7D@diego \
--to=heiko@sntech.de \
--cc=dianders@google.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@codeaurora.org \
--cc=tomeu.vizoso@collabora.com \
--cc=zhangqing@rock-chips.com \
--cc=zhengxing@rock-chips.com \
/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