mlx5tool(8)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

πŸ’– NAME

okay so bestie, meet mlx5tool(8) β€” yes, from the System Manager's Manual β€” the utility for managing Connect-X 4/5/6 Mellanox network adapters. It's giving β€œPCIe card whisperer” energy, and honestly? Obsessed. πŸ’…

✨ SYNOPSIS

mlx5tool -d domain:bus:slot:func -E
mlx5tool -d domain:bus:slot:func -e
mlx5tool -d domain:bus:slot:func -f file.mfa2
mlx5tool -d domain:bus:slot:func -o file -w
mlx5tool -d domain:bus:slot:func -r
mlx5tool -d domain:bus:slot:func -z

🌸 DESCRIPTION

So mlx5tool is here for the parts of managing Connect-X4, 5 and 6 network adapters that the generic ifconfig(8) command doesn't cover β€” mostly stuff related to the PCIe attachment and the internal card working. It runs commands on a specific adapter, addressed using device:bus:slot:function conventions of the PCIe buses. You can match adapters' ethernet name and addresses with the pciconf(8) utility. That address is passed as an argument of the -d option, and bestie, -d must be specified for each invocation. No skipping it. 🫢

When the driver detects the malfunctioning of the hardware β€” or when a user requests it β€” it's possible to create a firmware dump. That dump contains debugging information about internal device state, for analysis of the failure by the Mellanox support team. Very β€œsupport ticket main character” of it. 😭

πŸ’… the commands currently implemented

  • -E β€” Print EEPROM information. Cute little info moment. ✨
  • -e β€” Snapshot the firmware registers state and stash it in the kernel buffer. The buffer must be empty β€” in other words, no dumps should be written so far, or existing dump cleared with the or existing dump cleared with the ... and yes, the original sentence literally trails off right there. Iconic cliffhanger, no cap. πŸŽ€
  • -f β€” Flashes the firmware image file.mfa2 to the specified adapter. Image must be in MFA2 pack format and contain a component suitable for the adapter hardware.

Typically, PCIe link-level reset is required to activate the newly flashed image, which can be performed by the system reboot or using the -z option. -r command for the specified device. β€” yep, that stray line is in the original too; I'm not hiding it. πŸ”₯

  • -r β€” Clear the stored firmware dump, preparing the kernel buffer for the next dump. Fresh-start energy. 🌈
  • -w β€” Fetches the stored firmware dump and writes it into the file specified by the -o option argument. πŸ“
  • -z β€” Performs PCIe link-level reset on the specified device. Reset era, honestly. πŸ’…
Little caution flag from the page: for -e, the kernel buffer must be empty, and for -f, a PCIe link-level reset is typically required to activate the newly flashed image. This is not a drill. 🚨

πŸŽ€ FILES

The /dev/mlx5ctl devfs(4) node is used to pass commands to the driver. That's the whole files section, bestie. πŸ’–

πŸ¦‹ SEE ALSO


okay that's the whole mlx5tool(8) page, brought to you by Debian, dated May 7, 2019, and yes β€” the manual is literally mlx5tool(8). Stay slay, keep your PCIe cards cozy. πŸ’œ

πŸ“¦ where this page comes from
  • freebsd 15.1: base 15.1
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms