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=1796469868; b=oLjB/BpJkIO1J9L5JvI/1syj3aiytQO9mPP1ShKR7NXyXIBlILKB6S9LDSKA4l25Rlm/ we/2MJLU3MKUC8pGPnIHRjfisDBF/jvV/TwL6qN0AKeMhFEcSETB8oxsjcb81gEzQ4ST0 KlQZUNtMwFNhp/6LmGqYp3u3D42QLvHkH6+BWY9dn6YY23zZftfqpre8I+8BeySBPuWaK Bf5iQxgqeqeYje7uRT8jOA/AJdMuIFSnwBd2logfx3g9gHUfopHKZmY3ES5HNx6NKe3J0 j9lWHXO7NFQK4+P3TIcCrnU+0fb1oRfyHJVAStO//SaF8806wF/JPfhoIjCH7RnFYkg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796469868; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=nrLnG4DADtQ6CQlWWWmYog5UYVzkiBMxOc4Thkhdibs=; b=xQBai0hwXIEGzosLFwX3aBLB7mRpNTzcpKMNPyfAygWjKDYcXlKUHBou5yHQDm+EuGJu pGklzW5UWptnbpT4NH+9NwvWI6MphttjMA+BOuYLvmuf2x0XJ+Y2v8m8r0ryrLBL70a6a /IBQTHV1FVdO3udeX3Emfnnoj3RwtpRCkPvAAr9XCUQItxqejSVJXH4MFCwFZAN78JsV6 JJQBkHCVv7NalFHbYxGFMmMa1s4qKXEubFV5NMZcGaBpY6MEXis/F2CIrB0DnaQeEfLrl CZ9dMRBnQ6FN9u+BW/rUarFVBFw1DJfQu9bvu9QX5bcGJewDRac1EK/UZQfdm+K1aKw== 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=kQYtLmDl; 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 BE107606A322 for ; Sat, 5 Dec 2026 11:24:28 +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=kQYtLmDl Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11E671F00936; Sat, 5 Dec 2026 11:24:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796469868; bh=nrLnG4DADtQ6CQlWWWmYog5UYVzkiBMxOc4Thkhdibs=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=kQYtLmDl0KepCLL4t92g2XNpxtJco5nV0PFrv02rP0gX6eRgdZInJZBhPYQG3Bdrb zy8EV/XeyasD0N7tMARdfHDAi34O3ic7pLqEe+xHrxLa2ZE5wTo/BGcXht7+Y11rb9 uNVz64ufHtZFjTWIGrZLdsJTLeCrYhDDAmhjIgeiDjUtJfQoGZk8WkgCCI08oXiAlo nyoAeGSlpahB6LMzIna69wfQWrbnRcIDGHber7OfL7Qx84YqLl9Xpgr/SSvAYnkHv1 wTAW0uXDS2u0e8VCPvAfL32TosdIaxP9K4w2UoRafIINppCXfQwlM3LWURQV3YlQDz zsdSTzbWPl5sA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] clk: qcom: dispcc-sm8750: Stop disp_cc_mdss_mdp_clk_src from getting parked Reply-To: sashiko-reviews@lists.linux.dev To: "Zhendong Liu" Cc: linux-clk@vger.kernel.org In-Reply-To: <20261205-upstream3-dispcc-sm8750-mdp-no-park-v1-1-0747375c5896@gmail.com> References: <20261205-upstream3-dispcc-sm8750-mdp-no-park-v1-1-0747375c5896@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 11:24:27 +0000 X-Mailing-List: linux-clk@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 1 potential issue to consider: - [Medium] clk: qcom: dispcc-sm8750: clk_disable_unused() turns off PLL under active RCG -- commit d3a7d13de7c0040239480860fbbc22b7f0c6564c Author: Junhao Xie 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-s= m8750.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 =3D { > * It is not clear whether such approach should be taken instead > * of manual control. > */ > - .ops =3D &clk_rcg2_shared_ops, > + .ops =3D &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=3Dm 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205-upstream3-= dispcc-sm8750-mdp-no-park-v1-1-0747375c5896@gmail.com?part=3D1