Re: [PATCH v13 0/6] Enable ICE clock scaling
From: Kuldeep Singh
Date: Tue Dec 01 2026 - 01:50:57 EST
On 30-11-2026 18:57, Ulf Hansson wrote:
> On Thu, Nov 12, 2026 at 11:39 PM Abhinaba Rakshit
> <abhinaba.rakshit@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx/
--
Regards
Kuldeep