hselasky d1efa6e93f Add kernel and userspace code to dump the firmware state of supported
ConnectX-4/5 devices in mlx5core.

The dump is obtained by reading a predefined register map from the
non-destructive crspace, accessible by the vendor-specific PCIe
capability (VSC). The dump is stored in preallocated kernel memory and
managed by the mlx5tool(8), which communicates with the driver using a
character device node.

The utility allows to store the dump in format
    <address> <value>
into a file, to reset the dump content, and to manually initiate the
dump.

A call to mlx5_fwdump() should be added at the places where a dump
must be fetched automatically. The most likely place is right before a
firmware reset request.

Submitted by:	kib@
MFC after:	1 week
Sponsored by:	Mellanox Technologies
2018-03-08 15:21:56 +00:00
..
2018-02-12 06:51:20 +00:00
2017-03-12 18:58:55 +00:00
2016-01-27 06:28:56 +00:00
2017-10-06 08:43:14 +00:00
2017-12-02 06:23:02 +00:00
2017-10-29 08:17:03 +00:00
2016-05-01 16:43:22 +00:00
rc
2018-02-06 20:12:05 +00:00
rpc
2017-12-31 17:11:12 +00:00