mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Giri Prasad Goriparthi <giri.goriparthi@oss.qualcomm.com>
To: Manivannan Sadhasivam <mani@kernel.org>,
	"James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
	"Martin K. Petersen" <mkp@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: Nitin Rawat <nitin.rawat@oss.qualcomm.com>,
	linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	Giri Prasad Goriparthi <giri.goriparthi@oss.qualcomm.com>,
	Ziqi Chen <ziqi.chen@oss.qualcomm.com>,
	Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Subject: [PATCH v2 0/3] ufs-qcom: Add specified gear support for multi gear scaling
Date: Wed, 02 Dec 2026 13:44:57 +0530	[thread overview]
Message-ID: <20261202-b4-ufs-qcom-multi-gear-scaling-v2-0-e2fe4cbce19d@oss.qualcomm.com> (raw)

This patch series adds support for configuring UFS gear speeds on a
per-OPP frequency basis for Qualcomm UFS host controllers, enabling
more flexible multi-gear scaling.

On certain Qualcomm platforms, the UFS clock frequency and gear speed
do not have a strict one-to-one mapping. To handle this, the first patch
introduces a device tree based configuration mechanism using the
"opp-level" property within the OPP table. This allows each supported
operating frequency to be explicitly associated with a specific HS gear
speed. When this property is absent, the driver gracefully falls back to
the existing default frequency-to-gear lookup table.

The second patch applies this configuration to the Hamoa platform,
assigning the appropriate HS gear levels (G1, G3, G5) to the
corresponding OPP frequency entries in the device tree.

The third patch applies this configuration to the Talos platform,
assigning the appropriate HS gear levels (G1, G1, G3) to the
corresponding OPP frequency entries in the device tree.

Changes in V2:
- Retained Reviewed-by tag from Mani on hamoa.dtsi
- Drop __func__ from dev_err() [Mani]
- Fix variable declaration order to preserve Xmas order [Mani]
- Fix opp-level validation to check OPP_LEVEL_UNSET 
  explicitly [sashiko-bot]
- Add Talos DT opp-level entries

Signed-off-by: Giri Prasad Goriparthi <giri.goriparthi@oss.qualcomm.com>
---
Giri Prasad Goriparthi (3):
      scsi: ufs: ufs-qcom: Add specified gear support for multi gear scaling
      arm64: dts: qcom: hamoa: Add opp-level for UFS gear speed
      arm64: dts: qcom: talos: Add opp-level for UFS gear speed

 arch/arm64/boot/dts/qcom/hamoa.dtsi |  3 +++
 arch/arm64/boot/dts/qcom/talos.dtsi |  3 +++
 drivers/ufs/host/ufs-qcom.c         | 24 ++++++++++++++++++++++--
 3 files changed, 28 insertions(+), 2 deletions(-)
---
base-commit: d138596e9f822033490b2e577ec2ea64f2aa246c
change-id: 20261201-b4-ufs-qcom-multi-gear-scaling-30e082d0aeb6

Best regards,
--  
Giri Prasad Goriparthi <giri.goriparthi@oss.qualcomm.com>


             reply	other threads:[~2026-12-02  8:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  8:14 Giri Prasad Goriparthi [this message]
2026-12-02  8:14 ` [PATCH v2 1/3] scsi: ufs: " Giri Prasad Goriparthi
2026-12-02 11:20   ` Konrad Dybcio
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:15 ` [PATCH v2 3/3] arm64: dts: qcom: talos: " Giri Prasad Goriparthi

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=20261202-b4-ufs-qcom-multi-gear-scaling-v2-0-e2fe4cbce19d@oss.qualcomm.com \
    --to=giri.goriparthi@oss.qualcomm.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=manivannan.sadhasivam@oss.qualcomm.com \
    --cc=mkp@kernel.org \
    --cc=nitin.rawat@oss.qualcomm.com \
    --cc=robh@kernel.org \
    --cc=ziqi.chen@oss.qualcomm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®