From patchwork Mon Mar 11 11:35:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 13588676 Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78CF53BB36 for ; Mon, 11 Mar 2024 11:37:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710157072; cv=none; b=IIRRYTvkkUUO5LaFjSlWKSIIgdPDSDA0Q+j2MQumTUfgkdwsJwoFsV1dlWUbaCC8s5onnoo4+FF4taNyeonwmG0P9lHZ8pMMZC9iIIa8RUyegUEqzyRAlnW/RzX863OIZw++ocak80zKlvRaOufcLgWFfzRjz9jNCK+UOLQ16eU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710157072; c=relaxed/simple; bh=AWPgMt792TcmI2sildivF42ctTFVPJsxEprbyp1JKiA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=mhESi6Lq26lOF8CngUvOb6gdrbuFL0O0S9fV9beO2dLqSm0wub+Hp+BLZPjdBl6nn+flPGxLCWPdOwiTyko63yJKrzY17dZaVwU38yAOtXvEuF+d/3MWnvBNMXYgr2G6fJfaNYnSvunuNsC0C1XTvWzN/ca7lSqSbQfqtKs/k8s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=WA40HCrQ; arc=none smtp.client-ip=209.85.215.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="WA40HCrQ" Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-5d81b08d6f2so2606960a12.0 for ; Mon, 11 Mar 2024 04:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1710157069; x=1710761869; darn=vger.kernel.org; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=QHpENpt5VKoy5FLn2UOsLHtErVt3CMAhExz94owY8i8=; b=WA40HCrQGTfYVDFOzoyyNNZDLWW+wgDE13PoxG4VUAVw0sAHA3U4PmXKA9lBBUFDv/ uhBe4jcCK/Ck+jRjuNZplRyVyoQkH4BvjrMM8BoJmo8U+0AkfOzN5ELj0RaQt8ejPA6n FDsMl14c7h/WlAXvFjsa2QwM/cEcp8Uea+em4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710157069; x=1710761869; 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=QHpENpt5VKoy5FLn2UOsLHtErVt3CMAhExz94owY8i8=; b=xI2L4nQRpdmCPnikkzzds1nzcphbZsWCEkFXnXmnlyZvmy4h99Pak8tSIQM9vjDBhm iB479aUCfWJPkKO9U2qlLJl2SUrFjKsfUyqTvQGA/8hXjuRLMxG8Kcon873BCWZ3Z/tZ zxYRWMiE8p9OMm2+N/e3EtVXImouRFY36d4qsYEJjMcXSiCcqSfbOpwetAap0a7C5ooW MGLrwzskkA/mn7eo4TQ6XgzBkXbfUcVC9ZxT8CjN4eftu0F9Qxv6GB4EULK2m6Vv394I FCxGCzh1Oysc35Gvg4ReF8gWW9ZabXu8bAVB+yrf+QcSQWVJ6kZbbftJ+R/GXVw34xmU l9dw== X-Gm-Message-State: AOJu0YxZy/29z1tT49PjCBNld/W5jBS5I4Ni7CD+5NwLcveMKLvxgnX9 ZEm85HrtwrGeuFxJTxMlCirIM9a1YB4ujlScSk5aFMfJ+9sP9zyuTDGGG/r/pfyGBiK0qo6a68r jglLJ1sPRRyoIKgtqhnfEt3576ph57nw210awzvoZChuY5fxd53ftfUI2GeumNNe60IvlUZXpFx DggSkSXsEQSa6brAvYv+NqzesIyymYJWfoPQOSenjkAD5s3g== X-Google-Smtp-Source: AGHT+IH9SdOynCrg/9TqXMoZcpLfxuCURN2LiF7Ioy0Wa+4wpAAidLk2EH7H0Ud7DYsBpMyifODm/g== X-Received: by 2002:a17:90a:9d8a:b0:29b:cc7d:6a9 with SMTP id k10-20020a17090a9d8a00b0029bcc7d06a9mr3872087pjp.3.1710157068699; Mon, 11 Mar 2024 04:37:48 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id ay3-20020a17090b030300b0029ba5f434a8sm3982655pjb.26.2024.03.11.04.37.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 04:37:47 -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, chandrakanth.patil@broadcom.com, prayas.patel@broadcom.com, Ranjan Kumar Subject: [PATCH v3 3/7] mpi3mr: Clear controller-wide flag that is used to block IOCTLS for the unresponsive controller Date: Mon, 11 Mar 2024 17:05:10 +0530 Message-Id: <20240311113514.108795-4-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240311113514.108795-1-ranjan.kumar@broadcom.com> References: <20240311113514.108795-1-ranjan.kumar@broadcom.com> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Driver uses a controller-wide flag to block IOCTLs when controller reset is in progress. This flag is set before controller reset is initiated and clear after the controller reset is completed. Driver will clear the controller-wide block IOCTLs flag after controller reset is failed and controller is marked unrecoverable. Signed-off-by: Ranjan Kumar Signed-off-by: Sumit Saxena --- drivers/scsi/mpi3mr/mpi3mr_fw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/mpi3mr/mpi3mr_fw.c b/drivers/scsi/mpi3mr/mpi3mr_fw.c index 528f19f782f2..a21fbff60b59 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_fw.c +++ b/drivers/scsi/mpi3mr/mpi3mr_fw.c @@ -5102,6 +5102,7 @@ int mpi3mr_soft_reset_handler(struct mpi3mr_ioc *mrioc, mrioc->device_refresh_on = 0; mrioc->unrecoverable = 1; mrioc->reset_in_progress = 0; + mrioc->stop_bsgs = 0; retval = -1; mpi3mr_flush_cmds_for_unrecovered_controller(mrioc); }