# mlx4 devlink support

_Peios Kernel / Internals / Networking / devlink_

> This document describes the devlink features implemented by the mlx4 device driver.

<a id="rst-mlx4-devlink-support"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

This document describes the devlink features implemented by the `mlx4` device driver.

<a id="rst-parameters"></a>

## Parameters


<table>
<caption>Generic parameters implemented</caption>
<tbody>
<tr>
<td>


Name

</td>
<td>


Mode

</td>
</tr>
<tr>
<td>


`internal_err_reset`

</td>
<td>


driverinit, runtime

</td>
</tr>
<tr>
<td>


`max_macs`

</td>
<td>


driverinit

</td>
</tr>
<tr>
<td>


`region_snapshot_enable`

</td>
<td>


driverinit, runtime

</td>
</tr>
</tbody>
</table>

The `mlx4` driver also implements the following driver-specific parameters.


<table>
<caption>Driver-specific parameters implemented</caption>
<tbody>
<tr>
<td>


Name

</td>
<td>


Type

</td>
<td>


Mode

</td>
<td>


Description

</td>
</tr>
<tr>
<td>


`enable_64b_cqe_eqe`

</td>
<td>


Boolean

</td>
<td>


driverinit

</td>
<td>


Enable 64 byte CQEs/EQEs, if the FW supports it.

</td>
</tr>
<tr>
<td>


`enable_4k_uar`

</td>
<td>


Boolean

</td>
<td>


driverinit

</td>
<td>


Enable using the 4k UAR.

</td>
</tr>
</tbody>
</table>

The `mlx4` driver supports reloading via `DEVLINK_CMD_RELOAD`

<a id="rst-regions"></a>

## Regions

The `mlx4` driver supports dumping the firmware PCI crspace and health buffer during a critical firmware issue.

In case a firmware command times out, firmware getting stuck, or a non zero value on the catastrophic buffer, a snapshot will be taken by the driver.

The `cr-space` region will contain the firmware PCI crspace contents. The `fw-health` region will contain the device firmware's health buffer. Snapshots for both of these regions are taken on the same event triggers.
