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=1796116617; b=dGrytyw4Duh/cEq71pORVg0q1o91DZ2jLTtjJojH4UR4D/CHR1rt+R51otc3QsZHg6Xs 7aNmkNdT4pb0SI3xilSLdfl6nUPVrua/m+sFvMCS2J2VgXurE4xYHJjQ88itHF9Gx7v8p 5p1cT3fUbv1zrc3ARWYGoP/DiaaXH1nwpLLy7BSI80fIfYnDsyAbwNMkqIY7KtCbaRhCE wQKbjG61QDyagveaLMZZXKWpUIceX0YmBQeHgRMRbcK5owl+6gZdygAjtUhh9aaNtSRZO c8duxX8h1/XJxJLOQO7+mD4eSUC42XFy9JmZxZsfI5ggHXt/arqo34AbVWMWS932Prw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796116617; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Zb+cpeBymMrebbsx/JWazMdryaSSZwGF5vskGXMkv/w=; b=sea8oTmPFHMImSfyFaI6DaSm+doS7YOv3nzKIVtV+cy/YZ5u86jhr0+Uef1nbYqAvvCD nPe9eKQ8fa3arCEEn+syDEMoDTfnFD5lWfBjd0vZEzRlN0nL9z0rMTlT8MJBUKin3RjpL NkLbJvSZSWhdxGqHKiFr7047XB0p6bRkdsClYnuqNKdfGyOlw4pb1vcHLorqDjHw3HtF8 IIvPOVdUggQd2pzsvLdZh8WA0fYyUQEH7V7p6spXhMvw62fHDf2iTzjR95gxqHTxv29/X B1W9G/Tm+6Cg9QLcWbfArRq30pJrOGBvSVAA08J3YPyovXGMveUuAe8/5Natc4M/IOg== 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=GQaxah8L; 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 482C1606A31A; Tue, 1 Dec 2026 09:16:57 +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=GQaxah8L Received: by smtp.kernel.org (Postfix) with ESMTPSA id CAC7C1F00897; Tue, 1 Dec 2026 09:16:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796116617; bh=Zb+cpeBymMrebbsx/JWazMdryaSSZwGF5vskGXMkv/w=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=GQaxah8LQiODfwg9UVl6twfx0ATR0bAM/NeZDF21AngrX6Cbpmd0VqFPbWQbYh7WC +8LCji4CZYIW/+q6CJaDnWsQHbluTjXkEfcAul8+S/VFikBq4394FZwMRuI8uH4bHh 0JFvUr/18mGCfHIIPXg/d9eXOoMl3AnzZt7DaLcBf6bNEiINt0qnUWQRk6F65dGqdY z62MWQ/3TqUoufSWyvPWEviFJAPn5Y4ypWd5vXDVW26OMYrjFUz4OKaGTJlOjgcYMF NlXZbvi1HJzMiUqOp5V1R3gikPHgx1+Xtp7wcjRTgl5lFoxargTE1LUaB3gAkvOPvN rLEbeQ5W7iHRA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH RFC RFT v3 07/13] clk: meson: gxbb: Model the PLL pre-divider as a divider clock Reply-To: sashiko-reviews@lists.linux.dev To: "Jian Hu" Cc: linux-clk@vger.kernel.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org, neil.armstrong@linaro.org In-Reply-To: <20261201-meson_refactor_n-v3-7-f85a4460fd80@amlogic.com> References: <20261201-meson_refactor_n-v3-0-f85a4460fd80@amlogic.com> <20261201-meson_refactor_n-v3-7-f85a4460fd80@amlogic.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Dec 2026 09:16:56 +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 2 potential issues to consider: - [High] clk: meson: gxbb: accidental revert of gxbb_cts_encp_sel mux shift to 20 - [Medium] clk: meson: gxbb: missing zero-divisor flag on gxbb and gxl hdmi_prediv -- commit 3ea24038e4185d59261a086515637e35e0fcb1ea Author: Jian Hu clk: meson: gxbb: Model the PLL pre-divider as a divider clock This commit models the GXBB and GXL PLL pre-dividers as separate divider clocks parenting the DCOs and replaces the GP0 PLL parameter tables with multiplier ranges. > diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c > index 2d5128c0bf9e6..b7350788b73ed 100644 > --- a/drivers/clk/meson/gxbb.c > +++ b/drivers/clk/meson/gxbb.c [ ... ] > @@ -192,6 +210,28 @@ static struct clk_fixed_factor gxbb_hdmi_pll_pre_mul= t =3D { > }, > }; > =20 > +static struct clk_regmap gxbb_hdmi_prediv =3D { > + .data =3D &(struct clk_regmap_div_data){ > + .offset =3D HHI_HDMI_PLL_CNTL, > + .shift =3D 9, > + .width =3D 5, > + .flags =3D CLK_DIVIDER_ONE_BASED, > + }, > + .hw.init =3D &(struct clk_init_data){ > + .name =3D "hdmi_prediv", > + .ops =3D &clk_regmap_divider_ro_ops, > + .parent_hws =3D (const struct clk_hw *[]) { > + &gxbb_hdmi_pll_pre_mult.hw > + }, > + .num_parents =3D 1, > + /* > + * Display directly handle hdmi pll registers ATM, we need > + * NOCACHE to keep our view of the clock as accurate as possible > + */ > + .flags =3D CLK_GET_RATE_NOCACHE, > + }, > +}; [ ... ] > @@ -229,7 +264,29 @@ static struct clk_regmap gxbb_hdmi_pll_dco =3D { > .name =3D "hdmi_pll_dco", > .ops =3D &meson_clk_pll_ro_ops, > .parent_hws =3D (const struct clk_hw *[]) { > - &gxbb_hdmi_pll_pre_mult.hw > + &gxbb_hdmi_prediv.hw > + }, > + .num_parents =3D 1, > + /* > + * Display directly handle hdmi pll registers ATM, we need > + * NOCACHE to keep our view of the clock as accurate as possible > + */ > + .flags =3D CLK_GET_RATE_NOCACHE, > + }, > +}; > + > +static struct clk_regmap gxl_hdmi_prediv =3D { > + .data =3D &(struct clk_regmap_div_data){ > + .offset =3D HHI_HDMI_PLL_CNTL, > + .shift =3D 9, > + .width =3D 5, > + .flags =3D CLK_DIVIDER_ONE_BASED, > + }, [Severity: Medium] Should gxbb_hdmi_prediv and gxl_hdmi_prediv also set CLK_DIVIDER_INVALID_ZERO? Previously, meson_clk_pll_recalc_rate() returned 0 when the pre-divider n field read 0. With only CLK_DIVIDER_ONE_BASED, if HHI_HDMI_PLL_CNTL[13:9] is 0 at boot before the display driver initializes the HDMI PLL, divider_recalc_rate() triggers a WARN() during clock registration and returns the parent rate instead of 0 Hz. [ ... ] > @@ -2371,7 +2419,7 @@ static struct clk_regmap gxbb_cts_encp_sel =3D { > .data =3D &(struct clk_regmap_mux_data){ > .offset =3D HHI_VID_CLK_DIV, > .mask =3D 0xf, > - .shift =3D 24, > + .shift =3D 20, > .table =3D gxbb_cts_parents_val_table, > }, > .hw.init =3D &(struct clk_init_data){ [Severity: High] Was this change to gxbb_cts_encp_sel.data.shift accidental? It reverts ebffd9ffac2c ("clk: meson: gxbb: fix ENCP clock selection"), causing cts_encp_sel to access the ENCT clock selector at bits [23:20] of HHI_VID_CLK_DIV instead of the ENCP clock selector at bits [27:24]. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261201-meson_refa= ctor_n-v3-0-f85a4460fd80@amlogic.com?part=3D7