diff options
author | hselasky <hselasky@FreeBSD.org> | 2018-03-26 20:59:26 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2018-03-26 20:59:26 +0000 |
commit | f2a88216d8399035757bfdcc8b18947d53f458da (patch) | |
tree | 135540ec942858c80cd9005edaad9b40a042b08a /share/mk | |
parent | 6107e400c65108a78bf986e9cfabe1bdcdd12f6f (diff) | |
download | FreeBSD-src-f2a88216d8399035757bfdcc8b18947d53f458da.zip FreeBSD-src-f2a88216d8399035757bfdcc8b18947d53f458da.tar.gz |
MFC r330653:
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@
Sponsored by: Mellanox Technologies
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/src.opts.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk index eee4139..0a018d2 100644 --- a/share/mk/src.opts.mk +++ b/share/mk/src.opts.mk @@ -286,8 +286,10 @@ BROKEN_OPTIONS+=PROFILE .if ${__T} == "aarch64" || ${__T} == "amd64" || ${__T} == "i386" || \ ${__T} == "powerpc64" || ${__T} == "sparc64" __DEFAULT_YES_OPTIONS+=CXGBETOOL +__DEFAULT_YES_OPTIONS+=MLX5TOOL .else __DEFAULT_NO_OPTIONS+=CXGBETOOL +__DEFAULT_NO_OPTIONS+=MLX5TOOL .endif .include <bsd.mkopt.mk> |