summaryrefslogtreecommitdiffstats
path: root/sys/modules
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 /sys/modules
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 'sys/modules')
-rw-r--r--sys/modules/mlx5/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/modules/mlx5/Makefile b/sys/modules/mlx5/Makefile
index 26ee966..573561e 100644
--- a/sys/modules/mlx5/Makefile
+++ b/sys/modules/mlx5/Makefile
@@ -11,6 +11,8 @@ mlx5_eq.c \
mlx5_fs_cmd.c \
mlx5_fs_tree.c \
mlx5_fw.c \
+mlx5_fwdump.c \
+mlx5_fwdump_regmaps.c \
mlx5_health.c \
mlx5_mad.c \
mlx5_main.c \
OpenPOWER on IntegriCloud