From: sashiko-bot@kernel.org
To: "Giri Prasad Goriparthi" <giri.goriparthi@oss.qualcomm.com>
Cc: linux-scsi@vger.kernel.org, devicetree@vger.kernel.org,
robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 2/3] arm64: dts: qcom: hamoa: Add opp-level for UFS gear speed
Date: Wed, 02 Dec 2026 08:28:49 +0000 [thread overview]
Message-ID: <sashiko-outbox-245188@kernel.org> (raw)
In-Reply-To: <20261202-b4-ufs-qcom-multi-gear-scaling-v2-2-e2fe4cbce19d@oss.qualcomm.com>
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 <giri.goriparthi@oss.qualcomm.com>
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/qcom/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 = <1>; /* HS-G1 */
> required-opps = <&rpmhpd_opp_low_svs>;
> };
>
> @@ -3958,6 +3959,7 @@ opp-150000000 {
> /bits/ 64 <0>,
> /bits/ 64 <0>,
> /bits/ 64 <0>;
> + opp-level = <3>; /* HS-G3 */
> required-opps = <&rpmhpd_opp_svs>;
> };
>
> @@ -3970,6 +3972,7 @@ opp-300000000 {
> /bits/ 64 <0>,
> /bits/ 64 <0>,
> /bits/ 64 <0>;
> + opp-level = <5>; /* HS-G5 */
> required-opps = <&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 = _set_required_opps(dev, opp_table, opp, true);
if (ret) {
dev_err(dev, "Failed to set required opps: %d\n", ret);
return ret;
}
ret = _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.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202-b4-ufs-qcom-multi-gear-scaling-v2-0-e2fe4cbce19d@oss.qualcomm.com?part=2
next prev parent reply other threads:[~2026-12-02 8:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 8:14 [PATCH v2 0/3] ufs-qcom: Add specified gear support for multi gear scaling Giri Prasad Goriparthi
2026-12-02 8:14 ` [PATCH v2 1/3] scsi: ufs: " Giri Prasad Goriparthi
2026-12-02 8:32 ` sashiko-bot
2026-12-02 8:14 ` [PATCH v2 2/3] arm64: dts: qcom: hamoa: Add opp-level for UFS gear speed Giri Prasad Goriparthi
2026-12-02 8:28 ` sashiko-bot [this message]
2026-12-02 8:15 ` [PATCH v2 3/3] arm64: dts: qcom: talos: " Giri Prasad Goriparthi
2026-12-02 8:30 ` sashiko-bot
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=sashiko-outbox-245188@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=giri.goriparthi@oss.qualcomm.com \
--cc=linux-scsi@vger.kernel.org \
--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.