Patch "scsi: pm80xx: Increase timeout for pm80xx mpi_uninit_check()" has been added to the 5.10-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: pm80xx: Increase timeout for pm80xx mpi_uninit_check()

to the 5.10-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-pm80xx-increase-timeout-for-pm80xx-mpi_uninit_c.patch
and it can be found in the queue-5.10 subdirectory.

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



commit e1adf6b9854a54849f2a6e20b5deca66a8328336
Author: Igor Pylypiv <ipylypiv@xxxxxxxxxx>
Date:   Tue Apr 6 11:05:33 2021 -0700

    scsi: pm80xx: Increase timeout for pm80xx mpi_uninit_check()
    
    [ Upstream commit 3f744a14f331f56703a9d74e86520db045f11831 ]
    
    The mpi_uninit_check() takes longer for inbound doorbell register to be
    cleared. Increase the timeout substantially so that the driver does not
    fail to load.
    
    Previously, the inbound doorbell wait time was mistakenly increased in the
    mpi_init_check() instead of mpi_uninit_check(). It is okay to leave the
    mpi_init_check() wait time as-is as these are timeout values and if there
    is a failure, waiting longer is not an issue.
    
    Link: https://lore.kernel.org/r/20210406180534.1924345-2-ipylypiv@xxxxxxxxxx
    Fixes: e90e236250e9 ("scsi: pm80xx: Increase timeout for pm80xx mpi_uninit_check")
    Reviewed-by: Vishakha Channapattan <vishakhavc@xxxxxxxxxx>
    Acked-by: Jack Wang <jinpu.wang@xxxxxxxxx>
    Signed-off-by: Igor Pylypiv <ipylypiv@xxxxxxxxxx>
    Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80xx_hwi.c
index 055f7649676e..27b354860a16 100644
--- a/drivers/scsi/pm8001/pm80xx_hwi.c
+++ b/drivers/scsi/pm8001/pm80xx_hwi.c
@@ -1488,9 +1488,9 @@ static int mpi_uninit_check(struct pm8001_hba_info *pm8001_ha)
 
 	/* wait until Inbound DoorBell Clear Register toggled */
 	if (IS_SPCV_12G(pm8001_ha->pdev)) {
-		max_wait_count = 4 * 1000 * 1000;/* 4 sec */
+		max_wait_count = 30 * 1000 * 1000; /* 30 sec */
 	} else {
-		max_wait_count = 2 * 1000 * 1000;/* 2 sec */
+		max_wait_count = 15 * 1000 * 1000; /* 15 sec */
 	}
 	do {
 		udelay(1);



[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