mlx4.rst 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. .. SPDX-License-Identifier: GPL-2.0
  2. ====================
  3. mlx4 devlink support
  4. ====================
  5. This document describes the devlink features implemented by the ``mlx4``
  6. device driver.
  7. Parameters
  8. ==========
  9. .. list-table:: Generic parameters implemented
  10. * - Name
  11. - Mode
  12. * - ``internal_err_reset``
  13. - driverinit, runtime
  14. * - ``max_macs``
  15. - driverinit
  16. * - ``region_snapshot_enable``
  17. - driverinit, runtime
  18. The ``mlx4`` driver also implements the following driver-specific
  19. parameters.
  20. .. list-table:: Driver-specific parameters implemented
  21. :widths: 5 5 5 85
  22. * - Name
  23. - Type
  24. - Mode
  25. - Description
  26. * - ``enable_64b_cqe_eqe``
  27. - Boolean
  28. - driverinit
  29. - Enable 64 byte CQEs/EQEs, if the FW supports it.
  30. * - ``enable_4k_uar``
  31. - Boolean
  32. - driverinit
  33. - Enable using the 4k UAR.
  34. The ``mlx4`` driver supports reloading via ``DEVLINK_CMD_RELOAD``
  35. Regions
  36. =======
  37. The ``mlx4`` driver supports dumping the firmware PCI crspace and health
  38. buffer during a critical firmware issue.
  39. In case a firmware command times out, firmware getting stuck, or a non zero
  40. value on the catastrophic buffer, a snapshot will be taken by the driver.
  41. The ``cr-space`` region will contain the firmware PCI crspace contents. The
  42. ``fw-health`` region will contain the device firmware's health buffer.
  43. Snapshots for both of these regions are taken on the same event triggers.