From: Stephan Gerhold <stephan.gerhold@linaro.org>
To: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Cc: Bjorn Andersson <andersson@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Georgi Djakov <djakov@kernel.org>,
Shawn Guo <shengchao.guo@oss.qualcomm.com>,
Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Taniya Das <taniya.das@oss.qualcomm.com>,
linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 07/12] clk: qcom: gcc-mdm9607: Drop incorrect apss_tcu_clk_src
Date: Wed, 10 Jun 2026 16:09:24 +0200 [thread overview]
Message-ID: <ailwFPgY13_7dZ-C@linaro.org> (raw)
In-Reply-To: <f55526ad-ecd2-47b2-8b8f-5aec429bc1c0@oss.qualcomm.com>
On Wed, Jun 10, 2026 at 03:50:11PM +0200, Konrad Dybcio wrote:
> On 6/9/26 4:14 PM, Stephan Gerhold wrote:
> > From: Stephan Gerhold <stephan@gerhold.net>
> >
> > This clock does not seem to exist on MDM9607. Reading/writing the registers
> > always results in 0 or crashes. The math in the frequency table is also
> > broken. GPLL2 on MDM9607 runs at 480 MHz, so:
> >
> > - F(155000000, P_GPLL2, 6, 0, 0), // 480 MHz/6 = 80 MHz, not 155 MHz
> > - F(310000000, P_GPLL2, 3, 0, 0), // 480 MHz/3 = 160 MHz, not 310 MHz
> >
> > Presumably, this definition was mistakenly copied as-is from gcc-msm8916
> > (which uses 930 MHz for GPLL2). There are no branch consumers of this root
> > clock inside gcc-mdm9607 (notably, gcc_apss_tcu_clk has bimc_ddr_clk_src as
> > parent instead of this clock), so we can just drop it.
> >
> > Cc: stable@vger.kernel.org
> > Fixes: 48b7253264ea ("clk: qcom: Add MDM9607 GCC driver")
> > Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
> > ---
>
> It does, CMD_RCGR @ 0x37000
>
> Interestingly, there's also an SMMU instance.. although downstream doesn't
> seem bothered with it
>
Thanks for checking, but that still doesn't give us enough to work with
it. In particular:
- What are the frequency tables? Which parents exist with which IDs?
- What is the hid_width?
- Where do we hook it up to some children?
The way it is right now it's definitely wrong. I don't think we'll need
it so removing it like this patch is probably the easiest thing to do...
Thanks,
Stephan
PS: This platform has the weird TZ-managed SMMU (like MSM8916), so there
isn't much you can do with it from Linux. Unless you are running TF-A,
then you can describe it as "arm,mmu-500" and use it for everything
pretty much exactly like you would normally expect. But you still don't
need to do anything with this clock.
next prev parent reply other threads:[~2026-06-10 14:09 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-09 14:14 [PATCH 00/12] clk: qcom: Assorted fixes for gcc-mdm9607 (and gcc-msm8916/39) Stephan Gerhold
2026-06-09 14:14 ` [PATCH 01/12] clk: qcom: gcc-msm8916: Fix enable_reg for gcc_blsp1_sleep_clk Stephan Gerhold
2026-06-10 13:40 ` Konrad Dybcio
2026-06-09 14:14 ` [PATCH 02/12] clk: qcom: gcc-msm8939: " Stephan Gerhold
2026-06-10 13:40 ` Konrad Dybcio
2026-06-09 14:14 ` [PATCH 03/12] clk: qcom: gcc-mdm9607: " Stephan Gerhold
2026-06-10 13:42 ` Konrad Dybcio
2026-06-09 14:14 ` [PATCH 04/12] clk: qcom: gcc-mdm9607: Fix BIMC PLL definition Stephan Gerhold
2026-06-10 13:46 ` Konrad Dybcio
2026-06-10 13:56 ` Stephan Gerhold
2026-06-10 17:13 ` Taniya Das
2026-06-10 17:58 ` Stephan Gerhold
2026-06-09 14:14 ` [PATCH 05/12] clk: qcom: gcc-mdm9607: Fix halt_reg for gcc_apss_axi_clk Stephan Gerhold
2026-06-10 13:43 ` Konrad Dybcio
2026-06-10 17:24 ` Taniya Das
2026-06-09 14:14 ` [PATCH 06/12] clk: qcom: gcc-mdm9607: Increase delay for USB PHY reset Stephan Gerhold
2026-06-10 13:46 ` Konrad Dybcio
2026-06-09 14:14 ` [PATCH 07/12] clk: qcom: gcc-mdm9607: Drop incorrect apss_tcu_clk_src Stephan Gerhold
2026-06-10 13:50 ` Konrad Dybcio
2026-06-10 14:09 ` Stephan Gerhold [this message]
2026-06-09 14:14 ` [PATCH 08/12] clk: qcom: gcc-mdm9607: Drop incorrect system_noc_bfdcd_clk_src Stephan Gerhold
2026-06-10 13:50 ` Konrad Dybcio
2026-06-09 14:14 ` [PATCH 09/12] dt-bindings: clock: qcom: gcc-mdm9607: Drop incorrect clocks Stephan Gerhold
2026-06-09 14:14 ` [PATCH 10/12] dt-bindings: clock: qcom,gcc-mdm9607: Add missing "clocks" property Stephan Gerhold
2026-06-10 13:44 ` Konrad Dybcio
2026-06-09 14:14 ` [PATCH 11/12] dt-bindings: clock: qcom,gcc-mdm9607: Use proper address in example Stephan Gerhold
2026-06-10 13:44 ` Konrad Dybcio
2026-06-09 14:14 ` [PATCH 12/12] clk: qcom: gcc-mdm9607: Drop redundant register update during probe Stephan Gerhold
2026-06-10 13:44 ` Konrad Dybcio
2026-06-10 17:31 ` Taniya Das
2026-06-10 18:02 ` Stephan Gerhold
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=ailwFPgY13_7dZ-C@linaro.org \
--to=stephan.gerhold@linaro.org \
--cc=andersson@kernel.org \
--cc=bryan.odonoghue@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=djakov@kernel.org \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@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=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=shengchao.guo@oss.qualcomm.com \
--cc=taniya.das@oss.qualcomm.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