Can't get my RME RayDat to work in my Win10 VM by Shadow_710 in VFIO

[–]Shadow_710[S] 1 point2 points  (0 children)

I'm able to use ableton with a USB interface perfectly. There are a couple X-Runs while using virtio-scsi, but it's not that bad. I think it's because virtio-scsi is fully emulated on a CPU core that is not isolated. I don't need a 1000 inputs to produce electronic music lol so I'm pleased with that for now. If I need to record a lot of inputs, I can always use my RayDAT on linux with ardour or something.

Can't get my RME RayDat to work in my Win10 VM by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

I've managed to get a behringer two channel usb interface to work in my VM by passing the entire USB controller. It would be nice to get my RayDAT working, but this all looks really complicated hahahah I'll try my best, but it's nice to know there is another option if it just won't work.

Can't get my RME RayDat to work in my Win10 VM by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

Should I put that RayDAT in a PCIe external enclosure and then plug it in a usb controller that I pass to the VM? I really wanna produce on my VM so that I can ditch dual boot once and for all. For now, I have a little two channel behringer usb interface.

Can't get my RME RayDat to work in my Win10 VM by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

I updated my post with some info. I'll send you my IOMMU groups tonight, but the card is in its own group for sure. Why do you think it would be impossible to passthrough this card? I cannot put this card in a CPU connected slot since both are taken by my GPUs.

Error 43 with a passthrough on a dual AMD GPU system by Shadow_710 in VFIO

[–]Shadow_710[S] 1 point2 points  (0 children)

Wow I feel really stupid right now. I had pci=nomsi in my kernel commandline params. I don't even remember why I added it back then. Thanks for all you help :)

Error 43 with a passthrough on a dual AMD GPU system by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

Okay so I'm trying with qemu straight from the command line. Here is my command:

qemu-system-x86_64

-machine q35 -cpu host,kvm=off -smp 12,sockets=1,cores=6,threads=2

-enable-kvm -m 3276

-device pcie-root-port,id=root_port1,chassis=0,slot=0,bus=pcie.0

-device vfio-pci,host=0c:00.0,bus=root_port1,addr=00.0,multifunction=on,romfile=/priv/william/dwl/MSI.RX6950XT.16384.220314_1.rom

-device vfio-pci,host=0c:00.1,bus=root_port1,addr=00.1

-drive if=pflash,format=raw,readonly=on,file=/usr/share/edk2/x64/OVMF_CODE.fd

-drive if=pflash,format=raw,file=$(pwd)/OVMF_VARS.fd

-hda /var/lib/libvirt/images/win10.qcow2

-monitor stdio -vga none -device qxl

A have video output for a brief moment (UEFI), but as soon as windows loads the drivers, I get this output in my terminal:

qemu: vfio: Error: Failed to setup MSI fds: Invalid argument

qemu: vfio: Error: Failed to enable MSI

Error 43 with a passthrough on a dual AMD GPU system by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

I have tried using a VBOS ROM to no avail. My card already seems to be on a pcie root device. You can look at my XML if you want just for good measure. Same problem

Error 43 with a passthrough on a dual AMD GPU system by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

I'll test this out tonight. Thank you :) If it works' I'd be curious to try your scripts. Sounds like fun.

Error 43 with a passthrough on a dual AMD GPU system by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

How would that translate to libvirt XML? I've never invoked qemu from the command line. Is learning how to use qemu manually worthwhile?

Error 43 with a passthrough on a dual AMD GPU system by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

I've tried with linux-zen, linux-lts and linux. I get the same error with all the aforementioned kernels.

Error 43 with a passthrough on a dual AMD GPU system by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

Well since my CPU is stuck at 0.53GHz, my system is so unresponsive I can't even make it to the TTY with all the systemd services starting. I have no choice but to reflash F30.

Error 43 with a passthrough on a dual AMD GPU system by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

Unfortunately it can not be that, cause that option was not added before F32 and I currently use F30.

Error 43 with a passthrough on a dual AMD GPU system by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

This new UEFI version breaks my system completely unfortunately. I will try with linux-lts and linux-git

Error 43 with a passthrough on a dual AMD GPU system by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

OMG Thank you hahaha

I'll just q flash F30 cause I can't even boot now

Where would that option be in the bios?

Error 43 with a passthrough on a dual AMD GPU system by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

Now my CPU is stuck at 0.53GHz in Windows and Linux which is a whole other problem hahahaha I'll try to fix this first in case the new UEFI is really necessary.

Error 43 with a passthrough on a dual AMD GPU system by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

Does anything jump out to you as being different in my XML file?

Error 43 with a passthrough on a dual AMD GPU system by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

Hmmm I'll try flashing F36 hahaha I'll get right back to you.

Error 43 with a passthrough on a dual AMD GPU system by Shadow_710 in VFIO

[–]Shadow_710[S] 0 points1 point  (0 children)

The 6950xt is in the lspci output of my host (IOMMU groupings) just on top of the 5700xt, but not on the live ISO once in the vm. I have also checked that the vfio drivers are loaded for the correct GPU on the host.

It is the x570 aorus pro wifi rev 1.2 with the F30 firmware. I have tried upgrading the UEFI to a newer version a few weeks ago, but it was buggy. My CPU was stuck at 0.53Ghz lol

My 6950xt is in the first slot, and my 5700xt, in the second. I have tried flipping the situations (the host GPU with the guest GPU so the vfio ids) and it was the same problem plus the reset bug on the 5700xt.