Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [PATCH v3 0/6] ICE: Enable runtime PM support and fixes
@ 2026-12-03 12:22 Kuldeep Singh
  2026-12-03 12:22 ` [PATCH v3 1/6] soc: qcom: ice: Fix clock unwind behaviour Kuldeep Singh
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Kuldeep Singh @ 2026-12-03 12:22 UTC (permalink / raw)
  To: Abel Vesa, Bjorn Andersson, Konrad Dybcio, Manivannan Sadhasivam,
	Harshal Dev, Eric Biggers, Ulf Hansson, Bartosz Golaszewski,
	Martin K. Petersen, Gaurav Kashyap, Adrian Hunter,
	James E.J. Bottomley
  Cc: Kuldeep Singh, Konrad Dybcio, linux-arm-msm, linux-crypto,
	linux-mmc, linux-scsi

This series fixes ICE initialization sequence where ICE is modeled as a
standalone device and referenced by storage controllers through
qcom,ice.

Currently, ICE driver enables clocks during probe and keeps them
prepared after probe completes. This keeps the ICE clock voted and
hence, any key programming call from blk-crypto succeed even when
storage driver don't have valid ice instance.

Add runtime PM for ice and link with storage consumer so that PM core
will take care of calling ice suspend/resume sequence. Post that there
will be no consumers of exported ice resume/suspend APIs and hence, drop
them too.

While implementing runtime PM on ice, I noticed couple of other issues
like core clk left enabled on failures of iface clock enablement, and
require polling to complete hwkm bist tests. Make these fixes along-with
this series.

The sequencing bug i noticed in initial versions is fixed with
device_link_add as ice clocks are necessarily on when storage is runtime
active.

=====================
Merge strategy
=====================
There are fixes in storage drivers(sdhci-msm.c and ufs-qcom.c) alongwith
ice driver so better to merge from soc tree with ACK from relevant
maintainers.

Validation:
- Standard and wrapped keys
- Hibernation sequence

Tested on shikra-evk, kodiak rb3-gen2 and sm8750-mtp.

Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
---
Changes in v3:
- Rebase to latest tag next-20261201
- Add 3 new fixes in this series.
- Link ice PM to storage consumer.
- Drop exported ice suspend/resume APIs from storage and ice driver.
- Link to v2: https://patch.msgid.link/20261112-qcom_ice_pm_enable-v2-0-177e454d6f22@oss.qualcomm.com

Changes in v2:
- Drop patch 3/3 and post separately once 1/2 and 2/2 are merged.
- Tag stable kernel for storage fixes.
- Link to v1: https://patch.msgid.link/20261022-qcom_ice_pm_enable-v1-0-f7a84086c651@oss.qualcomm.com

To: Abel Vesa <abelvesa@kernel.org>
To: Bjorn Andersson <andersson@kernel.org>
To: Konrad Dybcio <konradybcio@kernel.org>
To: Manivannan Sadhasivam <mani@kernel.org>
To: Harshal Dev <harshal.dev@oss.qualcomm.com>
To: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
To: Eric Biggers <ebiggers@google.com>
To: Ulf Hansson <ulfh@kernel.org>
To: Bartosz Golaszewski <brgl@kernel.org>
To: "Martin K. Petersen" <mkp@kernel.org>
To: Gaurav Kashyap <quic_gaurkash@quicinc.com>
To: Adrian Hunter <adrian.hunter@intel.com>
To: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: linux-crypto@vger.kernel.org
Cc: linux-mmc@vger.kernel.org
Cc: linux-scsi@vger.kernel.org

---
Kuldeep Singh (6):
      soc: qcom: ice: Fix clock unwind behaviour
      soc: qcom: ice: Wait for HWKM BIST to complete
      soc: qcom: ice: Fix error path on resume failures
      soc: qcom: ice: Add runtime PM support
      ice: Link storage consumers for runtime PM
      soc: qcom: ice: Drop exported resume and suspend APIs

 drivers/mmc/host/sdhci-msm.c |  36 +--------------
 drivers/soc/qcom/ice.c       | 105 +++++++++++++++++++++++++++++++++----------
 drivers/ufs/host/ufs-qcom.c  |  37 ++-------------
 include/soc/qcom/ice.h       |   2 -
 4 files changed, 88 insertions(+), 92 deletions(-)
---
base-commit: d138596e9f822033490b2e577ec2ea64f2aa246c
change-id: 20261022-qcom_ice_pm_enable-3c5d21b99e42

Best regards,
--  
Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-12-03 12:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 12:22 [PATCH v3 0/6] ICE: Enable runtime PM support and fixes Kuldeep Singh
2026-12-03 12:22 ` [PATCH v3 1/6] soc: qcom: ice: Fix clock unwind behaviour Kuldeep Singh
2026-12-03 12:22 ` [PATCH v3 2/6] soc: qcom: ice: Wait for HWKM BIST to complete Kuldeep Singh
2026-12-03 12:22 ` [PATCH v3 3/6] soc: qcom: ice: Fix error path on resume failures Kuldeep Singh
2026-12-03 12:41   ` sashiko-bot
2026-12-03 12:22 ` [PATCH v3 4/6] soc: qcom: ice: Add runtime PM support Kuldeep Singh
2026-12-03 12:49   ` sashiko-bot
2026-12-03 12:22 ` [PATCH v3 5/6] ice: Link storage consumers for runtime PM Kuldeep Singh
2026-12-03 12:53   ` sashiko-bot
2026-12-03 12:22 ` [PATCH v3 6/6] soc: qcom: ice: Drop exported resume and suspend APIs Kuldeep Singh
2026-12-03 12:53   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox