feat: working gpu passthrough \o/
This commit is contained in:
parent
964b99b28d
commit
c140a12e66
9 changed files with 391 additions and 2 deletions
9
usbiommu.sh
Executable file
9
usbiommu.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue