Hans Petter Selasky e808190a59 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
..
2015-06-22 20:21:57 +00:00
2013-09-06 20:49:48 +00:00
2016-02-11 00:30:51 +00:00
2016-05-20 19:23:07 +00:00
2013-09-20 01:52:02 +00:00
2017-04-20 03:36:09 +00:00
2016-12-19 15:09:30 +00:00
2015-06-22 20:21:57 +00:00
2015-06-22 20:21:57 +00:00
2014-08-19 15:40:26 +00:00
2014-01-30 21:37:43 +00:00
2014-10-16 18:28:11 +00:00
2017-02-03 19:21:28 +00:00
2013-09-15 13:11:13 +00:00
2015-10-14 00:23:31 +00:00
2017-11-11 16:09:20 +00:00
2017-04-20 03:36:09 +00:00
2015-01-02 18:57:58 +00:00