All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/8] mlxsw: Introduce fw_fatal health reporter and test cmd to trigger test event
@ 2020-09-15  8:40 Ido Schimmel
  2020-09-15  8:40 ` [PATCH net-next 1/8] mlxsw: Bump firmware version to XX.2008.1310 Ido Schimmel
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Ido Schimmel @ 2020-09-15  8:40 UTC (permalink / raw)
  To: netdev; +Cc: davem, kuba, jiri, mlxsw, Ido Schimmel

From: Ido Schimmel <idosch@nvidia.com>

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-09-15 22:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-15  8:40 [PATCH net-next 0/8] mlxsw: Introduce fw_fatal health reporter and test cmd to trigger test event Ido Schimmel
2020-09-15  8:40 ` [PATCH net-next 1/8] mlxsw: Bump firmware version to XX.2008.1310 Ido Schimmel
2020-09-15  8:40 ` [PATCH net-next 2/8] mlxsw: Move fw flashing code into core.c Ido Schimmel
2020-09-15  8:40 ` [PATCH net-next 3/8] mlxsw: core: Push code doing params register/unregister into separate helpers Ido Schimmel
2020-09-15  8:40 ` [PATCH net-next 4/8] mlxsw: Move fw_load_policy devlink param into core.c Ido Schimmel
2020-09-15  8:40 ` [PATCH net-next 5/8] mlxsw: reg: Add Monitoring FW Debug Register Ido Schimmel
2020-09-15  8:40 ` [PATCH net-next 6/8] mlxsw: reg: Add Monitoring FW General " Ido Schimmel
2020-09-15  8:40 ` [PATCH net-next 7/8] devlink: introduce the health reporter test command Ido Schimmel
2020-09-15  8:40 ` [PATCH net-next 8/8] mlxsw: core: Introduce fw_fatal health reporter Ido Schimmel
2020-09-15 22:57 ` [PATCH net-next 0/8] mlxsw: Introduce fw_fatal health reporter and test cmd to trigger test event David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.