From 544da1ba50d9cbf51a18ca0abf1db66b3baa7460 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Fri, 17 Oct 2025 12:22:00 -0400 Subject: Gentoo desktop --- scripts/desktop/iommu-groups | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 scripts/desktop/iommu-groups (limited to 'scripts/desktop/iommu-groups') 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 -- cgit v1.2.3-101-g0448