All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add UFS LINERESET handling
@ 2020-09-03  2:24 Can Guo
  2020-09-03  2:24   ` Can Guo
                   ` (2 more replies)
  0 siblings, 3 replies; 42+ messages in thread
From: Can Guo @ 2020-09-03  2:24 UTC (permalink / raw)
  To: asutoshd, nguyenb, hongwus, ziqichen, rnayak, linux-scsi,
	kernel-team, saravanak, salyzyn, cang

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(-)

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.


^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2020-09-16  6:35 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-03  2:24 [PATCH v2 0/2] Add UFS LINERESET handling Can Guo
2020-09-03  2:24 ` [PATCH v2 1/2] scsi: ufs: Abort tasks before clear them from doorbell Can Guo
2020-09-03  2:24   ` Can Guo
2020-09-03  2:24   ` Can Guo
2020-09-09  5:05   ` James Bottomley
2020-09-09  5:05     ` James Bottomley
2020-09-09  5:05     ` James Bottomley
2020-09-10  2:32     ` Martin K. Petersen
2020-09-10  2:32       ` Martin K. Petersen
2020-09-10  2:32       ` Martin K. Petersen
2020-09-10  2:48       ` Stanley Chu
2020-09-10  2:48         ` Stanley Chu
2020-09-10  2:48         ` Stanley Chu
2020-09-10  6:18         ` James Bottomley
2020-09-10  6:18           ` James Bottomley
2020-09-10  6:18           ` James Bottomley
2020-09-10  8:18           ` Stanley Chu
2020-09-10  8:18             ` Stanley Chu
2020-09-10  8:18             ` Stanley Chu
2020-09-10 16:09             ` James Bottomley
2020-09-10 16:09               ` James Bottomley
2020-09-10 16:09               ` James Bottomley
2020-09-11  2:16               ` Can Guo
2020-09-11  9:09                 ` Bean Huo
2020-09-11  9:09                   ` Bean Huo
2020-09-11  9:09                   ` Bean Huo
2020-09-14  5:00                   ` Can Guo
2020-09-14  5:00                     ` Can Guo
2020-09-14  5:00                     ` Can Guo
2020-09-15  3:14                   ` Can Guo
2020-09-15  3:14                     ` Can Guo
2020-09-15  3:14                     ` Can Guo
2020-09-15 20:21                     ` Martin K. Petersen
2020-09-15 20:21                       ` Martin K. Petersen
2020-09-15 20:21                       ` Martin K. Petersen
2020-09-16  6:34                       ` Can Guo
2020-09-16  6:34                         ` Can Guo
2020-09-16  6:34                         ` Can Guo
2020-09-11  2:16               ` Can Guo
2020-09-11  2:16                 ` Can Guo
2020-09-03  2:24 ` [PATCH v2 2/2] scsi: ufs: Handle LINERESET indication in err handler Can Guo
2020-09-09  2:09 ` [PATCH v2 0/2] Add UFS LINERESET handling Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.