summaryrefslogtreecommitdiff
path: root/scripts/desktop/iommu-groups
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/desktop/iommu-groups')
-rwxr-xr-xscripts/desktop/iommu-groups7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/desktop/iommu-groups b/scripts/desktop/iommu-groups
new file mode 100755
index 0000000..56cfd85
--- /dev/null
+++ b/scripts/desktop/iommu-groups
@@ -0,0 +1,7 @@
+#! /usr/bin/env bash
+# This was copied from somewhere a while ago, forgot to put the link.
+for d in /sys/kernel/iommu_groups/*/devices/*; do
+ n=${d#*/iommu_groups/*}; n=${n%%/*}
+ printf 'IOMMU Group %s ' "$n"
+ lspci -nns "${d##*/}"
+done