From patchwork Thu Mar 16 11:02:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 13177379 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 8EECFC6FD1F for ; Thu, 16 Mar 2023 11:02:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229890AbjCPLCr (ORCPT ); Thu, 16 Mar 2023 07:02:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjCPLCp (ORCPT ); Thu, 16 Mar 2023 07:02:45 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D7264BE87 for ; Thu, 16 Mar 2023 04:02:44 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id e15-20020a17090ac20f00b0023d1b009f52so4950663pjt.2 for ; Thu, 16 Mar 2023 04:02:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1678964563; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=CUvfIGYum44+7HmOIzi6cv0TwsGo74SN6AQsYvln/es=; b=MPU6lP07apDfwWGpG8rCYEXhGnjaohG2Gkxqc440LBpjL0onFJ6uINU+Yejpq+NCbm xs3AMETC5ewOVYoDWwlsINZ6vyKKhUoKqwKuP/qtIvcfSQ473P2g/WK8qT2aK/BtEcck FPqfwdbl6aSpCKHso5LtL/LjBKsba7k0Ijq78= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678964563; 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=CUvfIGYum44+7HmOIzi6cv0TwsGo74SN6AQsYvln/es=; b=dOVvMukGnE+pufkk9WvJ8csFW4fn4Buzbk2Alx+fN5hHTuuGzaLs5S+EBQTn6Gr2NG xd8f10tid2V+2Fuuvk5brvO5IeFWQ4ra1epJ4VRcMm5N2QnuVeJUYSRoCBCPF0yw0lcw LPpSFWYokssBvvx1RxqIn4wAY1KfzNjhpo5RBxCzb1syzB+JK5bNimEDLgo+yCpsM4Jo oUoJ0FbdCXRF75vZ/6+gnqTrVdNOaSTvw4lBAPInF1k6vG14vbNTcFoUouhSW7JAWPuJ GBnXjYOPizLmHdh8J2g4S4ADbNLaZHmd+5HOgFefRqRVnFFno7xNcs0k4AeWDRajvLCH vfuQ== X-Gm-Message-State: AO0yUKXXAL7Du5402SGYj3O+6CqN9Q5J4CYhpkj2P32/7hrp46BlBUSB vRIksDkvNFm4YHXkVQkKDh30Om961PlymbgBbzaqE97Rxy17ayFp1JhLxU4xTVfOeK3X7nWigi0 JPlsX0N6I90HosoMdF9HILbCho3LazG+lxUrsnGjeW5Pl2z7viGHXbMpZC/3Idq9P7qzCxZpJeI 8W+FDxDuNmig== X-Google-Smtp-Source: AK7set9cj/N8IvW2pAF7GXxomqptvtmOnEeWgzXilnjC7Ce/Fr+GTz6Tac4Zmt+b2ctOZH+/fB2vWg== X-Received: by 2002:a17:902:c781:b0:19a:8636:9e2c with SMTP id w1-20020a170902c78100b0019a86369e2cmr2513287pla.57.1678964563375; Thu, 16 Mar 2023 04:02:43 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id kb5-20020a170903338500b0019a6cce2060sm5343590plb.57.2023.03.16.04.02.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 04:02:43 -0700 (PDT) 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 3/8] mpi3mr: Modified MUR timeout value to 120 seconds Date: Thu, 16 Mar 2023 16:32:04 +0530 Message-Id: <20230316110209.60145-4-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230316110209.60145-1-ranjan.kumar@broadcom.com> References: <20230316110209.60145-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 4cb00bdb0039..eb9a447986eb 100644 --- a/drivers/scsi/mpi3mr/mpi3mr.h +++ b/drivers/scsi/mpi3mr/mpi3mr.h @@ -126,6 +126,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 25ac3bc597f5..037134f8b024 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)) {