All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: raghav.s <raghav.s@samsung.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH 03/13] clk: samsung: exynos8855: add block top and peric clock support
Date: Tue, 28 Jul 2026 12:11:28 +0000	[thread overview]
Message-ID: <20260728121128.612291F00A3E@smtp.kernel.org> (raw)
In-Reply-To: <20260728121111.2077860-4-raghav.s@samsung.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The UART DBG PCLK gate clock is incorrectly assigned the functional (baud rate) clock as its parent instead of the NOC peripheral bus clock.
--

--- Patch [3]: [PATCH 03/13] clk: samsung: exynos8855: add block top and peric clock support ---
commit 749ec1f523b7d61993f27762dded3422cad15aae
Author: raghav.s <raghav.s@samsung.com>

clk: samsung: exynos8855: add block top and peric clock support

This commit adds support for the CMU_TOP and CMU_PERIC clock domains
on the Exynos 8855 SoC. It registers compatible strings and cmu_info
data to provide clocks for these blocks.

> diff --git a/drivers/clk/samsung/clk-exynos8855.c b/drivers/clk/samsung/clk-exynos8855.c
> new file mode 100644
> index 0000000000000..93528f0077a4f
> --- /dev/null
> +++ b/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_IPCLKPORT_PCLK, "gout_cmu_peric_ipclkport_pclk",
> +	     "dout_clkcmu_peric_nocp",
> +	     CMU_PERIC_CLK_CON_GAT_BLK_PERIC_UID_CMU_PERIC_IPCLKPORT_PCLK,
> +	     21, CLK_IS_CRITICAL, 0),
> +	GATE(CLK_GOUT_SYSREG_PERIC_IPCLKPORT_PCLK, "gout_sysreg_peric_ipclkport_pclk",
> +	     "dout_clkcmu_peric_nocp",
> +	     CMU_PERIC_CLK_CON_GAT_BLK_PERIC_UID_SYSREG_PERIC_IPCLKPORT_PCLK,
> +	     21, 0, 0),
> +	/* System will hang if this critical clock is gated */
> +	GATE(CLK_GOUT_UART_DBG_PERIC_IPCLKPORT_PCLK, "gout_uart_dbg_peric_ipclkport_pclk",
> +	     "dout_clkcmu_peric_uart_dbg",
> +	     CMU_PERIC_CLK_CON_GAT_BLK_PERIC_UID_UART_DBG_IPCLKPORT_PCLK,
> +	     21, CLK_IS_CRITICAL, 0),

[Severity: High]
Is dout_clkcmu_peric_uart_dbg the correct parent clock for the UART DBG
PCLK here? 

It looks like this assigns the functional baud rate clock to the PCLK,
whereas other IPCLKPORTs use the dout_clkcmu_peric_nocp peripheral bus
clock.

If register accesses to the UART_DBG block are clocked by the functional
clock rather than the NOC peripheral bus clock, could changing the UART baud
rate improperly scale the APB bus clock for this IP? This might lead to bus
stalls or system hangs when the kernel scales the baud rate or transitions
states, especially since this clock is marked as CLK_IS_CRITICAL.

> +	GATE(CLK_GOUT_USI_PERIC_IPCLKPORT_PCLK, "gout_usi_peric_ipclkport_pclk",
> +	     "dout_clkcmu_peric_nocp",
> +	     CMU_PERIC_CLK_CON_GAT_BLK_PERIC_UID_USI00_USI_IPCLKPORT_PCLK,
> +	     21, 0, 0),
> +};

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260728121111.2077860-1-raghav.s@samsung.com?part=3

  reply	other threads:[~2026-07-28 12:11 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20260728115239epcas5p218bc69194dc55a5087c363816396cd5e@epcas5p2.samsung.com>
2026-07-28 12:10 ` [PATCH 00/13] Add clock support for Exynos8855 SoC raghav.s
2026-07-28 12:10   ` [PATCH 01/13] clk: samsung: clk-pll: Add supoprt for pll_4313 raghav.s
2026-07-28 11:58     ` Krzysztof Kozlowski
2026-07-28 12:11   ` [PATCH 02/13] dt-bindings: clock: exynos8855: add top & peric clock definitions raghav.s
2026-07-28 12:11   ` [PATCH 03/13] clk: samsung: exynos8855: add block top and peric clock support raghav.s
2026-07-28 12:11     ` sashiko-bot [this message]
2026-07-28 12:11   ` [PATCH 04/13] arm64: dts: exynos8855: add cmu_top & cmu_peric clock DT nodes raghav.s
2026-07-28 11:59     ` Krzysztof Kozlowski
2026-07-28 12:23       ` Alim Akhtar
2026-07-28 12:24         ` Krzysztof Kozlowski
2026-07-28 12:58           ` Alim Akhtar
2026-07-28 12:11   ` [PATCH 05/13] dt-bindings: clock: exynos8855: add peris clock definitions raghav.s
2026-07-28 12:01     ` sashiko-bot
2026-07-28 12:11   ` [PATCH 06/13] clk: samsung: exynos8855: add block peris clock support raghav.s
2026-07-28 12:00     ` Krzysztof Kozlowski
2026-07-28 12:11   ` [PATCH 07/13] arm64: dts: exynos8855: add cmu_peris clock DT nodes raghav.s
2026-07-28 12:11   ` [PATCH 08/13] dt-bindings: clock: exynos8855: add hsi clock definitions raghav.s
2026-07-28 12:11   ` [PATCH 09/13] clk: samsung: exynos8855: add block hsi clock support raghav.s
2026-07-28 12:11   ` [PATCH 10/13] arm64: dts: exynos8855: add cmu_hsi clock DT nodes raghav.s
2026-07-28 12:11   ` [PATCH 11/13] dt-bindings: clock: exynos8855: add usb clock definitions raghav.s
2026-07-28 12:11   ` [PATCH 12/13] clk: samsung: exynos8855: add block usb clock support raghav.s
2026-07-28 12:11   ` [PATCH 13/13] arm64: dts: exynos8855: add cmu_usb clock DT nodes raghav.s

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=20260728121128.612291F00A3E@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.