Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ################################# Variables #################################
- ## Adds current time to var for use in echo for a cleaner log and script ##
- DATE=$(date +"%m/%d/%Y %R:%S :")
- ################################## Script ###################################
- echo "$DATE Beginning of Unbind!"
- ## Load VFIO-PCI driver ##
- modprobe vfio
- modprobe vfio_pci
- modprobe vfio_iommu_type1
- sleep "1"
- #dGPU host unbind (6700XT)
- #6700 XT VGA => 03:00.0 and [1002:73df]
- echo "1002 73df" > /sys/bus/pci/drivers/vfio-pci/new_id
- echo "0000:03:00.0" > /sys/bus/pci/devices/0000:03:00.0/driver/unbind
- sleep "1"
- echo "0000:03:00.0" > /sys/bus/pci/drivers/vfio-pci/bind
- echo "1002 73df" > /sys/bus/pci/drivers/vfio-pci/remove_id
- sleep "1"
- #6700 XT Audio => 03:00.1 and [1002:ab28]
- echo "1002 ab28" > /sys/bus/pci/drivers/vfio-pci/new_id
- echo "0000:03:00.1" > /sys/bus/pci/devices/0000:03:00.1/driver/unbind
- sleep "1"
- echo "0000:03:00.1" > /sys/bus/pci/drivers/vfio-pci/bind
- echo "1002 ab28" > /sys/bus/pci/drivers/vfio-pci/remove_id
- sleep "1"
- echo "$DATE End of Unbind!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement