Skip to content

scsi: ufs: Add support to control UFS device background operations

Sujit Reddy Thumma linux-arm-msm linux-scsi 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 0 repliesNew
  2. v32 patches 10 repliesSuperseded
  3. v22 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches2 repliesSuperseded

Changes in v4 from the cover letter

- Addressed some of the comments by Seungwon Jeon on runtime PM.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2scsi: ufs: Add support for host assisted background operationsdrivers/scsi/ufs/ufs.h drivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h+376 -00 replies
2/2scsi: ufs: Add runtime PM support for UFS host controller driverdrivers/scsi/ufs/ufshcd-pci.c drivers/scsi/ufs/ufshcd-pltfrm.c drivers/scsi/ufs/ufshcd.c+111 -70 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH V4 0/2] scsi: ufs: Add support to control UFS device background operations

Add host assisted background operations for UFS device and runtime PM helpers for ufshcd platform and pci glue drivers. The background operations are disabled during runtime resume and enabled when the device is idle and runtime suspended.

These patches depends on:
[PATCH V4 1/2] scsi: ufs: Add support for sending NOP OUT UPIU [PATCH V4 2/2] scsi: ufs: Set fDeviceInit flag to initiate device initialization

Changes from v3:
- Addressed some of the comments by Seungwon Jeon on runtime PM.
Changes from v2:
- Enable auto bkops by default explicitly during bootup so that we may not assume it as enabled after reset.
- Enable runtime PM support for contexts that are not part of SCSI, so that the host is not suspended while running other contexts like bkops exception handling.
Changes from v1:
- Minor cleanup and rebase
- Forced enable of auto bkops during initialization to make sure device and driver state are matched.

Sujit Reddy Thumma (2):
scsi: ufs: Add support for host assisted background operations
scsi: ufs: Add runtime PM support for UFS host controller driver

 drivers/scsi/ufs/ufs.h           |   23 +++
 drivers/scsi/ufs/ufshcd-pci.c    |   62 ++++++-
 drivers/scsi/ufs/ufshcd-pltfrm.c |   48 +++++-
 drivers/scsi/ufs/ufshcd.c        |  351 ++++++++++++++++++++++++++++++++++++++
 drivers/scsi/ufs/ufshcd.h        |   10 +
 5 files changed, 487 insertions(+), 7 deletions(-)
Signature · 2 lines
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation.