Skip to content

Instantly share code, notes, and snippets.

@kylechase
Forked from flungo/lsiommu
Created March 20, 2024 15:58
Show Gist options
  • Select an option

  • Save kylechase/0016d064627084e98562ba1157a46d0f to your computer and use it in GitHub Desktop.

Select an option

Save kylechase/0016d064627084e98562ba1157a46d0f to your computer and use it in GitHub Desktop.

Revisions

  1. @flungo flungo created this gist Mar 10, 2017.
    6 changes: 6 additions & 0 deletions lsiommu
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/bin/bash
    for d in $(find /sys/kernel/iommu_groups/ -type l | sort -n -k5 -t/); do
    n=${d#*/iommu_groups/*}; n=${n%%/*}
    printf 'IOMMU Group %s ' "$n"
    lspci -nns "${d##*/}"
    done;