From 99cece524cdfe01b30a3e6cd1b4c83d481ccb49c Mon Sep 17 00:00:00 2001 From: Mikhail Chusavitin Date: Thu, 2 Apr 2026 15:42:28 +0300 Subject: [PATCH] feat(support-bundle): add PCIe link diagnostics and system logs - Add full dmesg (was tail -200), kern.log, syslog - Add /proc/cmdline, lspci -vvv, nvidia-smi -q - Add per-GPU PCIe link speed/width from sysfs (NVIDIA devices only) Co-Authored-By: Claude Sonnet 4.6 --- audit/internal/app/support_bundle.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/audit/internal/app/support_bundle.go b/audit/internal/app/support_bundle.go index 12ba6f0..f5564fd 100644 --- a/audit/internal/app/support_bundle.go +++ b/audit/internal/app/support_bundle.go @@ -27,13 +27,27 @@ var supportBundleCommands = []struct { cmd []string }{ {name: "system/uname.txt", cmd: []string{"uname", "-a"}}, + {name: "system/cmdline.txt", cmd: []string{"cat", "/proc/cmdline"}}, {name: "system/lsmod.txt", cmd: []string{"lsmod"}}, {name: "system/lspci-nn.txt", cmd: []string{"lspci", "-nn"}}, + {name: "system/lspci-vvv.txt", cmd: []string{"lspci", "-vvv"}}, {name: "system/ip-addr.txt", cmd: []string{"ip", "addr"}}, {name: "system/ip-route.txt", cmd: []string{"ip", "route"}}, {name: "system/mount.txt", cmd: []string{"mount"}}, {name: "system/df-h.txt", cmd: []string{"df", "-h"}}, {name: "system/dmesg.txt", cmd: []string{"dmesg"}}, + {name: "system/nvidia-smi-q.txt", cmd: []string{"nvidia-smi", "-q"}}, + {name: "system/pcie-nvidia-link.txt", cmd: []string{"sh", "-c", ` +for d in /sys/bus/pci/devices/*/; do + vendor=$(cat "$d/vendor" 2>/dev/null) + [ "$vendor" = "0x10de" ] || continue + dev=$(basename "$d") + echo "=== $dev ===" + for f in current_link_speed current_link_width max_link_speed max_link_width; do + printf " %-22s %s\n" "$f" "$(cat "$d/$f" 2>/dev/null)" + done +done +`}}, } var supportBundleOptionalFiles = []struct {