Skip to content

Add UFS LINERESET handling

Can Guo linux-arm-kernel linux-mediatek linux-scsi lkml 3 versions – Applied

Status from this message: Applied to 5.10/scsi-queue, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 14 repliesApplied
  2. v1 posting 2/22 patches 5 repliesApplied
  3. v1 posting 1/22 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Made some cleanup to the 2nd change.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2scsi: ufs: Abort tasks before clear them from doorbelldrivers/scsi/ufs/ufshcd.c+81 -6213 replies
2/2scsi: ufs: Handle LINERESET indication in err handlerdrivers/scsi/ufs/ufshcd.c drivers/scsi/ufs/ufshcd.h drivers/scsi/ufs/ufshci.h +1 more+115 -310 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchStanley Chu
1/2A-b
2/2

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

Read the v2 thread

Cover letter [PATCH v2 0/2] Add UFS LINERESET handling

PA Layer issues a LINERESET to the PHY at the recovery step in the Power Mode change operation. If it happens during auto or mannual hibern8 enter, even if hibern8 enter succeeds, UFS power mode shall be set to PWM-G1 mode and kept in that mode after exit from hibern8, leading to bad performance. Handle the LINERESET in the eh_work by restoring power mode to HS mode after all pending reqs and tasks are cleared from doorbell.

Change since v1:
- Made some cleanup to the 2nd change.

Can Guo (2):
scsi: ufs: Abort tasks before clear them from doorbell
scsi: ufs: Handle LINERESET indication in err handler

 drivers/scsi/ufs/ufshcd.c | 283 +++++++++++++++++++++++++++++++---------------
 drivers/scsi/ufs/ufshcd.h |   2 +
 drivers/scsi/ufs/ufshci.h |   1 +
 drivers/scsi/ufs/unipro.h |   3 +
 4 files changed, 196 insertions(+), 93 deletions(-)
Signature · 1 line
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.