From: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
To: Ulf Hansson <ulf.hansson@oss.qualcomm.com>,
Abhinaba Rakshit <abhinaba.rakshit@oss.qualcomm.com>
Cc: Abel Vesa <abelvesa@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Manivannan Sadhasivam <mani@kernel.org>,
"James E.J. Bottomley" <James.Bottomley@hansenpartnership.com>,
"Martin K. Petersen" <mkp@kernel.org>,
Adrian Hunter <adrian.hunter@intel.com>,
Ulf Hansson <ulfh@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Neeraj Soni <neeraj.soni@oss.qualcomm.com>,
Harshal Dev <harshal.dev@oss.qualcomm.com>,
linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org,
linux-mmc@vger.kernel.org, devicetree@vger.kernel.org,
Abel Vesa <abel.vesa@oss.qualcomm.com>,
Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Subject: Re: [PATCH v13 0/6] Enable ICE clock scaling
Date: Tue, 1 Dec 2026 12:20:35 +0530 [thread overview]
Message-ID: <51a4304d-2280-4fa3-a811-91ec46001148@oss.qualcomm.com> (raw)
In-Reply-To: <CAPx+jO9JyL1cgy3Qr8svAq2BzqaSH_k4VCB8QZxEyObGiFW9Vg@mail.gmail.com>
On 30-11-2026 18:57, Ulf Hansson wrote:
> On Thu, Nov 12, 2026 at 11:39 PM Abhinaba Rakshit
> <abhinaba.rakshit@oss.qualcomm.com> wrote:
>>
>> Introduce support for dynamic clock scaling of the ICE (Inline Crypto Engine)
>> using the OPP framework. During ICE device probe, the driver now attempts to
>> parse an optional OPP table from the ICE-specific device tree node for
>> DVFS-aware operations. API qcom_ice_scale_clk is exposed by ICE driver
>> and is invoked by UFS host controller driver in response to clock scaling
>> requests, ensuring coordination between ICE and host controller.
>
> Okay, so I had a closer look at this and I think a better way forward
> is to start by adding support for runtime PM for ICE. Then we can add
> OPP support for ICE on top.
>
> To implement runtime PM support for ICE, I suggest during the probe of
> the sdhci-msm driver when it calls devm_of_qcom_ice_get() we should
> hook up a device link from the consumer (sdhci-msm) to the supplier
> (ice). In this way, there is no need for the explicit calls to
> qcom_ice_suspend|resume() from the sdhci-msm driver, but instead that
> will be handled through the runtime PM core.
I am working on enabling runtime PM in ice[1] and we can review/discuss
the implementation there. Btw, without opp table too the ice clocks are
left default on after ice probe.
I think adding link should avoid making explicit qcom_ice_resume/suspend
calls from sdhci-msm/ufs-qcom driver which seems valuable suggestion but
there's an issue identified where program_key calls arrive before
qcom_ice_enable happens in ufs-qcom/sdhci-msm. Let me check if using
devlink help in fixing that too. I am going to post v3 for storage
drivers fixes and will incorporate this suggestion too.
[1]
https://lore.kernel.org/all/20261022-qcom_ice_pm_enable-v1-3-f7a84086c651@oss.qualcomm.com/
--
Regards
Kuldeep
prev parent reply other threads:[~2026-12-01 6:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 22:38 Abhinaba Rakshit
2026-11-12 22:38 ` [PATCH v13 1/6] soc: qcom: ice: Add OPP-based clock scaling support for ICE Abhinaba Rakshit
2026-11-12 22:38 ` [PATCH v13 2/6] ufs: host: Add ICE clock scaling during UFS clock changes Abhinaba Rakshit
2026-11-12 22:38 ` [PATCH v13 3/6] mmc: sdhci-msm: Set ICE clk to TURBO at sdhci ICE init Abhinaba Rakshit
2026-11-12 22:38 ` [PATCH v13 4/6] arm64: dts: qcom: kodiak: Add OPP-table for ICE UFS and ICE SDHC nodes Abhinaba Rakshit
2026-11-12 22:38 ` [PATCH v13 5/6] arm64: dts: qcom: monaco: " Abhinaba Rakshit
2026-11-12 22:38 ` [PATCH v13 6/6] arm64: dts: qcom: lemans: Add OPP-table for ICE UFS device node Abhinaba Rakshit
2026-11-30 13:27 ` [PATCH v13 0/6] Enable ICE clock scaling Ulf Hansson
2026-12-01 6:50 ` Kuldeep Singh [this message]
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=51a4304d-2280-4fa3-a811-91ec46001148@oss.qualcomm.com \
--to=kuldeep.singh@oss.qualcomm.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=abel.vesa@oss.qualcomm.com \
--cc=abelvesa@kernel.org \
--cc=abhinaba.rakshit@oss.qualcomm.com \
--cc=adrian.hunter@intel.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=harshal.dev@oss.qualcomm.com \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mani@kernel.org \
--cc=mkp@kernel.org \
--cc=neeraj.soni@oss.qualcomm.com \
--cc=robh@kernel.org \
--cc=ulf.hansson@oss.qualcomm.com \
--cc=ulfh@kernel.org \
/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®