Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54765C43461 for ; Tue, 15 Sep 2020 08:41:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1693620771 for ; Tue, 15 Sep 2020 08:41:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726157AbgIOIlq (ORCPT ); Tue, 15 Sep 2020 04:41:46 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:56257 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726087AbgIOIln (ORCPT ); Tue, 15 Sep 2020 04:41:43 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id EBA9C5C00F7; Tue, 15 Sep 2020 04:41:41 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 15 Sep 2020 04:41:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=rtPo9mROJo4+zh8Ju Eaos8a98nNNY0Jko9o8pezIRlc=; b=j44AQMBIYEWOu1cUzDDdKy/t6wnAT785c jthAiIQWzjQ21keWdwuIrvlKfffudYxJFXPdPkoI8hMgu/6P4qp4VZcUN612hn0j musC6Siuaz0CAfdkMr5yUejExArIkTIN5LaMPtjg6qR9VS4xazVUNWSgIvv7Irgj 48ZS8PoyXrt51rNURkyiIQ8BB1Y+X6cuRYgAHzmhhSkEd3e1f5YpTWClMfRsAcC/ cglMAWpOmG41g9UZUyAWzSrLka5bPj9QkQ4UEiscaV5EuBWavApvzx1mN7klNqJX FARcgmlVrHaGQFb60eoFZRrDW6EgAL04tw964W/T/Q2nk4SpPhhXA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudeikedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepkfguohcuufgthhhimhhmvghluceoihguohhstghhsehiughoshgt hhdrohhrgheqnecuggftrfgrthhtvghrnhepteevgefhvefggfffkeeuffeuvdfhueehhe etffeikeegheevfedvgeelvdffudfhnecukfhppeekgedrvddvledrfeeirdekvdenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehiughoshgthh esihguohhstghhrdhorhhg X-ME-Proxy: Received: from shredder.mtl.com (igld-84-229-36-82.inter.net.il [84.229.36.82]) by mail.messagingengine.com (Postfix) with ESMTPA id 1C57A3064683; Tue, 15 Sep 2020 04:41:39 -0400 (EDT) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, jiri@nvidia.com, mlxsw@nvidia.com, Ido Schimmel Subject: [PATCH net-next 0/8] mlxsw: Introduce fw_fatal health reporter and test cmd to trigger test event Date: Tue, 15 Sep 2020 11:40:50 +0300 Message-Id: <20200915084058.18555-1-idosch@idosch.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ido Schimmel Jiri says: This patch set introduces a health reporter for mlxsw that reports FW fatal events. Alongside that, it introduces a test command that is used to trigger a dummy FW fatal event by user: $ sudo devlink health test pci/0000:03:00.0 reporter fw_fatal $ devlink health pci/0000:03:00.0: reporter fw_fatal state error error 1 recover 0 last_dump_date 2020-07-27 last_dump_time 16:33:27 auto_dump true $ sudo devlink health dump show pci/0000:03:00.0 reporter fw_fatal -j -p { "irisc_id": 0, "event": [ "id": 3 ], "method": "query", "long_process": false, "command_type": "mad", "reg_attr_id": 0 } As a dependency, the FW validation and flashing is moved to core.c. Jiri Pirko (8): mlxsw: Bump firmware version to XX.2008.1310 mlxsw: Move fw flashing code into core.c mlxsw: core: Push code doing params register/unregister into separate helpers mlxsw: Move fw_load_policy devlink param into core.c mlxsw: reg: Add Monitoring FW Debug Register mlxsw: reg: Add Monitoring FW General Debug Register devlink: introduce the health reporter test command mlxsw: core: Introduce fw_fatal health reporter drivers/net/ethernet/mellanox/mlxsw/core.c | 605 +++++++++++++++++- drivers/net/ethernet/mellanox/mlxsw/core.h | 9 +- drivers/net/ethernet/mellanox/mlxsw/reg.h | 101 +++ .../net/ethernet/mellanox/mlxsw/spectrum.c | 371 +---------- .../net/ethernet/mellanox/mlxsw/spectrum.h | 2 - drivers/net/ethernet/mellanox/mlxsw/trap.h | 2 + include/net/devlink.h | 3 + include/uapi/linux/devlink.h | 2 + net/core/devlink.c | 30 + 9 files changed, 742 insertions(+), 383 deletions(-) -- 2.26.2