mbox series

[v1,0/2] Add UFS LINERESET handling

Message ID 1598261952-29209-1-git-send-email-cang@codeaurora.org (mailing list archive)
Headers show
Series Add UFS LINERESET handling | expand

Message

Can Guo Aug. 24, 2020, 9:39 a.m. UTC
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.

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 | 254 ++++++++++++++++++++++++++++++++--------------
 drivers/scsi/ufs/ufshcd.h |   2 +
 drivers/scsi/ufs/unipro.h |   3 +
 3 files changed, 183 insertions(+), 76 deletions(-)