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=1796200238; b=35mOqwIlAQ/CUEamG5r9Hz7Jm31VnDzJHOIQAVflnzKm53ju8Y/vsGES6CKhsTCT+VVw i9Vyk7a8PtBI08UDyUyRSQ1VimnpzpmisAR7OymIDz3bKX9uXokpPciyPwl4Ji1AFJ4sW ViiiAuId+LkxGR29x8n53RrztGWFjK1AlXfAz83I8sBXb83yVexfKsMQemeeqE8nGjaB3 8ftXPXzx57hBrhllZ9fA4PW1lSZ8MIfBWiFfza7V4mXCnDSwloMja7Nxbm15VO0ZbXJsF rRIX23F7VzVoZ4ykqc2V3NOR3wZ+WpQowDQPMIg4iXH1ZOgiSgnajU85/aJ1VGVAWEA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796200238; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=oFcGkZfxQKOkhzUX6p0HahvqSWFGL53c/Ii/8qmc4gM=; b=sayCg8LbEyn1HGuPDPIUftwrypoYIdWh9VcklnfPbazy/cF+EtfQ8q++Yd6I7mAQnENn lqQNG+11GrB41ijCn1+W4jGc3Jl8kkQYfcoOVgQyps6saM1gLNV01+pk+eLv0z4mV+Ipn DMrnsMiNhbkryOCMgF+KQIOmLxcr73teqpE10fX/ftawwYaAXqWZErXVEFZyF8tZAHoj/ gZsjnDwZvvBhqUWMK+odQVIoibX+ewMV5pJM2nWStAoIXd6LNZB85FG5WNjnhOmfe7uZ/ 2kfCFsUftfpj7+0WMrVIUcEdn5COsDcC2JsRZLLmplI2rqRN6exvz6xEuniqUoEJi5w== 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=V9gfqN5Y; 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 1D077606A31A; Wed, 2 Dec 2026 08:30:37 +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=V9gfqN5Y Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BE1A1F000C1; Wed, 2 Dec 2026 08:30:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796200237; bh=oFcGkZfxQKOkhzUX6p0HahvqSWFGL53c/Ii/8qmc4gM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=V9gfqN5Ydey6nTb2/6qt+T7AOQM1Q9r1WucYp+T8nZgT/1Wh6OAIsLsltRfdOsPxC 5T5f/rXLbWXb8qlWf0zbR+9dkeJa/HkWfixE8xpWydqtslqMNkux19vPc57dgiHnMB TJGnqFE14eqsSoJxYYkSsFUBoWmEt8ZjFHCisd+uwweb0jJZe7jusiwZhEAUwB0kRp 1RZVTkL4nbvDHi3zBUTvIW4dAqZaufx4kIy2b7QA1gf3tB3AMm/USf3+FRhyOvA/tp uGIe4sL7s1axMST7jpEshin/TElcosvtAVo5iK7yUXtBUDHnxEr/rE04m9Q/8Z+/bg DRhGQ7j0DnevA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: talos: 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-3-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-3-e2fe4cbce19d@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 08:30:37 +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: talos: ufs opp-level overwrites RPMHPD_CX required-opps vote -- commit 6e8685a87ed8d43c7930a350f78d3142645dd78c Author: Giri Prasad Goriparthi arm64: dts: qcom: talos: Add opp-level for UFS gear speed This commit adds opp-level properties to the UFS OPP table in talos.dtsi to specify the UFS HS gear level for each frequency entry. > diff --git a/arch/arm64/boot/dts/qcom/talos.dtsi b/arch/arm64/boot/dts/qc= om/talos.dtsi > index 1d74e459f892e..b9e21108637d2 100644 > --- a/arch/arm64/boot/dts/qcom/talos.dtsi > +++ b/arch/arm64/boot/dts/qcom/talos.dtsi > @@ -1498,6 +1498,7 @@ opp-50000000 { > /bits/ 64 <0>, > /bits/ 64 <0>, > /bits/ 64 <75000000>; > + opp-level =3D <1>; > required-opps =3D <&rpmhpd_opp_low_svs>; > }; > =20 > @@ -1510,6 +1511,7 @@ opp-100000000 { > /bits/ 64 <0>, > /bits/ 64 <0>, > /bits/ 64 <150000000>; > + opp-level =3D <1>; > required-opps =3D <&rpmhpd_opp_svs>; > }; > =20 > @@ -1522,6 +1524,7 @@ opp-200000000 { > /bits/ 64 <0>, > /bits/ 64 <0>, > /bits/ 64 <300000000>; > + opp-level =3D <3>; > required-opps =3D <&rpmhpd_opp_nom>; > }; > }; [Severity: High] Does adding opp-level alongside required-opps here overwrite the UFS controller's RPMHPD_CX performance state vote with the raw UFS gear number (1 or 3)? Because ufs_mem_hc has a single power-domains entry (<&gcc UFS_PHY_GDSC>, which is a subdomain of RPMHPD_CX), __genpd_dev_pm_attach() attaches the UFS device itself as opp_table->required_devs[0]. When _set_opp() scales up, _set_required_opps() votes for the required-opps corner (64, 128, or 256) on the UFS device, and _set_opp_level() runs right after on the same device: drivers/opp/core.c:_set_opp() { ... if (!scaling_down) { 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); if (ret) return ret; } ... } Previously opp->level was unset, so _set_opp_level() was a no-op. With opp-level set to 1 or 3, _set_opp_level() calls dev_pm_domain_set_performance_state(dev, opp->level) on the same UFS device, replacing the SVS (128) or NOM (256) vote on RPMHPD_CX with 1 or 3 (dropping the UFS CX vote to enable_corner) before scaling UFS clocks up to 100 MHz or 200 MHz. --=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=3D3