[COMMON] scsi: ufs: exynos: Add ufs dump logs for rare problems
authorhgchu <hg.chu@samsung.com>
Fri, 12 Jan 2018 08:29:35 +0000 (17:29 +0900)
committerJaeHun Jung <jh0801.jung@samsung.com>
Tue, 8 May 2018 08:20:47 +0000 (17:20 +0900)
Change-Id: Iad925aead0912a7c7d706a071dbe8c971267eaa3
Signed-off-by: hgchu <hg.chu@samsung.com>
drivers/scsi/ufs/ufshcd.c

index 9f52239465a840ce1d451c56a52fc781f46f5111..b56a56f97e8bc1ce3f3aa7eb716f12a1d470dd3a 100644 (file)
@@ -72,7 +72,7 @@
 #define QUERY_REQ_TIMEOUT 1500 /* 1.5 seconds */
 
 /* Task management command timeout */
-#define TM_CMD_TIMEOUT 100 /* msecs */
+#define TM_CMD_TIMEOUT 300 /* msecs */
 
 /* maximum number of retries for a general UIC command  */
 #define UFS_UIC_COMMAND_RETRIES 3
@@ -5885,6 +5885,8 @@ static int ufshcd_eh_device_reset_handler(struct scsi_cmnd *cmd)
 
        /* Dump debugging information to system memory */
        ufshcd_vops_dbg_register_dump(hba);
+       exynos_ufs_show_uic_info(hba);
+
        lrbp = &hba->lrb[tag];
        err = ufshcd_issue_tm_cmd(hba, lrbp->lun, 0, UFS_LOGICAL_RESET, &resp);
        if (err || resp != UPIU_TASK_MANAGEMENT_FUNC_COMPL) {
@@ -5908,6 +5910,7 @@ static int ufshcd_eh_device_reset_handler(struct scsi_cmnd *cmd)
 out:
        hba->req_abort_count = 0;
        if (!err) {
+               dev_info(hba->dev, "%s: LU reset succeeded\n", __func__);
                err = SUCCESS;
        } else {
                dev_err(hba->dev, "%s: failed with err %d\n", __func__, err);