-
Notifications
You must be signed in to change notification settings - Fork 39
Firmware Dump
In order to perform a firmware dump, please install mstflint. In
Fedora it can be installed using dnf
:
$ dnf install mstflint
Firmware state is dumped by the tool mstregdump
. The dump file is used
by Mellanox Support for hardware troubleshooting purposes. In order to
put things in perspective, it is necessary to use it three times to
perform three consecutive register dumps:
# for i in {1..3}; do mstregdump 01:00.0 > mstregdump$i; done
Where 01:00.0
is the PCI address of the device.
The dump files can then be packed and compressed, and the archive handed over to the party that requested it.
# tar cvJf mstregdump.tar.xz mstregdump[123]
mstregdump1
mstregdump2
mstregdump3
The previous section described how a firmware dump can be triggered manually from user space. This section describes how a firmware dump can be taken automatically, in response to firmware fatal events. These events are supported by kernel 5.10 and above.
Firmware fatal events are reported to user space via netlink
notifications as part of the devlink health
mechanism. The
fw_dump.py scripts listens to these netlink notifications and
triggers multiple firmware dumps using the previously mentioned
mstregdump
utility.
The script can be started automatically using a systemd service unit file. For example:
# /etc/systemd/system/fw_dump.service
[Unit]
Description=Firmware dumps trigger
[Service]
Type=simple
ExecStart=/usr/local/bin/fw_dump.py
[Install]
WantedBy=multi-user.target
To start the service, run:
$ systemctl start fw_dump
To make the configuration persistent, run:
$ systemctl enable fw_dump.service
- man mstregdump
- man devlink-health
General information
System Maintenance
Network Interface Configuration
- Switch Port Configuration
- Netdevice Statistics
- Persistent Configuration
- Quality of Service
- Queues Management
- How To Configure Lossless RoCE
- Port Mirroring
- ACLs
- OVS
- Resource Management
- Precision Time Protocol (PTP)
Layer 2
Network Virtualization
Layer 3
- Static Routing
- Virtual Routing and Forwarding (VRF)
- Tunneling
- Multicast Routing
- Virtual Router Redundancy Protocol (VRRP)
Debugging