mbox series

[v1,0/6] Complementary changes for error handling

Message ID 1620885319-15151-1-git-send-email-cang@codeaurora.org (mailing list archive)
Headers show
Series Complementary changes for error handling | expand

Message

Can Guo May 13, 2021, 5:55 a.m. UTC
Commit cb7e6f05fce67c965194ac04467e1ba7bc70b069 ("scsi: ufs: core: Enable
power management for wlun") makes the UFS device W-LU the supplier, based
on which we need to make some changes to accomodate error handling.

This series is tested by fault injections (to IRQ handler, UIC cmds and
task abort where error handler can possibley be invoked) in all possible
contexts, e.g., scaling, gating, runtime and system suspend/resume.

Below changes are tested as a whole and based on 5.14/scsi-queue.

Can Guo (6):
  scsi: ufs: Differentiate status between hba pm ops and wl pm ops
  scsi: ufs: Update the return value of supplier pm ops
  scsi: ufs: Simplify error handling preparation
  scsi: ufs: Update ufshcd_recover_pm_error()
  scsi: ufs: Let host_sem cover the entire system suspend/resume
  scsi: ufs: Update the fast abort path in ufshcd_abort() for PM
    requests

 drivers/scsi/ufs/ufshcd.c | 180 +++++++++++++++++++++++++---------------------
 drivers/scsi/ufs/ufshcd.h |   4 +-
 2 files changed, 103 insertions(+), 81 deletions(-)