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=1796200130; b=AE8piuhLn+6FbdhPJuExDSpclAdBcc2t8DnVSp3e+XzoD+FR4FzPUtkvUwXsfUDCBNOd iAthbcQagKPrzo+Kmphbuz+U6oZZ+dEG6wPa4ieO6USEt+zhp7faBRGMqWybtniH5+gaX w5Sy9la7EMM9wd1xioAYib/+wFSbsToQkPU3AhLKgHgtbPCjG4/5g8Goz2CZ1XrH5TnTO LuHpYJr68akjHZQNn9LLH/xSdaBbrlBAY2yYQCawxj64k71fk55KaimJCM4ni1LsBmxD+ nemfksc9yBD7yiTbc1wXVpua18iSzqpA33fij0stvOVHgtUscvyuXWYneKkFbTv2pvQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796200130; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=asBP50PC7szekSMfG1A+OvVyziBQzGTBmVS9cqEp1eo=; b=X2fGd8hQm34BaCjAMw02HOkK4WClfvsfZTjilI7al7MHdr2Gxnz1bTgHmqOYG/ABBG1f tpF+Dys72T5nAUikHindxUHSf7E0rTqCFAaU1wfromYvMO0o2we1qqCHHdbHhhw1f20lF 5gAU6WjHRTrAlSy30l1TRn4G46rUKlMCB4nSptA5dJ4WsFXb8Y/vPLoUpA4M7zyyQWrgU PqisQr/ytnwIyPyncmXsOaWLgkxIk+QZGcGvV1aHsLqMgOQrhBr0QPTsXW7NTnVVnVtet zmWR2UBBI49277w0teF9MThEqJACCt4Fo3gYRXKJSUOnLBjTV8Fi7rv9xWmaUTE6J6w== 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=GDbRvWIZ; 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 38604606A322; Wed, 2 Dec 2026 08:28:49 +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=GDbRvWIZ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A0361F000C1; Wed, 2 Dec 2026 08:28:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796200129; bh=asBP50PC7szekSMfG1A+OvVyziBQzGTBmVS9cqEp1eo=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=GDbRvWIZpltdar1G3/h8CQwVixgnzfh21AOx8JVUw8O/mteKMz2RCU5m+GNCq+BDu XzmUZ7D6yuakSfER2Gd8kJqg8KIgwwI416rtA/mpAPLplI0DGTlxFBmg6P0jo/tD6s u0C3QjFDKben7zhqNhNS/5TyZMSeIhWheJRL+mF8bvSAfs9G3WPGtyBPt8chGLIEff UKUW9T9yAJFvLloW2dCW53ui5XILyZoS14YExdMx2FCIzxQzQroPk2ERY+X0DK0fZX X0dS4t1A4BkSEm43wntQEt0S24+t1TaJ8Djso+f/T2x6DGV13k0ewNnwgvm2BTwc11 BNdqSy7gptapA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 2/3] arm64: dts: qcom: hamoa: Add opp-level for UFS gear speed Reply-To: sashiko-reviews@lists.linux.dev To: "Giri Prasad Goriparthi" Cc: linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261202-b4-ufs-qcom-multi-gear-scaling-v2-2-e2fe4cbce19d@oss.qualcomm.com> References: <20261202-b4-ufs-qcom-multi-gear-scaling-v2-0-e2fe4cbce19d@oss.qualcomm.com> <20261202-b4-ufs-qcom-multi-gear-scaling-v2-2-e2fe4cbce19d@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 08:28:49 +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 1 potential issue to consider: - [High] arm64: dts: qcom: hamoa: opp-level in ufs_opp_table clobbers RPMHPD vote -- commit 870d72d00b1227c3e627343e9d1008e0d9e3c077 Author: Giri Prasad Goriparthi arm64: dts: qcom: hamoa: Add opp-level for UFS gear speed This commit adds opp-level properties (1, 3, and 5) to the UFS OPP table entries in hamoa.dtsi to specify HS gear levels for per-frequency gear scaling. > diff --git a/arch/arm64/boot/dts/qcom/hamoa.dtsi b/arch/arm64/boot/dts/qc= om/hamoa.dtsi > index 443c1a5c212d9..71c8a428de51e 100644 > --- a/arch/arm64/boot/dts/qcom/hamoa.dtsi > +++ b/arch/arm64/boot/dts/qcom/hamoa.dtsi > @@ -3946,6 +3946,7 @@ opp-75000000 { > /bits/ 64 <0>, > /bits/ 64 <0>, > /bits/ 64 <0>; > + opp-level =3D <1>; /* HS-G1 */ > required-opps =3D <&rpmhpd_opp_low_svs>; > }; > =20 > @@ -3958,6 +3959,7 @@ opp-150000000 { > /bits/ 64 <0>, > /bits/ 64 <0>, > /bits/ 64 <0>; > + opp-level =3D <3>; /* HS-G3 */ > required-opps =3D <&rpmhpd_opp_svs>; > }; > =20 > @@ -3970,6 +3972,7 @@ opp-300000000 { > /bits/ 64 <0>, > /bits/ 64 <0>, > /bits/ 64 <0>; > + opp-level =3D <5>; /* HS-G5 */ > required-opps =3D <&rpmhpd_opp_nom>; > }; > }; [Severity: High] Does adding opp-level to these entries clobber the required-opps vote on RPMHPD_CX? Because ufs_mem_hc attaches to a single power domain (GCC_UFS_PHY_GDSC, whose parent is RPMHPD_CX), genpd_set_required_opp_dev() registers the UFS device itself as opp_table->required_devs[0]. When scaling up via ufshcd_opp_set_rate() -> dev_pm_opp_set_opp() -> _set_opp(): drivers/opp/core.c:_set_opp() { ... ret =3D _set_required_opps(dev, opp_table, opp, true); if (ret) { dev_err(dev, "Failed to set required opps: %d\n", ret); return ret; } ret =3D _set_opp_level(dev, opp); ... } _set_required_opps() sets the device's PM domain performance state to the required RPMHPD corner (64, 128, or 256), and _set_opp_level() immediately overwrites the performance state on the same device with opp->level (1, 3, or 5). In rpmhpd_set_performance_state(), levels 1, 3, and 5 map to RPMH_REGULATOR_LEVEL_MIN_SVS (48), undervolting RPMHPD_CX right before the UFS clocks scale up to 150 MHz or 300 MHz. On scale-down, _set_opp_level() runs before _set_required_opps(), causing a transient drop to MIN_SVS before the target corner is applied. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202-b4-ufs-qco= m-multi-gear-scaling-v2-0-e2fe4cbce19d@oss.qualcomm.com?part=3D2