From c86f8577faf1cee3d447eea4792f3632cdfe9338 Mon Sep 17 00:00:00 2001 From: Carlos Date: Thu, 15 Sep 2022 15:06:58 -0400 Subject: [PATCH] Reattach PCI devices before swaping drivers Tested with AMD GPU --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c5e3909..f9369e9 100644 --- a/README.md +++ b/README.md @@ -266,14 +266,17 @@ modprobe vfio-pci #!/bin/bash set -x -# Unload vfio module -modprobe -r vfio-pci - # Attach GPU devices to host # Use your GPU and HDMI Audio PCI host device virsh nodedev-reattach pci_0000_01_00_0 virsh nodedev-reattach pci_0000_01_00_1 +# Unload vfio module +modprobe -r vfio-pci + +# Load AMD kernel module +#modprobe amdgpu + # Rebind framebuffer to host echo "efi-framebuffer.0" > /sys/bus/platform/drivers/efi-framebuffer/bind @@ -283,9 +286,6 @@ modprobe nvidia_modeset modprobe nvidia_uvm modprobe nvidia -# Load AMD kernel module -# modprobe amdgpu - # Bind VTconsoles: might not be needed echo 1 > /sys/class/vtconsole/vtcon0/bind echo 1 > /sys/class/vtconsole/vtcon1/bind @@ -293,7 +293,7 @@ echo 1 > /sys/class/vtconsole/vtcon1/bind # Restart Display Manager systemctl start display-manager # rc-service xdm start - ``` +```