Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1930458pxu; Sun, 13 Dec 2020 07:57:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvKMdbJY3hRwCnN834r4LunwbewNmlS4vCELdPatVKyknwXyp7yhP1AlRSIbFxon+TIJPk X-Received: by 2002:a50:bf4a:: with SMTP id g10mr20792738edk.201.1607875067710; Sun, 13 Dec 2020 07:57:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607875067; cv=none; d=google.com; s=arc-20160816; b=hatMLGcKvB8JTPvXeLQeSLYTtaqfh4t24RtGA1jFT0iN1tk79NcNIFu/M20RLV0zmv zMNwMsP9ouJr5z0GTeteuDDe88ygMFxn5xF2XTL/Kn8wzcNIJ6VMVUo4vx7gShyvTaQN Pa/jOvd7PodqskhuAORH039Hx9HvWnVLwG2blVu058lOgW3dIw06/j0En5/Q0c3kZyOe pWHQd+3tEoRSFThyvmcow6gtXdh0VONt9/jr510KYwGllo2ZiVo4nwcykgQgTFFmNp3I J7chgbEU+DUQYZAQSelU0zsf5HEuEabs20vt7S3lvT1KD5poV/V3NZNvSxrg0CcDMBGC /h+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=QaI1e5x+itg5kLq7ZkT6NqzFRBSNK+9DvGzPmmHGsEQ=; b=zhWXhRG63FddDNzdCAYAZLNkH4niHRzBfywTL2qPHV51lodEjCx0YgS2lJkQP8GVGX 5sP6FRpTgsmvvLKMuZJBfmoI3EKbukRWJ0yyB2vSi98d4ZH7+M0U0SUhV8XUWwhP3z5g c/uw5+HJ051BqopT2itC7w1W92dRMZ6BTT4ofFO4FlAaiYtZuTGVT5upYBOcVPLeENCP EaSNOz/A5qBmWhYk8n2IQzf9ReK6T4p1wxCnwyK1cI5iMl2NC0qfzNP00/MO7WfUOQOU B6rt5T33jLymB/EZFNgjiyB6SCelZW2W8FhkCTG58O67kwQt3a6BMeQsKbru/axoWo1z 6z4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o21si8795363edr.305.2020.12.13.07.57.25; Sun, 13 Dec 2020 07:57:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439525AbgLLQMC (ORCPT + 99 others); Sat, 12 Dec 2020 11:12:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:59452 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439443AbgLLQKV (ORCPT ); Sat, 12 Dec 2020 11:10:21 -0500 From: Sasha Levin Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sreekanth Reddy , "Martin K . Petersen" , Sasha Levin , MPT-FusionLinux.pdl@avagotech.com, linux-scsi@vger.kernel.org Subject: [PATCH AUTOSEL 5.9 16/23] scsi: mpt3sas: Increase IOCInit request timeout to 30s Date: Sat, 12 Dec 2020 11:07:57 -0500 Message-Id: <20201212160804.2334982-16-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201212160804.2334982-1-sashal@kernel.org> References: <20201212160804.2334982-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sreekanth Reddy [ Upstream commit 85dad327d9b58b4c9ce08189a2707167de392d23 ] 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 Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/mpt3sas/mpt3sas_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c index 87d05c1950870..d62c1aaf53fbd 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_base.c +++ b/drivers/scsi/mpt3sas/mpt3sas_base.c @@ -6441,7 +6441,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); -- 2.27.0