From 01bc92d3c7bb49040064e1dcb632f5626a847f9b Mon Sep 17 00:00:00 2001 From: Oleksandr Ivantsiv Date: Wed, 18 Dec 2024 06:44:26 -0800 Subject: [PATCH] [nvidia-bluefield] Extend platform dump. (#21059) - Why I did it Extend platform dump to include MST devices information. - How I did it Extend platform-dump.sh scrip. - How to verify it Run show techsupport command --- .../bluefield-platform-modules/bin/platform-dump.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/nvidia-bluefield/bluefield-platform-modules/bin/platform-dump.sh b/platform/nvidia-bluefield/bluefield-platform-modules/bin/platform-dump.sh index 80dd4e059b15..05254bcf932a 100755 --- a/platform/nvidia-bluefield/bluefield-platform-modules/bin/platform-dump.sh +++ b/platform/nvidia-bluefield/bluefield-platform-modules/bin/platform-dump.sh @@ -49,5 +49,13 @@ dump_cmd "lspci -vvv" "lspci" "5" dump_cmd "top -SHb -n 1 | tail -n +8 | sort -nrk 11" "top" "5" dump_cmd "tail /sys/kernel/debug/mlxbf-ptm/monitors/status/*" "mlxbf-ptm-dump" "3" +pushd /dev/mst/ +mstdevs=$(ls mt*) +popd + +for mstdev in $mstdevs; do + dump_cmd "mstdump -full /dev/mst/$mstdev" "mstdump_$mstdev" "20" +done + tar czf /tmp/platform-dump.tar.gz -C $DUMP_FOLDER . rm -rf $DUMP_FOLDER