dracutdevs / dracut

dracut the event driven initramfs infrastructure
https://github.com/dracutdevs/dracut/wiki
GNU General Public License v2.0
599 stars 399 forks source link

Gpu passthrough hanging on pre-udev hook #2615

Closed Unbornsz closed 8 months ago

Unbornsz commented 8 months ago

Describe the bug Trying to do a Gpu passthrough, configured everything the system reconizes the gpu i wanna pass to vfio but i can't boot when i connect the cables for both gpus, system freezes and hang up on "Starting Dracut pre-udev hook" and don't go beyond that. If i leave only the Igpu that is configured for host, i can boot no problems, but if i try to leave only the pcie gpu card, the same problem happens

I followed https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF

My files

vfio-pci

options vfio-pci ids=1002:73df,1002:ab28

(didn't enable softdep since i'm using dracut force, but no matter if i do, the same problem happens)

10-vio.conf

force_drivers+=" vfio_pci vfio vfio_iommu_type1 "

Igpu from ryzen 7600x

Gpu Amd 6700XT Distribution used Garuda

Dracut version 059

Init system Systemd

To Reproduce After configuration, just plugging the 2 video cables to both cards and the system hangs forever

Expected behavior System booting normally, as expected

Additional context I don't know if this is an actual bug, but since i didn't know another way to post it here, i'm posting as a bug

System is giving video for both outputs only if they’re connected from boot. If i connect after booting, it’s only a blackscreen

And looking at it again First output Dvi (which is the Igpu Host): Stuck on starting dracut pre-udev hook

Second output Hdmi (Gpu Vfio) final 2 lines: Reached target Graphical interface Finished Clean up modules from old kernels

And then system hangs indefinitely

Unbornsz commented 8 months ago

I believe this issue is related to Garuda

Edit: Nope, managed to find out this is a btrfs issue. No matter the distro, when using btrfs and after binding gpu to vfio, it won't boot. If anyone happens to stumble on this problem switch to ext4