path: root/targets
diff options
authorHans Petter Selasky <hselasky@FreeBSD.org>2018-03-08 15:21:56 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2018-03-08 15:21:56 +0000
commite808190a59fe2501bea01192584e2981e62083bd (patch)
tree4f99d8488e9959de7f83866260a060f215f8fdd4 /targets
parent479c9e50e1689d34b8bf352f401e45b4c4191f1c (diff)
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
Notes: svn path=/head/; revision=330653
Diffstat (limited to 'targets')
1 files changed, 4 insertions, 0 deletions
diff --git a/targets/pseudo/userland/Makefile.depend b/targets/pseudo/userland/Makefile.depend
index 98690f74ae5f..893d8cbcc5da 100644
--- a/targets/pseudo/userland/Makefile.depend
+++ b/targets/pseudo/userland/Makefile.depend
@@ -889,6 +889,10 @@ DIRDEPS+= \
DIRDEPS+= usr.sbin/cxgbetool
+.if ${MK_MLX5TOOL} != "no"
+DIRDEPS+= usr.sbin/mlx5tool
.if ${MK_GPL_DTC} != "yes"
DIRDEPS+= usr.bin/dtc