[PATCH v1 0/3] scsi: ufs: Provide fatal and auto-hibern8 error history

2019-07-07 Thread Stanley Chu
This patch set provides more information of fatal errros and auto-hibern8 errors to improve debugging by keeping their error history as completed as possible. Stanley Chu (3): scsi: ufs: Change names related to error history scsi: ufs: Add fatal and auto-hibern8 error history scsi: ufs: Do n

[PATCH v1 2/3] scsi: ufs: Add fatal and auto-hibern8 error history

2019-07-07 Thread Stanley Chu
Provide more information of fatal errros and auto-hibern8 errors to improve debugging by extending existed UFS error history framework. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.c | 11 ++- drivers/scsi/ufs/ufshcd.h | 6 ++ 2 files changed, 16 insertions(+), 1 deletion(

[PATCH v1 1/3] scsi: ufs: Change names related to error history

2019-07-07 Thread Stanley Chu
Remove "uic" term in below error history functions and structures for more general usages, struct ufs_uic_err_reg_hist; void ufshcd_update_uic_reg_hist(struct ufs_uic_err_reg_hist *reg_hist, u32 reg); void ufshcd_print_uic_err_hist(struct ufs_hba *hba, struct ufs_uic)err_reg_hist *

[PATCH v1 3/3] scsi: ufs: Do not reset error history during host reset

2019-07-07 Thread Stanley Chu
Currently UFS error history will be reset and lost during host reset flow by ufschd_probe_hba(). We shall not reset it and then error history can be kept as completed as possible to improve debugging. In addition, fix a minor display error in ufshcd_print_err_hist(). Signed-off-by: Stanley Chu

Re: Slow I/O on USB media after commit f664a3cc17b7d0a2bc3b3ab96181e1029b0ec0e6

2019-07-07 Thread Ming Lei
On Sat, Jul 06, 2019 at 11:33:27AM +0200, Andrea Vai wrote: > On 03/07/19 14:36:05, Ming Lei wrote: > > On Wed, Jul 03, 2019 at 07:11:17AM +0200, Andrea Vai wrote: > > > On 03/07/19 10:01:23, Ming Lei wrote: > > > > On Wed, Jul 03, 2019 at 12:39:31AM +0200, Andrea Vai wrote: > > > > > On 02/07/19 2