Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mellanox firmware fixes #19

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions sos/report/plugins/mellanox_firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MellanoxFirmware(Plugin, IndependentPlugin):

plugin_name = "mellanox_firmware"
profiles = ('hardware', 'system')
packages = ('mst', 'mstflint')
packages = ('mst', 'mstflint', 'mft')

MLNX_STRING = "Mellanox Technologies"

Expand Down Expand Up @@ -103,18 +103,20 @@ def setup(self):
# mft package commands
# the commands do not support position independent arguments
commands = [
["mlxdump -d ", " pcie_uc --all"],
["mstconfig -d ", " -e q"],
["mlxdump -d ", " mstdump --all"],
["mlxconfig -d ", " -e q"],
["flint -d ", " dc"],
["flint -d ", " q"],
["mlxreg -d ", " --reg_name ROCE_ACCL --get"],
["mlxlink -d ", ""],
["fwtrace -d ", " -i all --tracer_mode FIFO"],
# segment is hard coded at the moment, no way to get it
# out of the firmware
["resourcedump dump --device ", " --segment 0x400"],
filanov marked this conversation as resolved.
Show resolved Hide resolved
]
for device in devices:
for command in commands:
self.add_cmd_output(f"{command[0]} {device} "
f"{command[1]}", timeout=30)
f"{command[1]}", timeout=300)

# Dump the output of the mstdump command three times
# waiting for one second. This output is useful to check
Expand Down
Loading