From patchwork Fri Feb 24 14:43:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 13151307 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E4C0C678D5 for ; Fri, 24 Feb 2023 14:44:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbjBXOoJ (ORCPT ); Fri, 24 Feb 2023 09:44:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230005AbjBXOoD (ORCPT ); Fri, 24 Feb 2023 09:44:03 -0500 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44205EFA0 for ; Fri, 24 Feb 2023 06:43:59 -0800 (PST) Received: by mail-pl1-x631.google.com with SMTP id s5so16887226plg.0 for ; Fri, 24 Feb 2023 06:43:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=6TIA6PF2Fw0XsEsbNY/EQJt+AprKJMckbUMx7Gg427M=; b=DS58oLNEERqgU7mzy6VnAzP3/XJS+ZQCnepYtBCbibki6Rh95452+WKNTY4wtIyfkB T0ktsempLnm8kk2ExjPNym5g2obYlpIY1rejYoJK9tIeq7ix4HukStLI5hHOGrjO+irs eGZjuvQq98lr1iUR7yP5sB1uwhK3RmNK0ta4E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6TIA6PF2Fw0XsEsbNY/EQJt+AprKJMckbUMx7Gg427M=; b=n1v70kVJUoQfC1v7YnOcCLG3hlnoV+TxAC9uMdodQhRvgo4dk3dVCqbryGTBRPA7Le HeqThE1TxxjbsWb8snbCsgzb0BBRTbx8jyDQIn13wqDqcOndkuiG60LF6EiKNTfCrf6z 66VwvdrMrgtk3tXzSIJXrA9GTOIOZ8vmD2cGQPpmQAWhMGbLl21+Edjz0PNGPerbKxAl 0yX7N7yQ6ULD+z3zhJBYChS9Q2zlJb5CwcGQ0sAV3xwSzQnQoOtM1rqA2K5uUgvnVtIX gQTngCbUeLTmrTOWnjnw8eVoq6AYRv7z1ivc7RMXG5Z3I9r0IPBTnRX+PFSxwr5e7Lvx Ig7A== X-Gm-Message-State: AO0yUKX4HumIm8q/AOPsa9XsG2e/jKbdtDWhP/wE2/h4tVUxgF4HJZZ/ kwkXk57xxp1iKcxvKkeTlSS1g9brY60WvRvy1sWizsOt7ZMRwJojRzmNBnwmm+cBODC2U37d03W joz9+mnNpOsfcXxJM8TfngbAlh9DafWlqWAIHsyvT5k05tiTttB0R5Sc0KLnlQRCV0MHik/G6kx L6e+HfRsY= X-Google-Smtp-Source: AK7set+p9yjaVFa0jJFN328Hn6SBSJIRsx6Q1o3HaR1eDSpNQYIINR3sEat4apLC2ErnJvvNJIKqvw== X-Received: by 2002:a17:903:1392:b0:19c:b781:fa8b with SMTP id jx18-20020a170903139200b0019cb781fa8bmr5894019plb.51.1677249838480; Fri, 24 Feb 2023 06:43:58 -0800 (PST) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id b5-20020a170902a9c500b00186748fe6ccsm8911549plr.214.2023.02.24.06.43.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Feb 2023 06:43:58 -0800 (PST) From: Ranjan Kumar To: linux-scsi@vger.kernel.org, martin.petersen@oracle.com Cc: rajsekhar.chundru@broadcom.com, sathya.prakash@broadcom.com, sumit.saxena@broadcom.com, Ranjan Kumar , Sreekant Reddy Subject: [PATCH 02/15] mpi3mr: Modified MUR timeout value to 120 seconds Date: Fri, 24 Feb 2023 06:43:07 -0800 Message-Id: <20230224144320.10601-3-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230224144320.10601-1-ranjan.kumar@broadcom.com> References: <20230224144320.10601-1-ranjan.kumar@broadcom.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Modified Message Unit Reset timeout value to 120 seconds from the previous value of 30 seconds. Signed-off-by: Ranjan Kumar Signed-off-by: Sreekant Reddy --- drivers/scsi/mpi3mr/mpi3mr.h | 1 + drivers/scsi/mpi3mr/mpi3mr_fw.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/mpi3mr/mpi3mr.h b/drivers/scsi/mpi3mr/mpi3mr.h index def4c5e15cd8..e8079b380fc8 100644 --- a/drivers/scsi/mpi3mr/mpi3mr.h +++ b/drivers/scsi/mpi3mr/mpi3mr.h @@ -127,6 +127,7 @@ extern atomic64_t event_counter; #define MPI3MR_RAID_ERRREC_RESET_TIMEOUT 180 #define MPI3MR_PREPARE_FOR_RESET_TIMEOUT 180 #define MPI3MR_RESET_ACK_TIMEOUT 30 +#define MPI3MR_MUR_TIMEOUT 120 #define MPI3MR_WATCHDOG_INTERVAL 1000 /* in milli seconds */ diff --git a/drivers/scsi/mpi3mr/mpi3mr_fw.c b/drivers/scsi/mpi3mr/mpi3mr_fw.c index 0c4aabaefdcc..5f6c9a8a9e35 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_fw.c +++ b/drivers/scsi/mpi3mr/mpi3mr_fw.c @@ -1092,7 +1092,7 @@ static int mpi3mr_issue_and_process_mur(struct mpi3mr_ioc *mrioc, ioc_config &= ~MPI3_SYSIF_IOC_CONFIG_ENABLE_IOC; writel(ioc_config, &mrioc->sysif_regs->ioc_configuration); - timeout = MPI3MR_RESET_ACK_TIMEOUT * 10; + timeout = MPI3MR_MUR_TIMEOUT * 10; do { ioc_status = readl(&mrioc->sysif_regs->ioc_status); if ((ioc_status & MPI3_SYSIF_IOC_STATUS_RESET_HISTORY)) {