Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1701513 > unrolled thread
| Started by | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| First post | 2017-08-01 23:20 +0200 |
| Last post | 2017-08-02 16:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [RFC 06/12] Clk: qcom: support for dynamic updating the PLL Stephen Boyd <sboyd@codeaurora.org> - 2017-08-01 23:20 +0200
Re: [RFC 06/12] Clk: qcom: support for dynamic updating the PLL Abhishek Sahu <absahu@codeaurora.org> - 2017-08-02 16:00 +0200
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Date | 2017-08-01 23:20 +0200 |
| Subject | Re: [RFC 06/12] Clk: qcom: support for dynamic updating the PLL |
| Message-ID | <u9MK6-L9-21@gated-at.bofh.it> |
On 07/30, Abhishek Sahu wrote: > On 2017-07-29 00:04, Stephen Boyd wrote: > >On 07/27, Abhishek Sahu wrote: > >>Some of the Alpha PLL’s support dynamic update in which the > >>frequency can be changed dynamically without turning off the PLL. > >> > >>This dynamic update requires the following sequence > >> > >>1. Write the desired values to pll_l_val and pll_alpha_val. > >>2. Toggle pll_latch_input from low to high. > >>3. Wait for pll_ack_latch to transition from low to high. > >> The new L and alpha values have been latched. It make > >> take some time for the PLL to fully settle with these > >> new values. > >>4. Pull pll_latch_input low. > >> > >>Signed-off-by: Abhishek Sahu <absahu@codeaurora.org> > > > >I think Rajendra has a similar patch that was sent. Is this the > >same? Can you please look on the list and find it and compare? > > Checked the list. Rajendra has two patches > > 1. https://www.spinics.net/lists/linux-arm-msm/msg23349.html > > Yes my patch does the same thing with minor diffs. > My patch checks PLL_UPDATE_BYPASS and handles both > the cases. We can merge both the patches. I will check > with Rajendra and will work on this merge. Ok. > > 2. Following patch fixes different issue although flag name > is common. > > https://patchwork.kernel.org/patch/9662917/ > > Shall I include this patch in my patch series but not > sure we can directly turn off the PLL inside the PLL > set rate operation since it will turn the PLL off for > all its users. > Hopefully the users of a PLL that doesn't support dynamic rate update can accept the fact that the clk will turn off while the rate is reprogrammed. At least that seems to be true for Taniya in that patch set. If it isn't true for your hardware, then don't specify the flag? Or is the problem that you may not have the flag set for certain PLLs that you're supporting? -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
[toc] | [next] | [standalone]
| From | Abhishek Sahu <absahu@codeaurora.org> |
|---|---|
| Date | 2017-08-02 16:00 +0200 |
| Message-ID | <ua2lR-281-31@gated-at.bofh.it> |
| In reply to | #1701513 |
On 2017-08-02 02:42, Stephen Boyd wrote: > On 07/30, Abhishek Sahu wrote: >> On 2017-07-29 00:04, Stephen Boyd wrote: >> >On 07/27, Abhishek Sahu wrote: >> 2. Following patch fixes different issue although flag name >> is common. >> >> https://patchwork.kernel.org/patch/9662917/ >> >> Shall I include this patch in my patch series but not >> sure we can directly turn off the PLL inside the PLL >> set rate operation since it will turn the PLL off for >> all its users. >> > > Hopefully the users of a PLL that doesn't support dynamic rate > update can accept the fact that the clk will turn off while the > rate is reprogrammed. At least that seems to be true for Taniya > in that patch set. If it isn't true for your hardware, then don't > specify the flag? Or is the problem that you may not have the > flag set for certain PLLs that you're supporting? The turning off PLL will happen in case of flag is not set. The turning off PLL in set rate is unsafe. If this PLL is driving multiple RCG's and one of the RCG is changing the PLL frequency by its clk_set_rate with CLK_SET_RATE_PARENT, then all the RCG's clock will go off for some time and it may trigger crash/silent reboot. If the user is aware, then it can turn off the clock first, then do the set rate and then it can enable again. In PLL set_rate we can check if PLL is enabled and can return EBUSY error.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web