Enabling debugging

Ubuntu 22.04 LTS LPAR mode z/VM guest KVM guest

The mlx4 and mlx5 device drivers can be configured for debugging with a sysfs parameter.

Procedure

  • For mlx4: Load the mlx4 module with the sysfs parameter debug_level=1 to write debug messages to the syslog.
    Check the value of the debug_level parameter . If the parameter is set to 0, you can set it to 1 with the following command:
    echo 1 > /sys/module/mlx4_core/parameters/debug_level
  • For mlx5: Load the mlx5 module with the sysfs parameter debug_mask=1 to write debug messages to the syslog.
    Check the value of the debug_mask parameter . If the parameter is set to 0, you can set it to 1 with the following command:
    echo 1 > /sys/module/mlx5_core/parameters/debug_mask