From 9daf3bae9cb328abda56cf9c7d62059deee32ea3 Mon Sep 17 00:00:00 2001 From: RisingPrism Date: Sat, 25 Apr 2020 22:41:12 -0400 Subject: [PATCH] Remove clutter --- polaris-vfio-startup.sh | 9 --------- polaris-vfio-teardown.sh | 15 --------------- 2 files changed, 24 deletions(-) diff --git a/polaris-vfio-startup.sh b/polaris-vfio-startup.sh index 58323ad..2a46ab2 100755 --- a/polaris-vfio-startup.sh +++ b/polaris-vfio-startup.sh @@ -19,10 +19,6 @@ sleep 5 # Unload AMD drivers modprobe -r amdgpu -#/bin/polaris-unbind-and-reset.sh 0000:01:00.0 -#echo -n "0000:01:00.0" > /sys/bus/pci/drivers/amdgpu/unbind || echo "Failed to unbind gpu from amdgpu" -#echo -n "0000:01:00.1" > /sys/bus/pci/drivers/snd_hda_intel/unbind || echo "Failed to unbind hdmi audio in gpu" - # Unbind the GPU from display driver virsh nodedev-detach pci_0000_01_00_0 @@ -30,8 +26,3 @@ virsh nodedev-detach pci_0000_01_00_1 # Load VFIO kernel module modprobe vfio-pci -#tell vfio-pci that it takes care of gpu -#echo -n "1002 67df" > /sys/bus/pci/drivers/vfio-pci/new_id -#echo -n "1002 aaf0" > /sys/bus/pci/drivers/vfio-pci/new_id - - diff --git a/polaris-vfio-teardown.sh b/polaris-vfio-teardown.sh index e7e8819..dc36877 100755 --- a/polaris-vfio-teardown.sh +++ b/polaris-vfio-teardown.sh @@ -22,18 +22,3 @@ modprobe amdgpu # Restart Display Manager systemctl start sddm.service -#systemctl start x11vnc.service - -#echo -n 0000:01:00.0 > /sys/bus/pci/drivers/vfio-pci/unbind || echo "Failed to unbind gpu from vfio-pci" -#echo -n 0000:01:00.1 > /sys/bus/pci/drivers/vfio-pci/unbind || echo "Failed to unbind gpu-audio from vfio-pci" - -#echo -n 1002 67df > /sys/bus/pci/drivers/vfio-pci/remove_id -#echo -n 1002 aaf0 > /sys/bus/pci/drivers/vfio-pci/remove_id - -#modprobe -r vfio-pci - -#echo -n 0000:01:00.0 > /sys/bus/pci/drivers/amdgpu/bind || echo "Failed to bind amdgpu" -#echo -n 0000:01:00.1 > /sys/bus/pci/drivers/snd_hda_intel/bind || echo "Failed to bind amd hdmi audio" - -#systemctl isolate graphical.target -#systemctl suspend