QaidVoid / Complete-Single-GPU-Passthrough

Single GPU VFIO Passthrough Guide
785 stars 38 forks source link

AMDGPU Fence fallback timer expired on ring gfx_0.0.0 #25

Closed Stay1444 closed 1 year ago

Stay1444 commented 1 year ago

Trying this with an RX6600XT. This is logged to the system when starting the VM, i get a blackscreen after and the only fix is a restart

...
dgpu 0000:2b:00.0: amdgpu: amdgpu: finishing device.
feb 20 20:32:31 stay-pc kernel: [drm] Fence fallback timer expired on ring gfx_0.0.0
feb 20 20:32:31 stay-pc kernel: [drm] Fence fallback timer expired on ring sdma1
feb 20 20:32:32 stay-pc kernel: [drm] Fence fallback timer expired on ring sdma1
feb 20 20:32:32 stay-pc kernel: [drm] Fence fallback timer expired on ring sdma1

OS: Manjaro Linux x86_64 Kernel: 6.1.11-1-MANJARO

/etc/libvirt/hooks/qemu.d/win10/prepare/begin/start.sh:

#!/bin/bash
set -x

# Stop display manager
systemctl stop display-manager

# Unbind VTconsoles: might not be needed
# Tried with this both commented and uncommented
#echo 0 > /sys/class/vtconsole/vtcon0/bind
#echo 0 > /sys/class/vtconsole/vtcon1/bind

# Unbind EFI Framebuffer
# Tried wit hthis both commented and uncommented
#echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind

# Unload NVIDIA kernel modules
# Not needed, i'm using AMD
#modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia

# Unload AMD kernel module
modprobe -r amdgpu

# Detach GPU devices from host
# Use your GPU and HDMI Audio PCI host device
# These are my correct PCI addresses
virsh nodedev-detach pci_0000_2b_00_0
virsh nodedev-detach pci_0000_2b_00_1

# Load vfio module
modprobe vfio-pci
QaidVoid commented 1 year ago

I've no idea why that happens. Which GPU driver do you have installed?

You can try detaching your GPU devices before unloading kernel module.

stale[bot] commented 1 year ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.