Skip to content

Support for wrapped inline encryption keys on Qualcomm SoCs

Eric Biggers linux-arm-msm linux-block linux-fscrypt linux-mmc linux-scsi lkml 2 versions – Applied

Status from this message: Applied to 6.16/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v13 Latest3 patches 3 repliesApplied
  2. v124 patches 3 repliesSuperseded

Changes in v13 from the cover letter

- Rebased onto latest upstream
- Resent just the remaining driver patches

Patches in v13 Applied

#Subject and filesSizeRepliesApplied
1/3soc: qcom: ice: make qcom_ice_program_key() take struct blk_crypto_keydrivers/mmc/host/sdhci-msm.c drivers/soc/qcom/ice.c drivers/ufs/host/ufs-qcom.c +1 more+17 -501 reply
2/3soc: qcom: ice: add HWKM support to the ICE driverdrivers/mmc/host/sdhci-msm.c drivers/soc/qcom/ice.c drivers/ufs/host/ufs-qcom.c +1 more+339 -100 replies
3/3ufs: qcom: add support for wrapped keysdrivers/ufs/host/ufs-qcom.c+45 -60 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchManivannan SadhasivamBartosz GolaszewskiKonrad DybcioUlf Hansson
SeriesA-b
1/3A-b T-b A-b
2/3
3/3A-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v13 thread

Cover letter [PATCH v13 0/3] Support for wrapped inline encryption keys on Qualcomm SoCs

Add support for hardware-wrapped inline encryption keys to the Qualcomm ICE (Inline Crypto Engine) and UFS (Universal Flash Storage) drivers.

I'd like these patches to be taken through the scsi tree for 6.16. But the Qualcomm / msm tree would be okay too if that is preferred.

The block layer framework for this feature was merged in 6.15; refer to the "Hardware-wrapped keys" section of Documentation/block/inline-encryption.rst. This patchset wires it up for the newer Qualcomm SoCs, such as SM8650, which have a HWKM (Hardware Key Manager) and support the SCM calls needed to easily use it.

Tested on the SM8650 HDK with xfstests, specifically generic/368 and generic/369, in combination with the required fscrypt patch
https://lore.kernel.org/r/[email protected]
which I plan to apply separately.

Changed in v13:
- Rebased onto latest upstream
- Resent just the remaining driver patches

For changes in v12 and earlier, see
https://lore.kernel.org/r/[email protected]

Eric Biggers (2):
soc: qcom: ice: make qcom_ice_program_key() take struct blk_crypto_key
ufs: qcom: add support for wrapped keys

Gaurav Kashyap (1):
soc: qcom: ice: add HWKM support to the ICE driver

 drivers/mmc/host/sdhci-msm.c |  16 +-
 drivers/soc/qcom/ice.c       | 350 ++++++++++++++++++++++++++++++++---
 drivers/ufs/host/ufs-qcom.c  |  57 ++++--
 include/soc/qcom/ice.h       |  34 ++--
 4 files changed, 396 insertions(+), 61 deletions(-)

base-commit: a52a3c18cdf369a713aca7593332bbb998c71d96

Signature · 1 line
2.49.0