From 1c26711cecfb7dd99f42844ab8227ff37f39c5b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cynthia=20Revstr=C3=B6m?= Date: Sun, 26 Apr 2020 13:08:12 +0200 Subject: some scripts --- bin/find_iommu_groups | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/find_iommu_groups (limited to 'bin/find_iommu_groups') diff --git a/bin/find_iommu_groups b/bin/find_iommu_groups new file mode 100755 index 0000000..2dad4c6 --- /dev/null +++ b/bin/find_iommu_groups @@ -0,0 +1,8 @@ +#!/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