Skip to content

Commit

Permalink
mellanox firmware fixes
Browse files Browse the repository at this point in the history
remove fwtrace - it trace HW events and can take a lot of time, not needed for debug
mstconfig -> mlxconfig otherwise command not found
mlxdump use mstdump, pcie_uc doesn't exists
set timeout to 300 seconds, some commands take a longer time to execute, the avg time to run the plugin is 55 seconds
add resourcedump command
  • Loading branch information
filanov committed Sep 19, 2024
1 parent 611e70e commit aa345c9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sos/report/plugins/mellanox_firmware.py
Original file line number Diff line number Diff line change
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"],
]
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

0 comments on commit aa345c9

Please sign in to comment.