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
  • Loading branch information
filanov committed Sep 3, 2024
1 parent 611e70e commit d68f59a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sos/report/plugins/mellanox_firmware.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,17 @@ 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"],
]
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 d68f59a

Please sign in to comment.