Skip to content

UFS Advanced RPMB

Bean Huo linux-scsi lkml 3 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 3 repliesApplied
  2. v26 patches 11 repliesSuperseded
  3. v16 patches 0 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/7ufs: bsg: Let result in struct ufs_bsg_reply be signed intinclude/uapi/scsi/scsi_bsg_ufs.h+1 -10 replies
2/7ufs: ufs_bsg: Remove unnecessary length checkupdrivers/ufs/core/ufs_bsg.c+0 -210 replies
3/7ufs: ufs_bsg: Cleanup ufs_bsg_requestdrivers/ufs/core/ufs_bsg.c+8 -190 replies
4/7ufs: core: Split ufshcd_map_sgdrivers/ufs/core/ufshcd.c+29 -190 replies
5/7ufs: core: Advanced RPMB detectiondrivers/ufs/core/ufshcd.c include/ufs/ufs.h+30 -00 replies
6/7ufs: core: Pass EHS length into ufshcd_prepare_req_desc_hdr()drivers/ufs/core/ufshcd.c+10 -110 replies
7/7ufs: core: Add advanced RPMB support in ufs_bsgdrivers/ufs/core/ufs_bsg.c drivers/ufs/core/ufshcd.c include/uapi/scsi/scsi_bsg_ufs.h +3 more+242 -122 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchAvri Altman
1/7
2/7A-b
3/7R-b
4/7R-b
5/7
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/7] UFS Advanced RPMB

Hi,

This series of changes is to add support for UFS advanced RPMB
in ufs_bsg. The advanced RPMB application of user space is ufs_utils, the reference code is
https://github.com/beanhuo/ufs-utils-Micron/blob/ufs_arpmb/ufs_arpmb.c.

Changes to ufs_utils will be pushed to https://github.com/westerndigitalcorporation/ufs-utils
When ARPMB patch is merged into the kernel.

Changelog:

V2 -- V3:
1. Add new patch 1/7
2. Addresses several coding issues raised by Avri Altman.
3. Add __attribute__((__packed__)) for EHS struct in 7/7

V1 -- V2:
1. Added RPMB request completion handling in patch 6/6

RFC -- V1:
1. Split the patch and Remove RFC
2. Add all 8 types of rpmb operations
3. Fix one EHS copy error in ufshcd_advanced_rpmb_req_handler()
4. Fix several issues raised by Avri in the RFC patch:
https://patchwork.kernel.org/project/linux-scsi/patch/[email protected]/#25081912

Bean Huo (7):
ufs: bsg: Let result in struct ufs_bsg_reply be signed int
ufs: ufs_bsg: Remove unnecessary length checkup
ufs: ufs_bsg: Cleanup ufs_bsg_request
ufs: core: Split ufshcd_map_sg
ufs: core: Advanced RPMB detection
ufs: core: Pass EHS length into ufshcd_prepare_req_desc_hdr()
ufs: core: Add advanced RPMB support in ufs_bsg

 drivers/ufs/core/ufs_bsg.c       | 137 +++++++++++++++---------
 drivers/ufs/core/ufshcd.c        | 178 +++++++++++++++++++++++++------
 include/uapi/scsi/scsi_bsg_ufs.h |  48 ++++++++-
 include/ufs/ufs.h                |  29 +++++
 include/ufs/ufshcd.h             |   6 +-
 include/ufs/ufshci.h             |   1 +
 6 files changed, 318 insertions(+), 81 deletions(-)
Signature · 1 line
2.25.1