Skip to contentSkip to conversation

mpt3sas: Increase IOCInit request timeout to 30s

PATCH Applied Sreekanth Reddy 2 participants 2 messages Nov 30, 2020 – Dec 1, 2020

Subsystems (2)
lore
Share & tools
lore

Sreekanth Reddy

author maintainer
#0 lore raw

PATCH 1/1 mpt3sas: Increase IOCInit request timeout to 30s

Currently IOCInit request message timeout is set to 10s, which may not be sufficient in some scenarios such as HBA FW downgrade operation. So, increasing IOCInit request timeout to 30s.

---
 drivers/scsi/mpt3sas/mpt3sas_base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/mpt3sas/mpt3sas_base.c +1 -1
index b129f37..0bc3796 100644
@@ -6881,7 +6881,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);
Signature · 1 line
2.18.4
#1 lore raw
Quoted 4 lines · Sreekanth Reddy

Currently IOCInit request message timeout is set to 10s, which may not be sufficient in some scenarios such as HBA FW downgrade operation. So, increasing IOCInit request timeout to 30s.

Applied to 5.10/scsi-fixes, thanks!

[1/1] mpt3sas: Increase IOCInit request timeout to 30s

      https://git.kernel.org/mkp/scsi/c/85dad327d9b5
Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering