Inline Encryption Support for UFS
Status from this message: Applied to 5.9/scsi-queue, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest posting 2/23 patches 7 repliesApplied
- v3 posting 2/23 patches 2 repliesSuperseded
- v4 posting 1/24 patches 5 repliesApplied
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 posting 1/2 | 4 patches | 2 replies | Superseded | |
| v2 posting 2/2 | 4 patches | 4 replies | Superseded | |
| v2 posting 1/2 | 3 patches | 12 replies | Superseded | |
| v1 | 3 patches | 5 replies | Superseded |
Changes in v4 from the cover letter
- fix incorrect patch folding
- some cleanups from Eric
Patches in v4 posting 2/2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | scsi: ufs: UFS driver v2.1 spec crypto additionsdrivers/ drivers/ drivers/ | +74 | 0 replies | |
| 2/3 | scsi: ufs: UFS crypto APIdrivers/ drivers/ drivers/ +2 more | +306 | 2 replies | |
| 3/3 | scsi: ufs: Add inline encryption support to UFSdrivers/ drivers/ drivers/ | +76 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Eric Biggers | Stanley Chu | Alim Akhtar |
|---|---|---|---|
| Series | T-b | R-b | |
| 1/3 | R-b | R-b | |
| 2/3 | R-b | R-b | |
| 3/3 | R-b | R-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 3 reviewers.
Cover letter [PATCH v4 0/3] Inline Encryption Support for UFS
This patch series adds support for inline encryption to UFS using the inline encryption support in the block layer. It follows the JEDEC UFSHCI v2.1 specification, which defines inline encryption for UFS.
This patch series previously went through a number of iterations as part of the "Inline Encryption Support" patchset (last version was v13:
https://lkml.kernel.org/r/[email protected]).
This patch series is rebased on v5.8-rc4.
Patch 1 introduces the crypto registers and struct definitions defined in the UFSHCI v2.1 spec.
Patch 2 introduces functions to manipulate the UFS inline encryption hardware (again in line with the UFSHCI v2.1 spec) via the block layer keyslot manager. Device specific drivers must set the UFSHCD_CAP_CRYPTO in hba->caps before ufshcd_hba_init_crypto is called to opt-in to inline encryption support.
Patch 3 wires up ufshcd.c with the UFS crypto API introduced in Patch 2.
This patch series has been tested on some Qualcomm chipsets (on the db845c, sm8150-mtp and sm8250-mtp) using some additional patches at
https://lkml.kernel.org/linux-scsi/[email protected]/
and on some Mediatek chipsets using the additional patch in
https://lkml.kernel.org/linux-scsi/[email protected]/.
These additional patches are required because these chipsets need certain additional behaviour not specified within the UFSHCI v2.1 spec.
Thanks a lot to all the folks who tested this out!
Changes v3 => v4:
- fix incorrect patch folding
- some cleanups from Eric
Changes v2 => v3:
- introduce ufshcd_prepare_req_desc_hdr_crypto to clean up code slightly
- split up ufshcd_hba_init_crypto into ufshcd_hba_init_crypto_capabilities and ufshcd_init_crypto. The first function is called from ufshcd_hba_capabilities, and only reads crypto capabilities from device registers and sets up appropriate crypto structures. The second function is called from ufshcd_init, and actually initializes the inline crypto hardware.
Changes v1 => v2
- handle OCS_DEVICE_FATAL_ERROR explicitly in ufshcd_transfer_rsp_status
Satya Tangirala (3):
scsi: ufs: UFS driver v2.1 spec crypto additions
scsi: ufs: UFS crypto API
scsi: ufs: Add inline encryption support to UFS
drivers/scsi/ufs/Kconfig | 9 ++ drivers/scsi/ufs/Makefile | 1 + drivers/scsi/ufs/ufshcd-crypto.c | 238 +++++++++++++++++++++++++++++++ drivers/scsi/ufs/ufshcd-crypto.h | 77 ++++++++++ drivers/scsi/ufs/ufshcd.c | 49 ++++++- drivers/scsi/ufs/ufshcd.h | 24 ++++ drivers/scsi/ufs/ufshci.h | 67 ++++++++- 7 files changed, 456 insertions(+), 9 deletions(-) create mode 100644 drivers/scsi/ufs/ufshcd-crypto.c create mode 100644 drivers/scsi/ufs/ufshcd-crypto.h
Signature · 1 line
2.27.0.212.ge8ba1cc988-goog