From: Abel Vesa <abel.vesa@linaro.org>
To: Konrad Dybcio <konrad.dybcio@linaro.org>
Cc: Bjorn Andersson <andersson@kernel.org>,
Andy Gross <agross@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Marijn Suijten <marijn.suijten@somainline.org>,
linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
Johan Hovold <johan+linaro@kernel.org>,
Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Subject: Re: [PATCH v6 00/12] Unregister critical branch clocks + some RPM
Date: Wed, 24 Jan 2024 09:41:54 +0200 [thread overview]
Message-ID: <ZbC/QqfTvJ09KcZN@linaro.org> (raw)
In-Reply-To: <20230717-topic-branch_aon_cleanup-v6-0-46d136a4e8d0@linaro.org>
On 24-01-13 15:50:49, Konrad Dybcio wrote:
> On Qualcomm SoCs, certain branch clocks either need to be always-on, or
> should be if you're interested in touching some part of the hardware.
>
> Using CLK_IS_CRITICAL for this purpose sounds like a genius idea,
> however that messes with the runtime pm handling - if a clock is
> marked as such, the clock controller device will never enter the
> "suspended" state, leaving the associated resources online, which in
> turn breaks SoC-wide suspend.
Generally speaking, HW-wise, if the power domain of a clock controller
is being disabled, all clocks that it provides are being disabled.
Are you saying that is not the case ?
>
> This series aims to solve that on a couple SoCs that I could test the
> changes on and it sprinkles some runtime pm enablement atop these drivers.
>
> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
> ---
> Changes in v6:
> - Rebase (next-20240112)
> - Reorder qcom_branch_set_clk_en calls by register in "*: Unregister
> critical clocks" (Johan)
> - Pick up tags
> - Link to v5: https://lore.kernel.org/r/20230717-topic-branch_aon_cleanup-v5-0-99942e6bf1ba@linaro.org
>
> Changes in v5:
> - Change the "Keep the critical clocks always-on" comment to "Keep
> some clocks always-on"
> - Add the same comment to commits unregistering clocks on 6115/6375/2290
> - Link to v4: https://lore.kernel.org/r/20230717-topic-branch_aon_cleanup-v4-0-32c293ded915@linaro.org
>
> Changes in v4:
> - Add and unify the "/* Keep the critical clocks always-on */" comment
> - Rebase (next-20231222), also include 8650, X1E and 8280camcc drivers
> - Drop enabling runtime PM on GCC
> - Improve the commit message of "clk: qcom: gpucc-sm6115: Add runtime PM"
> - Link to v3: https://lore.kernel.org/r/20230717-topic-branch_aon_cleanup-v3-0-3e31bce9c626@linaro.org
>
> Changes in v3:
> - Rebase (next-20231219)
> - Fix up a copypaste mistake in "gcc-sm6375: Unregister critical clocks" (bod)
> - Pick up tags
> - Link to v2: https://lore.kernel.org/r/20230717-topic-branch_aon_cleanup-v2-0-2a583460ef26@linaro.org
>
> Changes in v2:
> - Rebase
> - Pick up tags
> - Fix up missing pm_runtime_put in SM6375 GCC (Johan)
> - Clarify the commit message of "Add runtime PM" commits (Johan)
> - "GPU_CCC" -> "GPU_CC" (oops)
> - Rebase atop next-20231129
> - Also fix up camcc-sm8550 & gcc-sm4450
> - Unify and clean up the comment style
> - Fix missing comments in gcc-sc7180..
> - Drop Johan's ack from "clk: qcom: Use qcom_branch_set_clk_en()"
> - Improve 6115 dt patch commit message (Bjorn)
> - Link to v1: https://lore.kernel.org/r/20230717-topic-branch_aon_cleanup-v1-0-27784d27a4f4@linaro.org
>
> ---
> Konrad Dybcio (12):
> clk: qcom: branch: Add a helper for setting the enable bit
> clk: qcom: Use qcom_branch_set_clk_en()
> clk: qcom: gcc-sm6375: Unregister critical clocks
> clk: qcom: gpucc-sm6375: Unregister critical clocks
> clk: qcom: gpucc-sm6115: Unregister critical clocks
> clk: qcom: gpucc-sm6115: Add runtime PM
> clk: qcom: gcc-sm6115: Unregister critical clocks
> clk: qcom: gcc-qcm2290: Unregister critical clocks
> arm64: dts: qcom: sm6375: Add VDD_CX to GCC
> arm64: dts: qcom: qcm2290: Add VDD_CX to GCC
> arm64: dts: qcom: sm6115: Add VDD_CX to GCC
> arm64: dts: qcom: sm6115: Add VDD_CX to GPU_CC
>
> arch/arm64/boot/dts/qcom/qcm2290.dtsi | 1 +
> arch/arm64/boot/dts/qcom/sm6115.dtsi | 3 +
> arch/arm64/boot/dts/qcom/sm6375.dtsi | 1 +
> drivers/clk/qcom/camcc-sc8280xp.c | 6 +-
> drivers/clk/qcom/camcc-sm8550.c | 10 +--
> drivers/clk/qcom/clk-branch.h | 7 ++
> drivers/clk/qcom/dispcc-qcm2290.c | 4 +-
> drivers/clk/qcom/dispcc-sc7280.c | 7 +-
> drivers/clk/qcom/dispcc-sc8280xp.c | 4 +-
> drivers/clk/qcom/dispcc-sm6115.c | 4 +-
> drivers/clk/qcom/dispcc-sm8250.c | 4 +-
> drivers/clk/qcom/dispcc-sm8450.c | 7 +-
> drivers/clk/qcom/dispcc-sm8550.c | 7 +-
> drivers/clk/qcom/dispcc-sm8650.c | 4 +-
> drivers/clk/qcom/gcc-qcm2290.c | 106 +++--------------------------
> drivers/clk/qcom/gcc-sa8775p.c | 25 +++----
> drivers/clk/qcom/gcc-sc7180.c | 22 +++---
> drivers/clk/qcom/gcc-sc7280.c | 20 +++---
> drivers/clk/qcom/gcc-sc8180x.c | 28 +++-----
> drivers/clk/qcom/gcc-sc8280xp.c | 25 +++----
> drivers/clk/qcom/gcc-sdx55.c | 12 ++--
> drivers/clk/qcom/gcc-sdx65.c | 13 ++--
> drivers/clk/qcom/gcc-sdx75.c | 10 +--
> drivers/clk/qcom/gcc-sm4450.c | 28 +++-----
> drivers/clk/qcom/gcc-sm6115.c | 124 +++-------------------------------
> drivers/clk/qcom/gcc-sm6375.c | 105 +++-------------------------
> drivers/clk/qcom/gcc-sm7150.c | 23 +++----
> drivers/clk/qcom/gcc-sm8250.c | 19 ++----
> drivers/clk/qcom/gcc-sm8350.c | 20 +++---
> drivers/clk/qcom/gcc-sm8450.c | 21 +++---
> drivers/clk/qcom/gcc-sm8550.c | 21 +++---
> drivers/clk/qcom/gcc-sm8650.c | 16 ++---
> drivers/clk/qcom/gcc-x1e80100.c | 16 ++---
> drivers/clk/qcom/gpucc-sc7280.c | 9 +--
> drivers/clk/qcom/gpucc-sc8280xp.c | 9 +--
> drivers/clk/qcom/gpucc-sm6115.c | 53 ++++++---------
> drivers/clk/qcom/gpucc-sm6375.c | 34 ++--------
> drivers/clk/qcom/gpucc-sm8550.c | 10 +--
> drivers/clk/qcom/lpasscorecc-sc7180.c | 7 +-
> drivers/clk/qcom/videocc-sm8250.c | 6 +-
> drivers/clk/qcom/videocc-sm8350.c | 10 +--
> drivers/clk/qcom/videocc-sm8450.c | 13 ++--
> drivers/clk/qcom/videocc-sm8550.c | 13 ++--
> 43 files changed, 234 insertions(+), 653 deletions(-)
> ---
> base-commit: 8d04a7e2ee3fd6aabb8096b00c64db0d735bc874
> change-id: 20230717-topic-branch_aon_cleanup-6976c13fe71c
>
> Best regards,
> --
> Konrad Dybcio <konrad.dybcio@linaro.org>
>
>
next prev parent reply other threads:[~2024-01-24 7:41 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-13 14:50 [PATCH v6 00/12] Unregister critical branch clocks + some RPM Konrad Dybcio
2024-01-13 14:50 ` [PATCH v6 01/12] clk: qcom: branch: Add a helper for setting the enable bit Konrad Dybcio
2024-01-13 21:18 ` Dmitry Baryshkov
2024-01-23 9:33 ` Imran Shaik
2024-01-24 11:20 ` Dmitry Baryshkov
2024-01-13 14:50 ` [PATCH v6 02/12] clk: qcom: Use qcom_branch_set_clk_en() Konrad Dybcio
2024-01-13 22:13 ` Dmitry Baryshkov
2024-01-13 14:50 ` [PATCH v6 03/12] clk: qcom: gcc-sm6375: Unregister critical clocks Konrad Dybcio
2024-01-16 11:09 ` Johan Hovold
2024-01-13 14:50 ` [PATCH v6 04/12] clk: qcom: gpucc-sm6375: " Konrad Dybcio
2024-01-13 14:50 ` [PATCH v6 05/12] clk: qcom: gpucc-sm6115: " Konrad Dybcio
2024-01-13 14:50 ` [PATCH v6 06/12] clk: qcom: gpucc-sm6115: Add runtime PM Konrad Dybcio
2024-01-13 14:50 ` [PATCH v6 07/12] clk: qcom: gcc-sm6115: Unregister critical clocks Konrad Dybcio
2024-01-13 14:50 ` [PATCH v6 08/12] clk: qcom: gcc-qcm2290: " Konrad Dybcio
2024-01-13 14:50 ` [PATCH v6 09/12] arm64: dts: qcom: sm6375: Add VDD_CX to GCC Konrad Dybcio
2024-01-13 14:50 ` [PATCH v6 10/12] arm64: dts: qcom: qcm2290: " Konrad Dybcio
2024-01-13 14:51 ` [PATCH v6 11/12] arm64: dts: qcom: sm6115: " Konrad Dybcio
2024-01-13 14:51 ` [PATCH v6 12/12] arm64: dts: qcom: sm6115: Add VDD_CX to GPU_CC Konrad Dybcio
2024-01-14 4:53 ` [PATCH v6 00/12] Unregister critical branch clocks + some RPM Dmitry Baryshkov
2024-01-15 9:29 ` Konrad Dybcio
2024-01-24 7:41 ` Abel Vesa [this message]
2024-01-24 12:31 ` Konrad Dybcio
2024-01-25 10:16 ` Taniya Das
2024-01-25 10:56 ` Konrad Dybcio
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=ZbC/QqfTvJ09KcZN@linaro.org \
--to=abel.vesa@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=bryan.odonoghue@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=johan+linaro@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marijn.suijten@somainline.org \
--cc=mturquette@baylibre.com \
--cc=robh+dt@kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).