Skip to content

UFS patches for kernel v5.15

Bart Van Assche linux-scsi 3 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest18 patches 48 repliesApplied
  2. v219 patches 19 repliesApplied
  3. v121 patches 17 repliesSuperseded

Changes in v3 from the cover letter

- Included a stack corruption fix.
- Dropped patch "Remove a local variable" and added patches "Revert "Utilize Transfer Request List Completion Notification Register"" and "Optimize serialization of setup_xfer_req() calls".
- Added patch "Optimize serialization of setup_xfer_req() calls".

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/18scsi: ufs: Fix memory corruption by ufshcd_read_desc_param()drivers/scsi/ufs/ufshcd.c+5 -32 replies
2/18scsi: ufs: Reduce power management code duplicationdrivers/scsi/ufs/cdns-pltfrm.c drivers/scsi/ufs/tc-dwc-g210-pci.c drivers/scsi/ufs/tc-dwc-g210-pltfrm.c +9 more+41 -1962 replies
3/18scsi: ufs: Only include power management code if necessarydrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+12 -02 replies
4/18scsi: ufs: Rename the second ufshcd_probe_hba() argumentdrivers/scsi/ufs/ufshcd.c+4 -42 replies
5/18scsi: ufs: Use DECLARE_COMPLETION_ONSTACK() where appropriatedrivers/scsi/ufs/ufshcd.c+3 -61 reply
6/18scsi: ufs: Remove ufshcd_valid_tag()drivers/scsi/ufs/ufshcd.c+10 -323 replies
7/18scsi: ufs: Verify UIC locking requirements at runtimedrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+10 -81 reply
8/18scsi: ufs: Improve static type checking for the host controller statedrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+23 -172 replies
9/18scsi: ufs: Remove several wmb() callsdrivers/scsi/ufs/ufshcd.c+0 -112 replies
10/18scsi: ufs: Inline ufshcd_outstanding_req_clear()drivers/scsi/ufs/ufshcd.c+1 -111 reply
11/18scsi: ufs: Revert "Utilize Transfer Request List Completion Notification Register"drivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h drivers/scsi/ufs/ufshci.h+15 -436 replies
12/18scsi: ufs: Optimize serialization of setup_xfer_req() callsdrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+2 -132 replies
13/18scsi: ufs: Optimize SCSI command processingdrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+20 -114 replies
14/18scsi: ufs: Fix the SCSI abort handlerdrivers/scsi/ufs/ufshcd.c+19 -351 reply
15/18scsi: ufs: Request sense data asynchronouslydrivers/scsi/ufs/ufshcd.c+33 -311 reply
16/18scsi: ufs: Synchronize SCSI and UFS error handlingdrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+55 -5112 replies
17/18scsi: ufs: Retry aborted SCSI commands instead of completing these successfullydrivers/scsi/ufs/ufshcd.c+23 -121 reply
18/18scsi: ufs: Add fault injection supportdrivers/scsi/ufs/Kconfig drivers/scsi/ufs/Makefile drivers/scsi/ufs/ufs-fault-injection.c +2 more+110 -01 reply

Reviews trailers per patch

17 of 18 patches have a Reviewed-by or Acked-by.

PatchAvri AltmanBean HuoKeoseong ParkDaejun ParkStanley Chu
1/18R-b R-b
2/18R-b R-b R-b R-b
3/18R-b R-b R-b R-b
4/18R-b R-b R-b R-b
5/18R-b R-b R-b
6/18R-b R-b
7/18R-b R-b R-b
8/18R-b R-b R-b
9/18R-b T-b R-b
10/18R-b R-b
11/18T-b
12/18R-b R-b
13/18R-b R-b
14/18R-b
15/18R-b
16/18R-b T-b
17/18R-b
18/18A-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 5 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/18] UFS patches for kernel v5.15

Hi Martin,

Please consider the patches in this series for kernel v5.15.

Thank you,

Bart.

Changes compared to v2:
- Included a stack corruption fix.
- Dropped patch "Remove a local variable" and added patches "Revert "Utilize Transfer Request List Completion Notification Register"" and "Optimize serialization of setup_xfer_req() calls".
- Added patch "Optimize serialization of setup_xfer_req() calls".

Changes compared to v1:
- Left out the SCSI core patches for the SCSI error handler in order not to delay the UFS patches by the conversation around the SCSI error handler patches.
- Restored the WARN_ON_ONCE(tag < 0) statements in the patch that removes ufshcd_valid_tag().
- Split "Fix a race in the completion path" in two patches.
- Added a fault injection patch.

Bart Van Assche (18):
scsi: ufs: Fix memory corruption by ufshcd_read_desc_param()
scsi: ufs: Reduce power management code duplication
scsi: ufs: Only include power management code if necessary
scsi: ufs: Rename the second ufshcd_probe_hba() argument
scsi: ufs: Use DECLARE_COMPLETION_ONSTACK() where appropriate
scsi: ufs: Remove ufshcd_valid_tag()
scsi: ufs: Verify UIC locking requirements at runtime
scsi: ufs: Improve static type checking for the host controller state
scsi: ufs: Remove several wmb() calls
scsi: ufs: Inline ufshcd_outstanding_req_clear()
scsi: ufs: Revert "Utilize Transfer Request List Completion
Notification Register"
scsi: ufs: Optimize serialization of setup_xfer_req() calls
scsi: ufs: Optimize SCSI command processing
scsi: ufs: Fix the SCSI abort handler
scsi: ufs: Request sense data asynchronously
scsi: ufs: Synchronize SCSI and UFS error handling
scsi: ufs: Retry aborted SCSI commands instead of completing these
successfully
scsi: ufs: Add fault injection support

 drivers/scsi/ufs/Kconfig               |   7 +
 drivers/scsi/ufs/Makefile              |   1 +
 drivers/scsi/ufs/cdns-pltfrm.c         |   7 +-
 drivers/scsi/ufs/tc-dwc-g210-pci.c     |  32 +-
 drivers/scsi/ufs/tc-dwc-g210-pltfrm.c  |   7 +-
 drivers/scsi/ufs/ufs-exynos.c          |   7 +-
 drivers/scsi/ufs/ufs-fault-injection.c |  70 ++++
 drivers/scsi/ufs/ufs-fault-injection.h |  24 ++
 drivers/scsi/ufs/ufs-hisi.c            |   7 +-
 drivers/scsi/ufs/ufs-mediatek.c        |   7 +-
 drivers/scsi/ufs/ufs-qcom.c            |   7 +-
 drivers/scsi/ufs/ufshcd-pci.c          |  48 +--
 drivers/scsi/ufs/ufshcd-pltfrm.c       |  47 ---
 drivers/scsi/ufs/ufshcd-pltfrm.h       |  18 -
 drivers/scsi/ufs/ufshcd.c              | 491 +++++++++++--------------
 drivers/scsi/ufs/ufshcd.h              |  63 ++--
 drivers/scsi/ufs/ufshci.h              |   1 -
 17 files changed, 373 insertions(+), 471 deletions(-)
 create mode 100644 drivers/scsi/ufs/ufs-fault-injection.c
 create mode 100644 drivers/scsi/ufs/ufs-fault-injection.h