From: sashiko-bot@kernel.org
To: "Raghav Sharma" <raghav.s@samsung.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org,
linux-clk@vger.kernel.org
Subject: Re: [PATCH v2 08/14] clk: samsung: exynos8855: add block peris clock support
Date: Fri, 09 Oct 2026 12:23:31 +0000 [thread overview]
Message-ID: <sashiko-outbox-165530@kernel.org> (raw)
In-Reply-To: <20261009120137.2801911-9-raghav.s@samsung.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] clk: missing CLK_IS_CRITICAL on system-critical gate clocks
--
commit 717955d4667d1084ee3be06cb476ef2408019f3e
Author: Raghav Sharma <raghav.s@samsung.com>
clk: samsung: exynos8855: add block peris clock support
Register compatible and cmu_info data to support clocks.
CMU_PERIS, this provides clocks for PERIS.
> diff --git a/drivers/clk/samsung/clk-exynos8855.c b/drivers/clk/samsung/clk-exynos8855.c
> index 5394706d214c9..2bf889a478bc9 100644
> --- a/drivers/clk/samsung/clk-exynos8855.c
> +++ b/drivers/clk/samsung/clk-exynos8855.c
[ ... ]
> @@ -1094,6 +1096,99 @@ static const struct samsung_cmu_info peric_cmu_info __initconst = {
[ ... ]
> +static const struct samsung_gate_clock peris_gate_clks[] __initconst = {
> + /* System will hang if this critical clock is gated */
> + GATE(CLK_GOUT_CMU_PERIS, "gout_cmu_peris",
> + "dout_clkcmu_peris_nocp",
> + CMU_PERIS_CLK_CON_GAT_BLK_PERIS_UID_CMU_PERIS_IPCLKPORT_PCLK,
> + 21, 0, 0),
[Severity: High]
Does this code expose the clock tree to fatal disablement by
clk_disable_unused()?
Even though .auto_clock_gate = true provides a no-op .disable callback for leaf
clocks, the Linux clock framework will still transition its software state to
DISABLED and decrement the reference counts of the entire parent chain (e.g.,
dout_clkcmu_peris_nocp -> mout_clkcmu_peris_noc_user -> ... ->
fout_shared0_pll).
Because root parents like PLLs use real hardware .disable operations, they will
be physically powered off when their reference count hits zero.
Should the CLK_IS_CRITICAL flag be explicitly passed in the flags parameter
here to artificially bump the reference count and keep the entire parent tree
active forever?
A parallel block introduced earlier in this patch series has the same issue:
drivers/clk/samsung/clk-exynos8855.c:
static const struct samsung_gate_clock peric_gate_clks[] __initconst = {
/* System will hang if this critical clock is gated */
GATE(CLK_GOUT_CMU_PERIC, "gout_cmu_peric",
"dout_clkcmu_peric_nocp",
CMU_PERIC_CLK_CON_GAT_BLK_PERIC_UID_CMU_PERIC_IPCLKPORT_PCLK,
21, 0, 0),
...
};
Should it also be updated with the CLK_IS_CRITICAL flag to prevent system
hangs?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261009120137.2801911-1-raghav.s@samsung.com?part=8
next prev parent reply other threads:[~2026-10-09 12:23 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20261009114331epcas5p37f60df8cdaf502a0cc492ad5eacf5e05@epcas5p3.samsung.com>
2026-10-09 12:01 ` [PATCH v2 00/14] Add clock support for Exynos8855 SoC Raghav Sharma
2026-10-09 12:01 ` [PATCH v2 01/14] dt-bindings: soc: samsung: Exynos8855 SYSREG compatibles Raghav Sharma
2026-10-09 12:01 ` [PATCH v2 02/14] dt-bindings: clock: exynos8855: add top & peric clock definitions Raghav Sharma
2026-10-09 12:01 ` [PATCH v2 03/14] dt-bindings: clock: exynos8855: add peris " Raghav Sharma
2026-10-09 12:01 ` [PATCH v2 04/14] dt-bindings: clock: exynos8855: add hsi " Raghav Sharma
2026-10-09 12:01 ` [PATCH v2 05/14] dt-bindings: clock: exynos8855: add usb " Raghav Sharma
2026-10-09 12:01 ` [PATCH v2 06/14] clk: samsung: clk-pll: Add support for pll_4313 Raghav Sharma
2026-10-09 12:01 ` [PATCH v2 07/14] clk: samsung: exynos8855: add block top and peric clock support Raghav Sharma
2026-10-09 12:12 ` sashiko-bot
2026-10-09 12:01 ` [PATCH v2 08/14] clk: samsung: exynos8855: add block peris " Raghav Sharma
2026-10-09 12:23 ` sashiko-bot [this message]
2026-10-09 12:01 ` [PATCH v2 09/14] clk: samsung: exynos8855: add block hsi " Raghav Sharma
2026-10-09 12:30 ` sashiko-bot
2026-10-09 12:01 ` [PATCH v2 10/14] clk: samsung: exynos8855: add block usb " Raghav Sharma
2026-10-09 12:48 ` sashiko-bot
2026-10-09 12:01 ` [PATCH v2 11/14] arm64: dts: exynos8855: add cmu_top & cmu_peric clock DT nodes Raghav Sharma
2026-10-09 12:57 ` sashiko-bot
2026-10-09 12:01 ` [PATCH v2 12/14] arm64: dts: exynos8855: add cmu_peris " Raghav Sharma
2026-10-09 12:01 ` [PATCH v2 13/14] arm64: dts: exynos8855: add cmu_hsi " Raghav Sharma
2026-10-09 13:11 ` sashiko-bot
2026-10-09 12:01 ` [PATCH v2 14/14] arm64: dts: exynos8855: add cmu_usb " Raghav Sharma
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-165530@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=raghav.s@samsung.com \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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