From patchwork Thu Mar 7 15:08:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 779626 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 029D512EBC8 for ; Thu, 7 Mar 2024 15:10:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709824259; cv=none; b=hNf7RqYBRRyGD9Oh7TWRE+GaIwwe9Yy7M1SqsLns2e3nCGR6qbrZhhUxAX9Gd1Lg4wQQ9OeVhWevx1wJzgbqBW7ftux+EiPmmOF5Y2LqhiG61FyTaNQpsYVusVIuWQiwH9aIDo4aCUKoAkrZcrWOGVz2G0BRUDpJ8LFlW8SWvMI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709824259; c=relaxed/simple; bh=4rZaSVk0IYVNWo00zzYTgljowcLCe6VwCaDi2+UX5aA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=AJ8Xxv4KwEV7CRC3C0pR3LVwcrPMKygnewxnWqNSczRD890QRXgTvRSaFWRVMxSQjvswapyI5GU8Uh95nhBk1BEZjcKVJ3rk3l9+j0lPF3kDdQpf2+qSagm6fuwyWSGwQXTd6bxJe+AfCd8eflkSF1h6TLsn5UFSFEM9IXp7Mp8= 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=PgxYwjEz; arc=none smtp.client-ip=209.85.210.179 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="PgxYwjEz" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-6e46dcd8feaso691272b3a.2 for ; Thu, 07 Mar 2024 07:10:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1709824256; x=1710429056; 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=XM+GE6z3QFZ2++UsDWEjJOrVjIjIB6jnzhyhGHWi+Dc=; b=PgxYwjEzaDitMeGoT6Z7vc5qRey8bcwq1IuI3bkr/qiq14ma8uqO8l/CZgybOLgPUG PIfg7AtU0sgnbjB41Mw73NVmw3sPaxbLv2Kvwa/ZElPLe/qMOjvfvX3fEUILIWHvJv// 6i9FLJXQ6jlC09T29bFCY6FaUqLS5uvy7oRIo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709824256; x=1710429056; 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=XM+GE6z3QFZ2++UsDWEjJOrVjIjIB6jnzhyhGHWi+Dc=; b=S93oWxv98lSObv2FYIq2IxVOOK7impogPPOnQT48p+ML5E+8A/8u5hzavs3WWJmhQS ozILbbI44YQcAZDEM9ya/HsCAnH7aP3qNGJMjhUVwHC16wI3JbCDqwiY0MS1vtKKO2F+ A236VLfl1PYrx8Gix/wud3eBODEBi8dXgCMywlvAOMzVIgo7uk4v+OkRH47i4vWdkLyk ZRX6CaWRwuN8DSVzkVMu7XwtxRgcmiFGFcCBBWEY7xC0JZFQDymfK+wI2eocAHbTJMiF Fjak2sAPP4zwpQaIT1IO1Jj04xC8OqArLxmn7Qv9z4Yyu8gWC+qUjthxNOHSXcs5QotO E1pg== X-Gm-Message-State: AOJu0YxTU+PQ8DBxaEIxOYHoXO13o3e8h7COGnenybJ4cUD8LIomSgp1 xisbIAdBk3TYWVSeCfXEPt+xlgI1ZTpcqrZN342365B1macfMPsWLAretc6ibxyCVdmxcYCSrZM SpRqpNBcMGoqqc8I6G+WzHhaNGMSa/lYad8NLZo747cHyJdUhq7tC4+vyzZXByvY6m47ZzROSU3 wgE1wB5dnR+gw626fB9iRstbj4AIjNXFDRgAO2drsqZrLq4pwv X-Google-Smtp-Source: AGHT+IGVzLegN+gxjOOvlSmFxU0G8lSRoJKg92VMqsLoQsijD9LqLiSp1zA/5GXVVwxav2XDLipy3A== X-Received: by 2002:a05:6a20:4f9b:b0:1a1:48f7:dbda with SMTP id gh27-20020a056a204f9b00b001a148f7dbdamr6180158pzb.57.1709824256197; Thu, 07 Mar 2024 07:10:56 -0800 (PST) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id w17-20020a056a0014d100b006e58da8bb6asm12009906pfu.132.2024.03.07.07.10.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 07:10:55 -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 3/7] mpi3mr: Clear controller-wide flag that is used to block IOCTLS for the unresponsive controller Date: Thu, 7 Mar 2024 20:38:21 +0530 Message-Id: <20240307150825.7613-4-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240307150825.7613-1-ranjan.kumar@broadcom.com> References: <20240307150825.7613-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); }