From patchwork Thu Dec 14 20:58:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 13493681 Received: from mail-io1-f54.google.com (mail-io1-f54.google.com [209.85.166.54]) (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 B947D7494 for ; Thu, 14 Dec 2023 21:01:17 +0000 (UTC) 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="avRPuL/E" Received: by mail-io1-f54.google.com with SMTP id ca18e2360f4ac-7b6fa79b547so508971039f.1 for ; Thu, 14 Dec 2023 13:01:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1702587676; x=1703192476; 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=eoCwyQdBQNplETbcUkUFUES+7wPPhF9uGlbIiVxkCcI=; b=avRPuL/ENobub2Rd+y1QJ/n758hJ4ttZFzr3Mx1CYMIvk7K1A+A9r7Cn+lxuF3wLU0 Rk1IaXThxjZV2U28fBw1dO1pITxyi9ZOGw0xXgyHBR8Zd0Ea0z6QbWW1ZwbQFWDUrHVV 3NAnZMMv9NYgoslBFZN8ozEYkRQ1X26w0cV7g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702587676; x=1703192476; 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=eoCwyQdBQNplETbcUkUFUES+7wPPhF9uGlbIiVxkCcI=; b=p1L47AFsQFRcfjE8blrY7NheEV2T4yfQq3G8x7MNFJMcQ6nUsgEuhl5Hsks27MwLeC eFB1XlcYAtxelTevFEwzvocbLMR9IRMxGQbPskC6neyMeXEgrincCjTOsKBuIAAjtyTn U+2+9NYMk2B7kNomVrlaky9/TvFOFbCt97YoNG3dskRnkHF61THIduApvSSjHcI8F8Kh cyy67Lbs4j37RFf3jyl9u/zi78Iut7TUWFN/7pT+Fwvj8lL2GkwnPwP6xaubT1CGVZPS HbmtgPUU3CSQvkK9bo2BcQ+A9/G7gRKAKC7PJHNIM0K4PLPah1aWdJmMFj3Tz3HrWWrM GdHA== X-Gm-Message-State: AOJu0YywoUkhQZm1J4dX6MHcW165ZQMKukCPyOzaAiWPsL/LNJtpkeX2 a0D4jZxyxYvI2Ilw3QGUwEGIBfv8lD/07dNgtiIcH2jma/RlMuuTKoL7Pg9GK/FRpJa0VqpBiv5 y1yyhFxRk2n6OBBz7wgtIzUak9Dt82bbqx1grpch2PpV9dkUHJbLPreJUpEH/yH1ZWMz5+H813S nfhsBs2oG10A== X-Google-Smtp-Source: AGHT+IFfvULEMtEpnnMCw1qRcCc/iJ4mFRP+Lzm3MLfh3ZxqSnrh+VkjwXmKKFt0fCpIPU9vDxcg2w== X-Received: by 2002:a92:c269:0:b0:35f:7715:6cdd with SMTP id h9-20020a92c269000000b0035f77156cddmr3785669ild.33.1702587676066; Thu, 14 Dec 2023 13:01:16 -0800 (PST) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id bv190-20020a632ec7000000b005c2967852c5sm11904303pgb.30.2023.12.14.13.01.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 13:01:15 -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, chandrakanth.patil@broadcom.com, prayas.patel@broadcom.com, Ranjan Kumar Subject: [PATCH v2 5/6] mpi3mr: Reset stop_bsgs flag post controller reset failure Date: Fri, 15 Dec 2023 02:28:59 +0530 Message-Id: <20231214205900.270488-6-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20231214205900.270488-1-ranjan.kumar@broadcom.com> References: <20231214205900.270488-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 stop_bsgs flag blocks the ioctls during controller reset. currently, it remains set after a controller failure, so resetting it. Signed-off-by: Sumit Saxena Signed-off-by: Ranjan Kumar --- 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 491ef854fdba..209920cd5ec2 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_fw.c +++ b/drivers/scsi/mpi3mr/mpi3mr_fw.c @@ -5136,6 +5136,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); }