From f2a88216d8399035757bfdcc8b18947d53f458da Mon Sep 17 00:00:00 2001 From: hselasky Date: Mon, 26 Mar 2018 20:59:26 +0000 Subject: 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
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 --- sys/modules/mlx5/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/modules') 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 \ -- cgit v1.1