From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796312262; b=TYY79wiHMIZwXLQw2okhxTRlqsycOphP4m/DcXLYd6EXDxhae5qW99GQf02Lzz0q1/kT dNsrKPI9bZYzTUMn9Zk/Okc7CZYKI+D5pklJzW37nbtLaoOAXsf7bCu0/mnHi6raD9GsH nwZ8zFzlHu99x3oBDADTiEHzG+RPCI71QEAULM36nUpb9oJdldw8sqiqQI+GRQdg153Ih jIuVF4mKjaCrfXoD+gfKJdhqKM06t69eIoaNH0TG3p3oPxrvo10soqR9f9qsT1F1+Sy+m xY31B8fl9s5k5/5GJYhiyYHz7K3boxMn98qf5X3ykP0Cjkwo23bU78wDgr4CEiZWp0g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796312262; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=9DMIsTHazKbpYO3EW1MjQ/BXLIn3m68Ib6vav5KIPUE=; b=DJTmE6UCu0l/DtswJakoc7bCsplVPhNISe8e8OepdDQz2S2nyR/ZYUqYGGeV2W0Evrve 7i5VH6FxSGbBOEvzsrm03qFAPOWqHOxN0P8qPRipNkeU6F1jNBW6+9oQ1FQhVzuBO+0sc p5hVSNSHiO1Ao4KZK/tf+EwbEiDHknZnHaxUWCwKuB2ZnAvTTOwPQ3Laxubx159xWIEZB z9w/4iq0bvnZPFtGTiHimcnsruXhqDEYrrkz7nB3r6WLJOPAZJCjGt42Iw42bZ2znWCso TU1Wy57eeE5ByJs8iHaBXjU52WZnbdP5jrDZ4+qkwJQX7nTDvKcXYaGvIJ5rSAOnSHQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=f6zorieO; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CF79606A32C; Thu, 3 Dec 2026 15:37:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=f6zorieO Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6BA21F00896; Thu, 3 Dec 2026 15:37:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796312262; bh=9DMIsTHazKbpYO3EW1MjQ/BXLIn3m68Ib6vav5KIPUE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=f6zorieOpQ0ZVb9cc/aIfLptF5GLMpu+5Apci2um/IUeE/92vvTt+Xck0MM1+hrOp qGRFfh6PvfYiR2bPhD8e9zEy3TF0xxzxlFhuVKQlLd8ALHqyA5jvyiBdQSoIMnQKHw m2KOr2DMBfD0lUbQ/Ly4R3GHZu+wY3oLwnx1ptkcx5z7p0iMVu3kJDCjv/DY5S8i78 gXnsIws0SHKCeiYGNfydXWp9NXzHnbgqfKAqnpozNasp8Px5mKAf1EqiXEixZaP0LB crHHaKBHNr37egGZ+3fs11oLYGPuWp6Qq9tVEieEBgZtPtq5J9C2rikgBhuA6jwzba fQ+NWapidGJNw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 06/14] clk: samsung: exynos8855: add block top clock support Reply-To: sashiko-reviews@lists.linux.dev To: "Raghav Sharma" Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203151046.1562399-7-raghav.s@samsung.com> References: <20261203151046.1562399-1-raghav.s@samsung.com> <20261203151046.1562399-7-raghav.s@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 15:37:41 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 3 potential issues to consider: - [Medium] clk: samsung: exynos8855: CMU_TOP dividers bypass top_gate_clks gates - [Medium] clk: samsung: exynos8855: duplicate parent names in six CMU_TOP mux tables - [Low] clk: samsung: exynos8855: duplicate cmu-top entry in exynos8855_cmu_of_match -- commit f1aa8a3fdb16cc401753a2a51723ac942a29e3e2 Author: Raghav Sharma clk: samsung: exynos8855: add block top clock support This commit adds the Exynos 8855 clock driver and registers CMU_TOP clocks, including PLLs, muxes, dividers, fixed factors, and output gates. > diff --git a/drivers/clk/samsung/clk-exynos8855.c b/drivers/clk/samsung/c= lk-exynos8855.c > new file mode 100644 > index 0000000000000..3fade1d1155f9 > --- /dev/null > +++ b/drivers/clk/samsung/clk-exynos8855.c > @@ -0,0 +1,1474 @@ [ ... ] > +PNAME(mout_clkcmu_gnpu0_noc_p) =3D { "dout_shared2_div1", "dout= _shared3_div1", > + "dout_shared1_div2", "dout_shared1_div4", > + "dout_shared4_div3", "dout_shared2_div1", > + "dout_shared4_div3", "dout_shared3_div3"}; > +PNAME(mout_clkcmu_gnpu0_xmaa_p) =3D { "dout_shared2_div1", "dout= _shared3_div1", > + "dout_shared1_div2", "dout_shared1_div4", > + "dout_shared4_div3", "dout_shared2_div1", > + "dout_shared4_div3", "dout_shared3_div3"}; > +PNAME(mout_clkcmu_sdma_noc_p) =3D { "dout_shared0_div2", "dout= _shared0_div3", > + "dout_shared0_div3", "dout_shared1_div3", > + "dout_shared2_div2", "dout_shared2_div3", > + "dout_shared4_div3", "dout_shared3_div3"}; > +PNAME(mout_clkcmu_dnc_htu_p) =3D { "dout_shared0_div2", "dout= _shared0_div3", > + "dout_shared0_div3", "dout_shared1_div3", > + "dout_shared2_div2", "dout_shared2_div3", > + "dout_shared4_div3", "dout_shared3_div3"}; > +PNAME(mout_clkcmu_dnc_noc_p) =3D { "dout_shared0_div2", "dout= _shared0_div3", > + "dout_shared0_div3", "dout_shared1_div3", > + "dout_shared2_div2", "dout_shared2_div3", > + "dout_shared4_div3", "dout_shared3_div3"}; > +PNAME(mout_clkcmu_psp_noc_p) =3D { "dout_shared0_div2", "dout= _shared0_div3", > + "dout_shared0_div3", "dout_shared1_div3", > + "dout_shared2_div2", "dout_shared2_div3", > + "dout_shared3_div2", "dout_shared3_div3"}; [Severity: Medium] Are the duplicate parent names in these six mux tables intentional? mout_clkcmu_gnpu0_noc_p and mout_clkcmu_gnpu0_xmaa_p repeat dout_shared2_div1 (indices 0 and 5) and dout_shared4_div3 (indices 4 and 6). The other four tables repeat dout_shared0_div3 at indices 1 and 2 instead of listing dout_shared1_div2 at index 2 like the sibling NOC muxes. Because clk_fetch_parent_index() returns the first matching entry, the higher duplicated indices cannot be selected via clk_set_parent(). If hardware wires distinct PLL dividers to those slots, CCF will also miscalculate rates whenever hardware or firmware selects them. [ ... ] > +/* ---- DIV ---- */ > +static const struct samsung_div_clock top_div_clks[] __initconst =3D { > + DIV(CLKCMU_DOUT_PERIC_NOC, "dout_clkcmu_peric_noc", > + "mout_clkcmu_peric_noc", CLK_CON_DIV_CLKCMU_PERIC_NOC, > + 0, 4), [ ... ] > + GATE(CLK_GOUT_CLKCMU_PERIC_NOC, "gout_clkcmu_peric_noc", > + "mout_clkcmu_peric_noc", > + CLK_CON_GAT_GATE_CLKCMU_PERIC_NOC, > + 21, CLK_SET_RATE_PARENT, 0), [Severity: Medium] Should the dividers in top_div_clks parent to gout_clkcmu_* instead of mout_clkcmu_*? All 59 dividers in top_div_clks currently parent directly to mout_clkcmu_*, leaving the corresponding CLK_GOUT_CLKCMU_* gates in top_gate_clks as orphaned leaves. Because downstream CMUs consume CLKCMU_DOUT_* outputs, enabling or disabling them never propagates to the CMU_TOP output gates. If automatic clock gating falls back to manual mode (for example when the DT reg size is not 0x10000 and samsung_is_auto_capable() returns false), exynos_arm64_init_clocks() switches these gates to manual mode and clk_disable_unused() disables all of them, hanging the SoC on boot. Parenting top_div_clks to gout_clkcmu_* (matching sibling drivers such as clk-gs101.c) restores the mout -> gout -> dout hierarchy. [ ... ] > +/* Register CMU_TOP early, as it's a dependency for other early domains = */ > +CLK_OF_DECLARE(exynos8855_cmu_top, "samsung,exynos8855-cmu-top", > + exynos8855_cmu_top_init); > + > +static int __init exynos8855_cmu_probe(struct platform_device *pdev) > +{ > + const struct samsung_cmu_info *info; > + struct device *dev =3D &pdev->dev; > + > + info =3D of_device_get_match_data(dev); > + exynos_arm64_register_cmu(dev, dev->of_node, info); > + > + return 0; > +} > + > +static const struct of_device_id exynos8855_cmu_of_match[] =3D { > + { > + .compatible =3D "samsung,exynos8855-cmu-top", > + .data =3D &top_cmu_info, > + }, > + { } > +}; [Severity: Low] Should the "samsung,exynos8855-cmu-top" entry be removed from exynos8855_cmu_of_match[]? CMU_TOP is already registered early via CLK_OF_DECLARE(), which marks the node OF_POPULATED so this match entry is dead during normal boot. If a matching platform device is instantiated later via a DT overlay, exynos8855_cmu_probe() calls into freed __init code and top_cmu_info. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203151046.1562= 399-1-raghav.s@samsung.com?part=3D6