feat: working gpu passthrough \o/

This commit is contained in:
Evar 2024-12-30 05:03:36 -05:00
parent 964b99b28d
commit c140a12e66
9 changed files with 391 additions and 2 deletions

9
usbiommu.sh Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
shopt -s nullglob
for usb_ctrl in /sys/bus/pci/devices/*/usb*; do
pci_path=${usb_ctrl%/*}
iommu_group=$(readlink $pci_path/iommu_group)
echo "Bus $(cat $usb_ctrl/busnum) --> ${pci_path##*/} (IOMMU group ${iommu_group##*/})"
lsusb -s ${usb_ctrl#*/usb}:
echo
done