From: sashiko-bot@kernel.org
To: "Zhendong Liu" <yzddmr6@gmail.com>
Cc: linux-clk@vger.kernel.org
Subject: Re: [PATCH] clk: qcom: dispcc-sm8750: Stop disp_cc_mdss_mdp_clk_src from getting parked
Date: Sat, 05 Dec 2026 11:24:27 +0000 [thread overview]
Message-ID: <sashiko-outbox-251464@kernel.org> (raw)
In-Reply-To: <20261205-upstream3-dispcc-sm8750-mdp-no-park-v1-1-0747375c5896@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] clk: qcom: dispcc-sm8750: clk_disable_unused() turns off PLL
under active RCG
--
commit d3a7d13de7c0040239480860fbbc22b7f0c6564c
Author: Junhao Xie <bigfoot@radxa.com>
clk: qcom: dispcc-sm8750: Stop disp_cc_mdss_mdp_clk_src from getting parked
This commit switches disp_cc_mdss_mdp_clk_src from clk_rcg2_shared_ops to
clk_rcg2_shared_no_init_park_ops so the bootloader-configured MDP clock is
not parked onto XO at registration time.
> diff --git a/drivers/clk/qcom/dispcc-sm8750.c b/drivers/clk/qcom/dispcc-sm8750.c
> index 3205ce5c1ad9e..5e6151de81047 100644
> --- a/drivers/clk/qcom/dispcc-sm8750.c
> +++ b/drivers/clk/qcom/dispcc-sm8750.c
> @@ -697,7 +697,7 @@ static struct clk_rcg2 disp_cc_mdss_mdp_clk_src = {
> * It is not clear whether such approach should be taken instead
> * of manual control.
> */
> - .ops = &clk_rcg2_shared_ops,
> + .ops = &clk_rcg2_shared_no_init_park_ops,
> },
> };
[Severity: Medium]
Can this allow clk_disable_unused() to turn off disp_cc_pll0 while
disp_cc_mdss_mdp_clk_src is still active and muxed to it?
When dispcc-sm8750 is built in and no simple-framebuffer node holds
DISP_CC_MDSS_MDP_CLK at late_initcall_sync (such as on upstream sm8750-mtp
with DRM_MSM=m and without clk_ignore_unused), clk_disable_unused_subtree()
walks disp_cc_pll0 -> disp_cc_mdss_mdp_clk_src -> disp_cc_mdss_mdp_clk.
Unlike most sibling drivers cited in the commit message,
disp_cc_mdss_mdp_clk uses clk_branch2_aon_ops (no .disable or
.disable_unused), so its branch stays enabled in hardware and keeps the RCG
active.
Because clk_rcg2_shared_no_init_park_ops omits .is_enabled,
clk_core_is_enabled() returns 0 and skips parking the RCG. disp_cc_pll0
uses clk_alpha_pll_taycan_elu_ops without CLK_IGNORE_UNUSED, so
clk_disable_unused_subtree() shuts it down under the active RCG.
As noted in clk_rcg2_shared_init(), turning off a parent PLL under an
active unparked shared RCG can leave the RCG stuck on. Once
genpd_power_off_unused() collapses mdss_gdsc, a later gdsc_enable() when
msm probes (before msm_mdss_enable() enables clocks) can wedge mdss_gdsc.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205-upstream3-dispcc-sm8750-mdp-no-park-v1-1-0747375c5896@gmail.com?part=1
prev parent reply other threads:[~2026-12-05 11:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 10:56 [PATCH] clk: qcom: dispcc-sm8750: Stop disp_cc_mdss_mdp_clk_src from getting parked Zhendong Liu via B4 Relay
2026-12-05 11:24 ` sashiko-bot [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=sashiko-outbox-251464@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=yzddmr6@gmail.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