From patchwork Wed Dec 6 15:25:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 13481948 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="T1COyJsm" Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3850A139 for ; Wed, 6 Dec 2023 07:27:18 -0800 (PST) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1cfc9c4acb6so35795105ad.0 for ; Wed, 06 Dec 2023 07:27:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1701876437; x=1702481237; 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=GGXnS+hid5Inf/Hzb2yD+lXIKfIL7lqYJW51L1dkdPo=; b=T1COyJsmQWwlrK8eLAikyx9Ws5F+9pa8sJBvd5LEjVKPMggsCq9t1ewm9c2MmJzqK6 9ie04YE+qfOXQ7fVU8qYIGFbu9UZVb4gMqUA/SLBmV+Gh905VSvSaq9jpBC4DaCE7+tK zqF+90J22xHYpfRjBUXJfxEYoPUqcxll/K/8U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701876437; x=1702481237; 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=GGXnS+hid5Inf/Hzb2yD+lXIKfIL7lqYJW51L1dkdPo=; b=cxNAE0o+UENlYwKPzTsjj5pD3oAufECCyvYNLlgE32aAi1S/iaaTqc8ZfPOkXhg+Nv SOjzsUEp8z3U+R4YvCF6Gu2eT7cRrDTAz48skWbTQB4D+S9UXES0hEeWTS+8q2ehBqOC VJOkb95wPqTfo+hDqTGZlDH4K1BKBnx/X+1gvs158MzqXGoBlEX8PxK2al5IR+L5hYeN MZAqzsdF5DB1ixg14cYnafjhSWSTrS3VlX9pFufybZC4QZH71oPU8Cc0hRx2IS6LXeNf X2MV9/oEXpTz448J1/NLPLaaxk77Up1ivA4fy1wg/CH7e4gHqzOAONpO+A0VhnSI0zrL jQ0Q== X-Gm-Message-State: AOJu0YxcGdmZH2kaieIfL2LgMxmlJAa4Uyo5rsn7P/E2ChI1SrOfxROA ETyABoZzna3ym+h4IN98D4DntPjzdwTTiwMihGr1KXMVDwJPo94/rI1GvUgq73jOrxWJwk1XbP4 CklvxvfhTsFzCUmV7N7xPksCuKswo2nwdX8sZLFm04F/v6CGuphDrK1PZI4ZswjgMyRvoAGslLq 4iysQ6PPLcXA== X-Google-Smtp-Source: AGHT+IHQJ/gh8ePevJoBqJfC89VWCg9JCMONLJ4oMDK9jT4yixEh4//wZaUl5lqcYVSdqheptVxQWQ== X-Received: by 2002:a17:903:41c8:b0:1d0:6ffd:6e91 with SMTP id u8-20020a17090341c800b001d06ffd6e91mr795295ple.137.1701876437206; Wed, 06 Dec 2023 07:27:17 -0800 (PST) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id w17-20020a170902e89100b001cfc2e0a82fsm12182553plg.26.2023.12.06.07.27.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 07:27:16 -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 v1 3/4] mpi3mr: Reset stop_bsgs flag post controller reset failure Date: Wed, 6 Dec 2023 20:55:12 +0530 Message-Id: <20231206152513.71253-4-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20231206152513.71253-1-ranjan.kumar@broadcom.com> References: <20231206152513.71253-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 e0d69f147fce..f6338e90aacb 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_fw.c +++ b/drivers/scsi/mpi3mr/mpi3mr_fw.c @@ -5138,6 +5138,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); }