lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 15 Sep 2020 11:40:50 +0300
From:   Ido Schimmel <idosch@...sch.org>
To:     netdev@...r.kernel.org
Cc:     davem@...emloft.net, kuba@...nel.org, jiri@...dia.com,
        mlxsw@...dia.com, Ido Schimmel <idosch@...dia.com>
Subject: [PATCH net-next 0/8] mlxsw: Introduce fw_fatal health reporter and test cmd to trigger test event

From: Ido Schimmel <idosch@...dia.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ