Patch "scsi: ufs: core: Increase the START STOP UNIT timeout from one to ten seconds" has been added to the 6.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    scsi: ufs: core: Increase the START STOP UNIT timeout from one to ten seconds

to the 6.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     scsi-ufs-core-increase-the-start-stop-unit-timeout-f.patch
and it can be found in the queue-6.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 216a47c4b9ef0080e543a85208ed330cb0904a99
Author: Bart Van Assche <bvanassche@xxxxxxx>
Date:   Wed May 24 13:36:19 2023 -0700

    scsi: ufs: core: Increase the START STOP UNIT timeout from one to ten seconds
    
    [ Upstream commit fe8637f7708c16765ecf4035813efbfdd2c9be10 ]
    
    One UFS vendor asked to increase the UFS timeout from 1 s to 3 s.  Another
    UFS vendor asked to increase the UFS timeout from 1 s to 10 s.  Hence this
    patch that increases the UFS timeout to 10 s. This patch can cause the
    total timeout to exceed 20 s, the Android shutdown timeout.  This is fine
    since the loop around ufshcd_execute_start_stop() exists to deal with unit
    attentions and because unit attentions are reported quickly.
    
    Fixes: dcd5b7637c6d ("scsi: ufs: Reduce the START STOP UNIT timeout")
    Fixes: 8f2c96420c6e ("scsi: ufs: core: Reduce the power mode change timeout")
    Acked-by: Adrian Hunter <adrian.hunter@xxxxxxxxx>
    Reviewed-by: Stanley Chu <stanley.chu@xxxxxxxxxxxx>
    Reviewed-by: Bean Huo <beanhuo@xxxxxxxxxx>
    Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
    Link: https://lore.kernel.org/r/20230524203659.1394307-2-bvanassche@xxxxxxx
    Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
index e7e79f515e141..c36812401ef05 100644
--- a/drivers/ufs/core/ufshcd.c
+++ b/drivers/ufs/core/ufshcd.c
@@ -9184,7 +9184,8 @@ static int ufshcd_execute_start_stop(struct scsi_device *sdev,
 	};
 
 	return scsi_execute_cmd(sdev, cdb, REQ_OP_DRV_IN, /*buffer=*/NULL,
-			/*bufflen=*/0, /*timeout=*/HZ, /*retries=*/0, &args);
+			/*bufflen=*/0, /*timeout=*/10 * HZ, /*retries=*/0,
+			&args);
 }
 
 /**



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux