From patchwork Mon Sep 12 13:57:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 606090 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A2CBC6FA8A for ; Mon, 12 Sep 2022 13:45:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229943AbiILNpr (ORCPT ); Mon, 12 Sep 2022 09:45:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbiILNpj (ORCPT ); Mon, 12 Sep 2022 09:45:39 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1649D1EEC8 for ; Mon, 12 Sep 2022 06:45:37 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id b75so3422873pfb.7 for ; Mon, 12 Sep 2022 06:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date; bh=kEmppSPcE4Lj+84cUfESjf2jcWZ77u5xrD42BWYu5DU=; b=TW98ZMVD1WtfY8ztASxHZcaciZo4MIqkND6yyX4a4YPLdNEhoAfYhW73q2aLs2ldEc s0vGuOQvkw6zwVSqNIeUTGiULeNikn4IkrUBxd3s8s9NCO43TmZqgKQYqS97AvRJ9OpY z+IfmfcDxCEmBt0utMCe366w/MBXXr/WMiq5M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=kEmppSPcE4Lj+84cUfESjf2jcWZ77u5xrD42BWYu5DU=; b=d7bBavG22BDM8sOsgmvhFQTeLsACyWQBlfTVNR+sw99hDtpNwJOItOlAsUSfnnEHj+ aV+/brVdCNKBtFDmrRl8XKwjNs9wMcH0B7JIQiwig9smsnjmOpu7XgrUYMhnPncUJ+Gd 7GJ8SWYTY6dj1O6ww0GT0CBoNHPb2uboaDn9KpkXbnWIzXcjATIaeSzU3SaTeC6JKBnp UfRYCXHa2b2ReEYs5P0JnyRCRyPokKhopHGGqizNhmbdqDjwvaM4FPxv3Bz2dqVigENj GlBRhZfSX8b64xVCdBMLr2ZpGvygWU04Q2y584ro/p4NJk4mcam/rVl+tWzNqdlXSD7u rktw== X-Gm-Message-State: ACgBeo0SHW5y8ZuvuXmmTIc/q6Lu0NhHuCQaIMYse3mm0X83ZNwevpLS 8Nboc3Ia3oXcWhRIrGUChTeIZKhj00iWiW222bZE1w351C5LT/2eL+8PF4ivAj+VIeySnU9dHI9 qekKkO9taqlLofS/SB/X11mqnRm9Fo8ZARH8wTP+JGq9YwycrfXqei+Ar3+vHm31nNzOvA2OTTV dNRxo5a2q2 X-Google-Smtp-Source: AA6agR5eCLeX1o3KILkDNb2jMPwILPjRvveRDgbKb6ZdUolPsmC9LV0oyZOo8vSDQ5lnw3F6RSes7g== X-Received: by 2002:a05:6a00:2446:b0:52b:e9a8:cb14 with SMTP id d6-20020a056a00244600b0052be9a8cb14mr27824763pfj.32.1662990336337; Mon, 12 Sep 2022 06:45:36 -0700 (PDT) Received: from dhcp-10-123-20-36.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id u7-20020a170903124700b00176e8f85146sm6112900plh.185.2022.09.12.06.45.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 06:45:35 -0700 (PDT) From: Sreekanth Reddy To: linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, Sreekanth Reddy Subject: [PATCH v2 5/9] mpi3mr: Handle 0xF003 Fault Code Date: Mon, 12 Sep 2022 19:27:38 +0530 Message-Id: <20220912135742.11764-6-sreekanth.reddy@broadcom.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220912135742.11764-1-sreekanth.reddy@broadcom.com> References: <20220912135742.11764-1-sreekanth.reddy@broadcom.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Handle the 0xF003 controller fault code as a special case by marking the controller as unrecoverable with logging a message indicating the driver marks the controller as unrecoverable due to the specific fault. Signed-off-by: Sreekanth Reddy --- drivers/scsi/mpi3mr/mpi3mr_fw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/mpi3mr/mpi3mr_fw.c b/drivers/scsi/mpi3mr/mpi3mr_fw.c index a10cffa..abdccff 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_fw.c +++ b/drivers/scsi/mpi3mr/mpi3mr_fw.c @@ -2502,8 +2502,9 @@ static void mpi3mr_watchdog_work(struct work_struct *work) mrioc->diagsave_timeout = 0; switch (fault) { + case MPI3_SYSIF_FAULT_CODE_COMPLETE_RESET_NEEDED: case MPI3_SYSIF_FAULT_CODE_POWER_CYCLE_REQUIRED: - ioc_info(mrioc, + ioc_warn(mrioc, "controller requires system power cycle, marking controller as unrecoverable\n"); mrioc->unrecoverable = 1; goto schedule_work;