Threadripper 2 and RTX 20XX possible new reset bug

Got an offer I couldn’t refuse on a NIB 2070 FE so I figured I’d try and get gpu passthrough/looking glass working. Vfio passthrough has been unfruitful. No video output from the card what so ever. Code 43 in device manager. When the code 43 fix is applied the card completely disappears from device manager. Also the VM will not shut down on it’s own. After force shutting it down the GPU enters a weird state and can’t be re-initialized (error 127 in vfio)

0b:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2070] (rev ff) (prog-if ff)
    !!! Unknown header type 7f
    Kernel driver in use: vfio-pci
    Kernel modules: nouveau

DMESG reports a lot of issues with FLR (which the 2070 at least, does report it supports)

Everything’s properly stubbed and configured. Here’s dmesg https://pastebin.com/TV3eVVcm

Here’s XML https://pastebin.com/gkjQsXnj

And finally here’s lspci -vvv on the card https://pastebin.com/beGFjys8

It looks like its fallen off the bus just like my previous AMD cards did…

Can anyone else with a 20 series gpu try and see if you run in to the same issues?

1 Like

@gnif @wendell Either of you guys had a chance to test 20XX series GPUs on TR/TR2?

No issues here with a 2080 Ti. I’ve got a 1950X though, not the second gen Threadripper.

Are you passing through all the different devices? With my Ti, there’s like four different ones… unlike most cards it also has a USB and serial bus controller.

0a:00.0 VGA compatible controller [0300]: NVIDIA Corporation GV102 [10de:1e07] (rev a1) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device [1043:866a]
Flags: bus master, fast devsel, latency 0, IRQ 155, NUMA node 0
Memory at ba000000 (32-bit, non-prefetchable) [size=16M]
Memory at 4820000000 (64-bit, prefetchable) [size=256M]
Memory at 4830000000 (64-bit, prefetchable) [size=32M]
I/O ports at 1000 [size=128]
Expansion ROM at bb000000 [disabled] [size=512K]
Capabilities:
Kernel driver in use: vfio-pci
Kernel modules: nvidiafb, nouveau

0a:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:10f7] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device [1043:866a]
Flags: bus master, fast devsel, latency 0, IRQ 156, NUMA node 0
Memory at bb080000 (32-bit, non-prefetchable) [size=16K]
Capabilities:
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel

0a:00.2 USB controller [0c03]: NVIDIA Corporation Device [10de:1ad6] (rev a1) (prog-if 30 [XHCI])
Subsystem: ASUSTeK Computer Inc. Device [1043:866a]
Flags: bus master, fast devsel, latency 0, IRQ 157, NUMA node 0
Memory at 4832000000 (64-bit, prefetchable) [size=256K]
Memory at 4832040000 (64-bit, prefetchable) [size=64K]
Capabilities:
Kernel driver in use: vfio-pci

0a:00.3 Serial bus controller [0c80]: NVIDIA Corporation Device [10de:1ad7] (rev a1)
Subsystem: ASUSTeK Computer Inc. Device [1043:866a]
Flags: bus master, fast devsel, latency 0, IRQ 152, NUMA node 0
Memory at bb084000 (32-bit, non-prefetchable) [size=4K]
Capabilities:

Note that if you have gone from a GTX9xx series or older card once you hit the 10xx series you need to provide Qemu with your NVidia BIOS as after post the system loses access to it, which means the VM also can’t use it to re-post the card. I wouldn’t be surprised if this is the same for the 20xx series.

As for testing, development, etc… nope, I do not have the funds to buy one. At this time the only way this would happen is if someone donated a card to the LG project.

1 Like

Ah I wasn’t aware of this. I never had to with my 1080ti and 1950x for some reason. Techpowerup BIOS files work fine?

I also don’t have the BIOS added in my domain XML for my 1080ti and it resets just fine. Maybe founders vs AIB? Coudn’t say.

I’m not adding any BIOS file either. I do have the Nvidia driver completely blacklisted on my host, so it never attaches to the card before vfio grabs it.

I also compiled QEMU 3.0 with the patches that were posted in the thread on VFIO performance here, allowing for the full PCIe 3.0 x16 link speed to be recognized. Other than that I think my config is mostly standard.

Here’s my libvirt XML: https://pastebin.com/ct3zG8Pv

Are you on threadripper 2?

Nah, 1950X so TR1.

Got it working with the patched qemu from aur. That was literally the only change. But now it works! FINALLY I CAN TEST LOOKING GLASS

1 Like

I’m not experiencing this with my 1070 Ti or 1060. (with a 1950x)

It depends on how you post the system, if your GPU gets posted in my experience the bios becomes inaccessible. This might be TR1 related though.

Ah, yeah. I don’t post the GPU on metal, so that’s probably the reason.

I’m on a 1950x.

1 Like

Well that answers that question. I don’t have a choice since I am passing both my GPUs into separate VMs, one always will get posted by the bios until the manufacturers start giving us an option to disable GPU post (like that will ever happen).

2 Likes

Yeah, I just thought I’d report a different result, more complete picture and all.

1 Like

Yeah same here.

I do 100% of my work in Linux and 90% of my gaming. The vm is for that last stubborn 10% of games. So the RX 590 in the top pcie slot handles linux and the 2070 can be dedicated to windows so it’s blacklisted and stubbed.

1 Like