From patchwork Mon Nov 30 08:27:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 334970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, MIME_HEADER_CTYPE_ONLY, MIME_NO_TEXT, SPF_HELO_NONE, SPF_PASS, T_TVD_MIME_NO_HEADERS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E3D4C5519F for ; Mon, 30 Nov 2020 08:27:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 89E00206B7 for ; Mon, 30 Nov 2020 08:26:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="YXooGNC/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726452AbgK3I07 (ORCPT ); Mon, 30 Nov 2020 03:26:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbgK3I06 (ORCPT ); Mon, 30 Nov 2020 03:26:58 -0500 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B65AEC0613D2 for ; Mon, 30 Nov 2020 00:26:18 -0800 (PST) Received: by mail-pl1-x643.google.com with SMTP id l11so6095327plt.1 for ; Mon, 30 Nov 2020 00:26:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=l/QoZLH6imDTZqeSrwXrwLfKUpYYJOPMUepB/IsyC7Q=; b=YXooGNC/TQfMpRQSO3VleV6wr65CQhxyLbkn54aFMj2rABdi+DtDaD9X4s3vdOHfkv 4PlA0u6BQEdM1t4/znKZ+p0KCY3zM6E+bycmFzZZA7ipz7wtjHzsdCS/kEPMyU3XHmae Y1CvAnumZxJoaKot2c9JLl2wYMPHGDBnR84Xg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=l/QoZLH6imDTZqeSrwXrwLfKUpYYJOPMUepB/IsyC7Q=; b=BzfAlrN6VS1KyAKIpsdytNHBzLwxletJaZDd/hz87AIt3n5SEEiufd91JYvwgqb6Z2 kWEYxEHM9Dco01lB1LXZyhcf09yUxW6RnNKGQRkkvsP0VWnXbXoq54D433aHoVMs79qJ /ittrW8D3FbpbAYYs3ek0bKdSonwax+3Akxd422JPdkEybEvX9D/pOduExh5Cc7zR7AV TJNgMgPVfB3Dhu3FHGuxk80/SeFuM+brk5Oojp4rMJ6H8rk7e67rQlN0CkuXCxUiklnD rTmT9l05/6pDrjq+lRCqmN7wQfs8o4bjvqwxkmjVVoJRYVV4XPHENrhwX8fFpS7TugzD yGBA== X-Gm-Message-State: AOAM533cbwqTHQPoLARDM/+OTiD/hNyv9x1R0wK5T5x4yNxllYGhKeMQ cK2ehT+sJkHe79Gbs7wlVkOIL9K+RhyB4iug X-Google-Smtp-Source: ABdhPJwpOHTPhkBWdHSLxyJ/c2uhd5FJ6TCG0IM3aQIN/yBu/Z7Ww+VVOCTU2WEP/5pKP1O4XUrvPg== X-Received: by 2002:a17:90a:fcc:: with SMTP id 70mr11781368pjz.168.1606724778148; Mon, 30 Nov 2020 00:26:18 -0800 (PST) Received: from dhcp-10-123-20-36.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id z206sm16146943pfc.3.2020.11.30.00.26.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 00:26:17 -0800 (PST) From: Sreekanth Reddy To: martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, sathya.prakash@broadcom.com, suganath-prabu.subramani@broadcom.com, Sreekanth Reddy Subject: [PATCH] mpt3sas: Increase IOCInit request timeout to 30s Date: Mon, 30 Nov 2020 13:57:33 +0530 Message-Id: <20201130082733.26120-1-sreekanth.reddy@broadcom.com> X-Mailer: git-send-email 2.18.4 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org 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. Signed-off-by: Sreekanth Reddy --- 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 b129f37..0bc3796 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_base.c +++ b/drivers/scsi/mpt3sas/mpt3sas_base.c @@ -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);