Re: [PATCH v13 0/6] Enable ICE clock scaling

From: Ulf Hansson

Date: Mon Nov 30 2026 - 08:28:15 EST


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 believe I raised a concern at v12 as well, that the $subject series
are not releasing the OPP vote for ICE beyond probing of sdhci-msm.
The OPP vote is kept forever, which I assume is not really the intent.

By adding the runtime PM support for ICE, it enables the PM domain
(genpd) to manage the save/restore of the OPP votes at runtime
suspend/resume, see genpd_drop|restore_performance_state().

>
> For MMC controllers that do not support clock scaling, the ICE clock frequency
> is kept aligned with the MMC controller’s clock rate (TURBO) to ensure
> consistent operation.
>
> Dynamic clock scaling based on OPP tables enables better power-performance
> trade-offs. By adjusting ICE clock frequencies according to workload and power
> constraints, the system can achieve higher throughput when needed and
> reduce power consumption during idle or low-load conditions.
>
> The OPP table remains optional, absence of the table will not cause
> probe failure. However, in the absence of an OPP table, ICE clocks will
> remain at their default rates, which may limit performance under
> high-load scenarios or prevent performance optimizations during idle periods.
>

[...]

Kind regards
Uffe