From 1d4f12f8d205110c1a9cf00728792c4c40f300d9 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 30 Dec 2024 15:24:59 +0000 Subject: script from the docs on gpu passthru to detect iommu --- iommu_detect.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 iommu_detect.sh diff --git a/iommu_detect.sh b/iommu_detect.sh new file mode 100755 index 0000000..29b3068 --- /dev/null +++ b/iommu_detect.sh @@ -0,0 +1,11 @@ +#!/usr/bin/bash +# +shopt -s nullglob + +for g in /sys/kernel/iommu_groups/*; do + echo "IOMMU Group ${g##*/}:" + for d in $g/devices/*; do + echo -e "\t$(lspci -nns ${d##*/})" + done; +done; + -- cgit v1.2.3