Skip to content

scsi: ufs: add real time/inline crypto support to UFS HCD

Parshuram Thombare linux-block linux-scsi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block: add bi_crypto_ctx variable in struct bioinclude/linux/blk_types.h+4 -02 replies
2/2scsi: ufs: add inline crypto support to UFS HCDMAINTAINERS block/Kconfig drivers/scsi/ufs/Kconfig +6 more+613 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] scsi: ufs: add real time/inline crypto support to UFS HCD

Hello,

This patch series add inline / real time encryption support to UFS host controller driver. It include following patches 0001-block-add-bi_crypto_ctx-variable-in-struct-bio.patch Add 'void *bi_crypto_ctx' variable in 'struct bio' to embded crypto configuration information, which is used by low level driver when bio is processed. This field can also be useful to support inline encryption in other protocols also. 0002-scsi-ufs-add-inline-crypto-support-to-UFS-HCD.patch This patch depends on patch [0/1] in this series.
Patch include changes regarding UFS controller
crypto support. Inline crypto support is provided by using new device mapper called 'crypt-ufs'. Inline encryption can be enabled on UFS device by creating mapping using tool like dmsetup and mapper 'crypt-ufs'. Patch is tested on Cadence UFS controller which currently support AES-ECB inline encryption.
As part of [PATCH 2/2], MAINTAINERS file is modified to add name as supporter of ufshcd crypto files.

Regards,
Parshuram Thombare

Parshuram Thombare (2):
block: add bi_crypto_ctx variable in struct bio
scsi: ufs: add inline crypto support to UFS HCD

 MAINTAINERS                      |    7 +
 block/Kconfig                    |    5 +
 drivers/scsi/ufs/Kconfig         |   12 +
 drivers/scsi/ufs/Makefile        |    1 +
 drivers/scsi/ufs/ufshcd-crypto.c |  453 ++++++++++++++++++++++++++++++++++++++
 drivers/scsi/ufs/ufshcd-crypto.h |  102 +++++++++
 drivers/scsi/ufs/ufshcd.c        |   27 +++-
 drivers/scsi/ufs/ufshcd.h        |    6 +
 drivers/scsi/ufs/ufshci.h        |    1 +
 include/linux/blk_types.h        |    4 +
 10 files changed, 617 insertions(+), 1 deletions(-)
 create mode 100644 drivers/scsi/ufs/ufshcd-crypto.c
 create mode 100644 drivers/scsi/ufs/ufshcd-crypto.h