freebsd-dev/targets/pseudo/userland
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
..
cddl DIRDEPS_BUILD: Connect new directories. 2017-10-31 00:04:07 +00:00
games All the games moved to usr.bin/ in r288485. 2015-10-02 17:58:16 +00:00
gnu Remove libreadline from the source tree, all consumers but gdb 2018-02-06 12:22:42 +00:00
include META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
kerberos5 META_MODE: Remove DEP_RELDIR from Makefile.depend files. 2015-09-25 19:26:08 +00:00
lib Disconnect OFED after r326169 broke all DIRDEPS support for it. 2017-12-07 01:49:35 +00:00
libexec DIRDEPS_BUILD: Add some missing dirctories to the build. 2016-08-31 19:30:59 +00:00
misc Move sys/boot to stand. Fix all references to new location 2017-11-14 23:02:19 +00:00
secure META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
share Move sys/boot to stand. Fix all references to new location 2017-11-14 23:02:19 +00:00
Makefile
Makefile.depend Add kernel and userspace code to dump the firmware state of supported 2018-03-08 15:21:56 +00:00
Makefile.inc