summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2018-03-26 20:59:26 +0000
committerhselasky <hselasky@FreeBSD.org>2018-03-26 20:59:26 +0000
commitf2a88216d8399035757bfdcc8b18947d53f458da (patch)
tree135540ec942858c80cd9005edaad9b40a042b08a /include
parent6107e400c65108a78bf986e9cfabe1bdcdd12f6f (diff)
downloadFreeBSD-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 'include')
-rw-r--r--include/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/Makefile b/include/Makefile
index 346b703..608aa69 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -253,6 +253,11 @@ copies: .PHONY .META
${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 nvpair.h \
${DESTDIR}${INCLUDEDIR}/sys
.endif
+.if ${MK_MLX5TOOL} != "no"
+ cd ${SRCTOP}/sys/dev/mlx5; \
+ ${INSTALL} -C ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 444 mlx5io.h \
+ ${SDESTDIR}${INCLUDEDIR}/dev/mlx5
+.endif
symlinks: .PHONY .META
@${ECHO} "Setting up symlinks to kernel source tree..."
@@ -382,6 +387,10 @@ symlinks: .PHONY .META
${INSTALL_SYMLINK} ${TAG_ARGS} ../../../sys/rpc/$$h \
${DESTDIR}${INCLUDEDIR}/rpc; \
done
+.if ${MK_MLX5TOOL} != "no"
+ ${INSTALL_SYMLINK} ${TAG_ARGS} ../../../../sys/dev/mlx5/mlx5io.h \
+ ${SDESTDIR}${INCLUDEDIR}/dev/mlx5
+.endif
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud