From patchwork Wed Mar 13 10:07:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 13591213 Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (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 F41302E822 for ; Wed, 13 Mar 2024 10:10:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710324634; cv=none; b=KDriNbCNhvPYDkMTkSLOqYdfh0rTk6KAVNuY1XC4tmPvY6PHNVZNm1WW4J6W7lnuFKrYq/j0TBjnTJTuAjxPkJyjaOi/GFWbJxyMU6lUX3KHPZM6G4WoCBfDooiXePycW8ca2l9HQa9yUk+puC0eV9aDby1kwDKRS8wCWr7gQPo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710324634; c=relaxed/simple; bh=XH9xnMp2m0XMTIXDbhOKzh5h2zCAxww3jc9IALakUQ4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=td9tP0PluQtXaXxAecI5IW6aowwUOMF37JpyYb51it9LR/BOEfBRYftMDpWRCVr2v4e74+hojnfjT/5Q7f0j0dciS+riskN1rt4SkhZ4iFoMxgUs29kzhkKo98407GRIUXg/af6EMPRtgREN1pQ2GIp7W8nrhIIjwkfH9QL9cYM= 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=T6P83pHT; arc=none smtp.client-ip=209.85.210.50 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="T6P83pHT" Received: by mail-ot1-f50.google.com with SMTP id 46e09a7af769-6e5343b915fso308617a34.1 for ; Wed, 13 Mar 2024 03:10:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1710324631; x=1710929431; 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=OJqkGgFx5csZdfxBsGNdIp6T3E5gVrw75eqlGoSQtCc=; b=T6P83pHTjkROMjwTjKgtPwxBk+epBQYqKLwXk+QMZpBFCRn67OTvx9jfONm6vVgiEI lrSjCqyWKq3biunQylGtwOJGEJZr0t8i/RiJ6rASXi9yenRXfbny1OoC1R0VA9BtCC4G ApDLxxHca0PgCtSaDkdGU9ajGbK488dCBk8zY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710324631; x=1710929431; 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=OJqkGgFx5csZdfxBsGNdIp6T3E5gVrw75eqlGoSQtCc=; b=Zx0znKUeXFmUFSWZ8sIFRqk4afORB6J0AM1VZLd9u0XPySb2lLvq+EU9AX96M5tOju 6U4RHMWNQZRRO2yky7si40nu5PMCgIVZjEw7jpSX18nfxJL1o2ZrGgd10EcxPV+zeT2a pjHtk2rlT79oSJxIDNLWIUm6AI2haW5a0k8qEUpfPOrCXlrrNdFfHUkKe1yduxk+e9ZP 7pfkm6c6TmAq/jEPmaiywfWc4oH+o7vR5iX8Oo8wQLW8b+FUX2sXKm45GbSzQPFv6v7H TtODwJgwvjJqS2vUCuUNol0Gtow2DCNolpbYeFLPmjjJsvEspuAjEpjUSA9yKu8pSEHh 62TQ== X-Gm-Message-State: AOJu0YwlBg4UXZeyrPg2zJWA0DugK0kD9TMrVtpQQQZsHZboqhmLWaAz T+cunXnMiDBTr6RrFkJexyq9aC6Dfk7IaP7OVJkLeAgz11jQAKd6Z0jN4GzosO0eG3DXdo+RJgW MFK5cWpeDnESi2CnhRpKuwcwQo1DVgK0Mxa8VAouagBVKfZl/CIDMqd1Q3PYCRB/wXwmTab4VKM unE+gTmWVd7/JJlnA7hsXpuWA5nF1p72zzvpvye0Hce1piQQ== X-Google-Smtp-Source: AGHT+IEU5NRhxFMxoxnjs2xW0B8xvX29HFOMiXBexsCIAle/Vt24MR0AQ7RH7v4PNgRsXGXxzTQzaA== X-Received: by 2002:a05:6870:a2cd:b0:220:c50e:9133 with SMTP id w13-20020a056870a2cd00b00220c50e9133mr6066094oak.45.1710324630886; Wed, 13 Mar 2024 03:10:30 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id j18-20020a056a00175200b006e5af565b1dsm7570337pfc.201.2024.03.13.03.10.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 03:10:30 -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 v4 3/7] mpi3mr: Clear controller-wide flag that is used to block IOCTLS for the unresponsive controller Date: Wed, 13 Mar 2024 15:37:42 +0530 Message-Id: <20240313100746.128951-4-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240313100746.128951-1-ranjan.kumar@broadcom.com> References: <20240313100746.128951-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); }