scsi: mpt3sas: Increase IOCInit request timeout to 30s
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>
Mon, 30 Nov 2020 08:27:33 +0000 (13:57 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Dec 2020 05:30:33 +0000 (00:30 -0500)
Currently the IOCInit request message timeout is set to 10s. This is not
sufficient in some scenarios such as during HBA FW downgrade operations.

Increase the IOCInit request timeout to 30s.

Link: https://lore.kernel.org/r/20201130082733.26120-1-sreekanth.reddy@broadcom.com
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c

index e4cc92bc4d94f6e5cc488057d51c0128f7138819..bb940cbcbb5dd7a6b212f20477d6d13c80d567a7 100644 (file)
@@ -6459,7 +6459,7 @@ _base_send_ioc_init(struct MPT3SAS_ADAPTER *ioc)
 
        r = _base_handshake_req_reply_wait(ioc,
            sizeof(Mpi2IOCInitRequest_t), (u32 *)&mpi_request,
-           sizeof(Mpi2IOCInitReply_t), (u16 *)&mpi_reply, 10);
+           sizeof(Mpi2IOCInitReply_t), (u16 *)&mpi_reply, 30);
 
        if (r != 0) {
                ioc_err(ioc, "%s: handshake failed (r=%d)\n", __func__, r);