[PATCH v3 00/12] Add explicit clock vote and enable power-domain for QCOM-ICE
From: Harshal Dev
Date: Tue Mar 17 2026 - 05:30:57 EST
When the kernel is booted without the 'clk_ignore_unused' and
'pd_ignore_unused' command‑line flags, votes for unused clocks and power
domains are dropped by the kernel post late_init and deferred probe
timeout. Depending on the relative timing between the ICE probe and the
kernel disabling the unused clocks and power domains occasional unclocked
register accesses or 'stuck' clocks are observed during QCOM‑ICE probe.
When the 'iface' clock is not voted on, unclocked register access would
be observed. On the other hand, if the associated power-domain for ICE
is not enabled, a 'stuck' clock is observed.
This patch series resolves both of these problems by adding explicit
power‑domain enablement and 'iface' clock‑vote handling to the QCOM‑ICE
driver.
The clock 'stuck' issue was first reported on Qualcomm RideSX4 (sa8775p)
platform: https://lore.kernel.org/all/ZZYTYsaNUuWQg3tR@x1/
Issue with unclocked ICE register access is easily reproducible on
on Qualcomm RB3Gen2 (kodiak) platform when 'clk_ignore_unused' is
not passed on the kernel command-line.
This patch series has been validated on: SM8650-MTP, RB3Gen2 and
Lemans-EVK.
Signed-off-by: Harshal Dev <harshal.dev@xxxxxxxxxxxxxxxx>
---
Changes in v3:
- Dropped "_clk" suffix from clock names in DT binding and sources and ensure
ICE driver looks for these updated clock names.
- Updated commit message of DT binding change (Patch 1) to explicitly state
that the change is preserving backward compatibility.
- Introduced new DT binding commit to ensure eliza and milos require the iface
clock and power-domain.
- Check for IS_ERR() on devm_clk_get_optional_enabled(dev, "iface") return
value.
- Minor beautification of dev_err() prints as suggested by Konrad.
- Rebased onto latest linux-next tag next-20260316.
- Link to v2: https://lore.kernel.org/r/20260310-qcom_ice_power_and_clk_vote-v2-0-b9c2a5471d9e@xxxxxxxxxxxxxxxx
Changes in v2:
- Updated the DT bindings and ICE driver source to ensure no ABI breaks are
made in this patch series. A follow-up patch series will mark the clocks
and power-domain as required to preserve bisectability.
- Added list of allowed clock-names to the DT-binding.
- Added Fixes tag to mark the original regressions and ensure back-porting
for stable trees.
- Updated the commit messages to explicitly mention the problem of
potential unclocked register access and stuck clocks during probe.
- Dropped explicit calls to pm_runtime_* APIs from ICE probe, suspend and
resume.
- Link to v1: https://lore.kernel.org/r/20260123-qcom_ice_power_and_clk_vote-v1-0-e9059776f85c@xxxxxxxxxxxxxxxx
---
Harshal Dev (12):
dt-bindings: crypto: qcom,ice: Allow power-domain and iface clk
dt-bindings: crypto: qcom,ice: Require power-domain and iface clk
arm64: dts: qcom: kaanapali: Add power-domain and iface clk for ice node
arm64: dts: qcom: lemans: Add power-domain and iface clk for ice node
arm64: dts: qcom: monaco: Add power-domain and iface clk for ice node
arm64: dts: qcom: sc7180: Add power-domain and iface clk for ice node
arm64: dts: qcom: kodiak: Add power-domain and iface clk for ice node
arm64: dts: qcom: sm8450: Add power-domain and iface clk for ice node
arm64: dts: qcom: sm8550: Add power-domain and iface clk for ice node
arm64: dts: qcom: sm8650: Add power-domain and iface clk for ice node
arm64: dts: qcom: sm8750: Add power-domain and iface clk for ice node
soc: qcom: ice: Allow explicit votes on 'iface' clock for ICE
.../bindings/crypto/qcom,inline-crypto-engine.yaml | 35 +++++++++++++++++++++-
arch/arm64/boot/dts/qcom/kaanapali.dtsi | 6 +++-
arch/arm64/boot/dts/qcom/kodiak.dtsi | 6 +++-
arch/arm64/boot/dts/qcom/lemans.dtsi | 6 +++-
arch/arm64/boot/dts/qcom/monaco.dtsi | 6 +++-
arch/arm64/boot/dts/qcom/sc7180.dtsi | 6 +++-
arch/arm64/boot/dts/qcom/sm8450.dtsi | 6 +++-
arch/arm64/boot/dts/qcom/sm8550.dtsi | 6 +++-
arch/arm64/boot/dts/qcom/sm8650.dtsi | 6 +++-
arch/arm64/boot/dts/qcom/sm8750.dtsi | 6 +++-
drivers/soc/qcom/ice.c | 17 +++++++++--
11 files changed, 94 insertions(+), 12 deletions(-)
---
base-commit: 95c541ddfb0815a0ea8477af778bb13bb075079a
change-id: 20260120-qcom_ice_power_and_clk_vote-769704f5036a
Best regards,
--
Harshal Dev <harshal.dev@xxxxxxxxxxxxxxxx>