From: Johan Hovold <johan@kernel.org>
To: Taniya Das <quic_tdas@quicinc.com>
Cc: Bjorn Andersson <andersson@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Ajit Pandey <quic_ajipan@quicinc.com>,
Imran Shaik <quic_imrashai@quicinc.com>,
Jagadeesh Kona <quic_jkona@quicinc.com>,
linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/3] Add support to reconfigure PLL
Date: Fri, 14 Feb 2025 10:02:04 +0100 [thread overview]
Message-ID: <Z68GjM-X7Qkpyv7B@hovoldconsulting.com> (raw)
In-Reply-To: <15d16afd-8e1a-479f-9573-8845d1408178@quicinc.com>
On Tue, Feb 04, 2025 at 11:13:08PM +0530, Taniya Das wrote:
> On 2/4/2025 3:38 PM, Johan Hovold wrote:
> > On Mon, Jan 13, 2025 at 10:57:03PM +0530, Taniya Das wrote:
> >> During boot-up, there is a possibility that the PLL configuration might
> >> be missed even after invoking pll_configure() from the clock controller
> >> probe. This is often due to the PLL being connected to rail or rails
> >> that are in an OFF state and current clock controller also cannot vote
> >> on multiple rails. As a result, the PLL may be enabled with suboptimal
> >> settings, leading to functional issues.
> >>
> >> The PLL configuration, now part of clk_alpha_pll, can be reused to
> >> reconfigure the PLL to a known good state before scaling for frequency.
> >> The 'clk_alpha_pll_reconfigure()' can be updated to support more PLLs
> >> in future.
> >
> > This sounds like a hack. You already describe the underlying problem (and
> > indirectly its solution) in the first paragraph above, namely that the
> > video clock controller has not enabled the power domain needed to
> > configure the PLL.
>
> This is not a hack, but another alternative way to ensure the PLL is
> configured to the right configuration before being used.
I say it's a hack since it sounds like since you're relying on some
other entity to have enabled resources that this clock controller
depends on.
> > I believe support for clock controllers that need to enable multiple
> > power domains is on its way into 6.15:
> >
> > https://lore.kernel.org/lkml/20250117-b4-linux-next-24-11-18-clock-multiple-power-domains-v10-0-13f2bb656dad@linaro.org/
> >
> > Perhaps that's what you need to fix this properly.
>
> Yes, this is just to add a dependency on clock controller to put the
> rail vote, but this series does not fully solve the clock controller's
> PLL requirement problems.
Why not? What else is needed beyond enabling the video (?) power domain
before configuring the PLL?
Johan
prev parent reply other threads:[~2025-02-14 9:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-13 17:27 [PATCH 0/3] Add support to reconfigure PLL Taniya Das
2025-01-13 17:27 ` [PATCH 1/3] clk: qcom: clk-alpha-pll: Integrate PLL configuration into PLL structure Taniya Das
2025-01-13 17:27 ` [PATCH 2/3] clk: qcom: clk-alpha-pll: Add support to reconfigure PLL Taniya Das
2025-01-13 17:27 ` [PATCH 3/3] clk: qcom: videocc-sm8550: Update the pll config for Video PLLs Taniya Das
2025-01-22 15:38 ` [PATCH 0/3] Add support to reconfigure PLL Stefan Schmidt
2025-02-04 10:08 ` Johan Hovold
2025-02-04 17:43 ` Taniya Das
2025-02-14 9:02 ` Johan Hovold [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=Z68GjM-X7Qkpyv7B@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=andersson@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=quic_ajipan@quicinc.com \
--cc=quic_imrashai@quicinc.com \
--cc=quic_jkona@quicinc.com \
--cc=quic_tdas@quicinc.com \
--cc=sboyd@kernel.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