From patchwork Thu Sep 8 12:53:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 606117 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 4FBF0C54EE9 for ; Thu, 8 Sep 2022 12:41:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231952AbiIHMlv (ORCPT ); Thu, 8 Sep 2022 08:41:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231887AbiIHMlf (ORCPT ); Thu, 8 Sep 2022 08:41:35 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FF76D0769 for ; Thu, 8 Sep 2022 05:41:26 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id o4so17639054pjp.4 for ; Thu, 08 Sep 2022 05:41:25 -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=u1oHpGo/fYa87fX64El+pacFUrzQjidJYlItbx53b4E=; b=ADj3MzqOBPPhDqFaaXx3PM+rn0jwglBmfGIbeqDeRcyDc8En1EcbiuMxH4TBHNYshA Nhp0L6O2kFYUr6D+EbtsmE9hzHRVXzz9Zpa5cFUGpa8uarEXvpz8f3edZzduE2XZdTGP LCoOOFJC6tRtCEBSBImcG2FSghX4PP1S0ZeUA= 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=u1oHpGo/fYa87fX64El+pacFUrzQjidJYlItbx53b4E=; b=jSA1JW2Zgqgn8NBy+94on3SKbqOoZyGsmvz4Mjk4TBnsvF1NfP7es/3GoNw2V393aJ NYlm67IF040qVqZHEtemi9yb4IzANwJGPdkmBeLCLCFyuaSS4Jujm2OXWTbUN+q1FSpc sHK7a+4cVQ/ZBcWGZK8JEstI1EYvA94S4Tfs5EfUg+uZc3Chn5uBRbpIO1STrqj3kcP/ j6I/60+6ffhJQFohRRdbno+2VbQ5yE+SUHyfrwhf3TiWM4k22sogmZV4jZqFUYMR/RnJ 9OxZQWDmwOCiUxRPPD1tByvXylDaj3K6CDZ4yJWq/C/4ezpu8CFIuFZ/4rlJL908omi6 sNSQ== X-Gm-Message-State: ACgBeo3T12D/hA+A3wRCLRFc9B/lop/vUa97fUAiQHBvaBHw3NZN98yt mlcZELx1aK+x4UWf1nqIF/GzDh6KjWAZJ3qej7IERiUst4XFZmJZTeVFlxisnqGKnSvx14Yi22o M1tJR47kY7D5yzz+iLFrgFHjl2Ea+axEGTt+GFs4OgLjf7uLfgRvMcsa0bfwsMPuls331JUShXX 8VFaeXyKil X-Google-Smtp-Source: AA6agR4StM2zqypp2vXwVzXHgMqnFtlOeRAjVUac72SqYWTnWkozv8GAWDbNQkFll/xtDfJ56Dz+ow== X-Received: by 2002:a17:90b:380e:b0:1fe:8e4:96be with SMTP id mq14-20020a17090b380e00b001fe08e496bemr4016227pjb.18.1662640884844; Thu, 08 Sep 2022 05:41:24 -0700 (PDT) Received: from dhcp-10-123-20-36.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id c17-20020a63ef51000000b0043395af24f6sm11106807pgk.25.2022.09.08.05.41.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Sep 2022 05:41:24 -0700 (PDT) From: Sreekanth Reddy To: linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, Sreekanth Reddy Subject: [PATCH 5/9] mpi3mr: Handle 0xF003 Fault Code Date: Thu, 8 Sep 2022 18:23:28 +0530 Message-Id: <20220908125332.21110-6-sreekanth.reddy@broadcom.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220908125332.21110-1-sreekanth.reddy@broadcom.com> References: <20220908125332.21110-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 9f03f1c..5447fda 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;